Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

msbuild -p:outputdir=c:\mydir being ignored

Tags:

msbuild

I'm running msbuild from the command line with the following:

msbuild mysolution.sln -p:outputdir=c:\mydir 

When I run this, the outputdir is being ignored and the default specified in the csproj file is being used.

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?

like image 489
Mike Avatar asked Feb 11 '11 04:02

Mike


1 Answers

You should use OutputPath and more important you should use the right syntax :

msbuild mysolution.sln /p:OutputPath=c:\mydir 
like image 169
Julien Hoarau Avatar answered Sep 23 '22 16:09

Julien Hoarau