msbuild -p:outputdir = c:\ mydir被忽略 [英] msbuild -p:outputdir=c:\mydir being ignored
本文介绍了msbuild -p:outputdir = c:\ mydir被忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下命令从命令行运行msbuild:
I'm running msbuild from the command line with the following:
msbuild mysolution.sln -p:outputdir=c:\mydir
运行此命令时,outputdir将被忽略,并且将使用csproj文件中指定的默认值.
When I run this, the outputdir is being ignored and the default specified in the csproj file is being used.
此工具的MSDN文档说,我应该能够使用此参数覆盖构建目录.我在做什么错了?
The MSDN doc for this tool says that I should be able to override the build directory using this parameter. What am I doing wrong?
推荐答案
您应该使用OutputPath
,更重要的是,您应该使用正确的语法:
You should use OutputPath
and more important you should use the right syntax :
msbuild mysolution.sln /p:OutputPath=c:\mydir
这篇关于msbuild -p:outputdir = c:\ mydir被忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文