Skip to content

Rebuild error with Visual Studio 17.3.3 #505

Open
@IvanMarkDebono

Description

@IvanMarkDebono

Problem with a Blazor server-side app. The csproj has the following:

<PropertyGroup> <PrepareForBuildDependsOn>WebCompile</PrepareForBuildDependsOn> </PropertyGroup>

Describe the bug
When rebuilding with Visual Studio 17.3.3, the rebuild fails with the following error:

MSB4057 The target "WebCompile" does not exist in the project.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 1193

The problem does not occur when rebuilding with Visual Studio 17.3.2.

Expected behavior
The rebuild should be successful with the latest versions of Visual Studio.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions