我有一个解决方案,里面有大量相关的 .csproj 文件。
每个 .csproj 文件都有一个 <Target Name="PublishQA">...
。
当我尝试编译整个解决方案时,构建会失败:
> msbuild mysolution.sln /t:PublishQA`
"c:\myproj.sln" (publishqa target) (1) ->
c:\myproj.sln.metaproj : error MSB4057: The target "PublishQA" does not exist in the project. [c:\myproj.sln]
如果我直接构建.csproj
项目,它可以正常构建。
我该如何告诉msbuild将目标传递给项目文件?