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.