任何方式做Visual Studio“仅项目”从命令行构建? [英] Any way to do Visual Studio "project only" build from command line?
本文介绍了任何方式做Visual Studio“仅项目”从命令行构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
devenv mysolution.sln /build "Release|Win32" /project myproject
从命令行构建时,似乎我可以选择做一个 / build
或 / rebuild
,但没有办法说我想做仅项目(即不构建或重建指定项目的依赖项)。有人知道一种方法吗?
When building from the command line, it seems I have the option of doing a /build
or /rebuild
, but no way of saying I want to do "project only" (i.e. not build or rebuild the specified project's dependencies as well). Does anyone know of a way?
推荐答案
根据你的构建系统的结构,这可能是你正在寻找:
Depending on the structure of your build system, this may be what you're looking for:
msbuild /p:BuildProjectReferences=false project.proj
这篇关于任何方式做Visual Studio“仅项目”从命令行构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文