-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Can not build the build
target of a specific project within a solution
#5722
Comments
Team Triage: Can you share a small solution that reproduces this behavior? Given the target names that you're sharing, it sounds like the project name may not be what you think it is. |
@benvillalobos Yes, check this https://github.com/goyzhang/SampleConsoleApp |
Team Triage: You can build the default target in a project (which is usually |
build
target of a specific project within a solution
Actually I got the answer from docs and this topic: https://stackoverflow.com/a/49311810/6223314 |
Since updating Visual Studio to 16.10 I started having the same problem. |
I just noticed the same thing in VS16.10. I'm trying to build a project name in a solution folder using: -t:FolderName\ProjectName |
Same issue here, all my builds are failing now. @benvillalobos Could this be taken out of the backlog? |
Running into the same issue as jespergustinmsft, where specifying what should be a legitimate target in the metaproj to build a particular csproj no longer works with MSBuild after updating to VS16.10. However the :Clean and :Rebuild flavored targets still function. when specifying: MSBuild mysolution.sln -t:FolderName\ProjectName |
Problems with specifying a project name in a solution in 16.10 are likely #6373, which will be fixed with Visual Studio 16.10.1. |
Confirmed that 16.10.1 works fine here. |
I'm still getting the error in 16.10.2+857e5a733 |
I think in my case the problem was fixed because I don't put the I checked on 16.10.2 that with @goyzhang sample, |
Issue Description
I'm following the guide from https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-build-specific-targets-in-solutions-by-using-msbuild-exe
Some targets cannot be run from the solution level using msbuid .sln -t::
Reproduce
For example,
msbuild Consoleapp.sln -t:ConsoleApp:build
gives meHowever, rebuild and clean seems to be working.
Analysis
I've checked .sln.metaproj. There are only ConsoleApp.Clean, Console:Public and Console:Rebuild created. No build or custom target.
Versions & Configurations
Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
16.7.0.37604
The text was updated successfully, but these errors were encountered: