如何使MSBuild忽略项目引用? [英] How to get MSBuild to ignore project references?
本文介绍了如何使MSBuild忽略项目引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取MSBuild
来完全忽略我的.csproj
中的所有<ProjectReference>
元素?我真的希望它仅构建当前项目,而没有它依赖的项目.
How can I get MSBuild
to completely ignore all the <ProjectReference>
elements in my .csproj
? I really want it to build just the current project, without the projects that it depends on.
推荐答案
msbuild MySolution.sln /t:MyProjectName /p:BuildProjectReferences=false
关键是BuildProjectReferences = false参数.
The key is the BuildProjectReferences=false parameter.
这篇关于如何使MSBuild忽略项目引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文