Skip to content

Microsoft.Extensions.Logging solution can't be built from Visual Studio #54740

@Sundow

Description

@Sundow

Description

Open the solution Microsoft.Extensions.Logging in Visual Studio by executing
\build.cmd -vs Microsoft.Extensions.Logging

Try to build/rebuild the whole solution. Build fails with the following errors:

...\runtime\src\libraries\Microsoft.Extensions.Logging.Abstractions\gen\Microsoft.Extensions.Logging.Generators.csproj : error MSB4057: The target "GetTargetPath" does not exist in the project.

...\runtime\src\libraries\System.Text.Json\gen\System.Text.Json.SourceGeneration.csproj : error MSB4057: The target "GetTargetPath" does not exist in the project.

Building from a command line works ok. But this issue makes it impossible to work with unit tests in VS as they can't be built and executed.

Regression?

Microsoft.Extensions.Logging.Generators.csproj and System.Text.Json.SourceGeneration.csproj were added relatively recently. The problem didn't exist before.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions