You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a solution with many projects organized in solution folders. I am trying to invoke Build target on a project of the solution using solution .sln file. The msbuild errs out saying Build target is not available in the said project. I can invoke Clean target, Rebuild target on the same project, but not build.
Wondering what I am doing wrong. Below is the command line that I am using:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a solution with many projects organized in solution folders. I am trying to invoke Build target on a project of the solution using solution .sln file. The msbuild errs out saying Build target is not available in the said project. I can invoke Clean target, Rebuild target on the same project, but not build.
Wondering what I am doing wrong. Below is the command line that I am using:
msbuild ..\Galaxy.sln /p:Configuration=Debug /p:"Platform=Any CPU" /t:"DataTools\CLIUtils:Build"
The error: error MSB4057: The target "DataTools\CLIUtils:Build" does not exist in the project. [snip\Galaxy.sln]
I am using Visual Studio 2019. I also checked https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2015/msbuild/how-to-build-specific-targets-in-solutions-by-using-msbuild-exe?view=vs-2015 which describes target invocation for solutions. This looks like a bug to me.
Beta Was this translation helpful? Give feedback.
All reactions