Skip to content

Unable to build library test project in Visual Studio #40039

@alefranz

Description

@alefranz

Description

Hello 👋!

I'm trying to work on Microsoft.Extensions.Logging.Console in Visual Studio Preview.

I can build and run the tests successfully from the command line, but when I open the library project in VS with
.\build.cmd -vs Microsoft.Extensions.Logging.Console
I am unable to build the test projects due to the following error:

2>------ Build started: Project: Microsoft.Extensions.Logging.Console.Tests, Configuration: Debug Any CPU ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4469,5): error MSB4006: There is a circular dependency in the target dependency graph involving target "_GetCopyToOutputDirectoryItemsFromTransitiveProjectReferences".
2>Done building project "TestUtilities.csproj" -- FAILED.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4469,5): error MSB4006: There is a circular dependency in the target dependency graph involving target "_GetCopyToOutputDirectoryItemsFromTransitiveProjectReferences".
2>Done building project "TestUtilities.csproj" -- FAILED.

Any idea of what I could be doing wrong? Thank you!

Configuration

Visual Studio: Version 16.7.0 Preview 6.0
Windows Pro x64 Version 10.0.19041 Build 19041

master @ 065bf96

Regression?

build problem

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions