Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: Building a project in a sln file using target stopped working in 16.10 #6515

Closed
xt1 opened this issue Jun 3, 2021 · 4 comments
Closed
Labels
bug needs-triage Have yet to determine what bucket this goes in.

Comments

@xt1
Copy link

xt1 commented Jun 3, 2021

Issue Description

  • have a solution file with lots of CPP vcxproj files, some in solution folders.

  • msbuild ConsoleApp2.sln /t:Folder\ClassLibrary2

  • Worked in MSBuild 16.9

  • Produces target missing errors in 16.10

    error MSB4057: The target " Folder\ClassLibrary2" does not exist in the project.

Steps to Reproduce

  • MSBuildRepro.zip attached
  • msbuild ConsoleApp2.sln /t:Folder\ClassLibrary2

Expected Behavior

Build compiles ClassLibrary2 + ClassLibrary1 without errors

Actual Behavior

error MSB4057: The target " Folder\ClassLibrary2" does not exist in the project.

Versions & Configurations

16.10.0+4242f381a on windows 10 - does not work.

MsBuildRepro.zip

@xt1 xt1 added bug needs-triage Have yet to determine what bucket this goes in. labels Jun 3, 2021
@joshuasmartin
Copy link

I noticed this same bug on Azure DevOps. The Pipeline was working fine until two days ago and all of a sudden we're seeing these errors. No changes. Output just shows a successful build at 1.183.0 and the failed builds at 1.187.0

@rainersigwald
Copy link
Member

Duplicate of #6373

@rainersigwald rainersigwald marked this as a duplicate of #6373 Jun 3, 2021
@rainersigwald
Copy link
Member

The fix will be released with Visual Studio 16.10.1.

@rainersigwald
Copy link
Member

VS 16.10.1 is now released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs-triage Have yet to determine what bucket this goes in.
Projects
None yet
Development

No branches or pull requests

3 participants