You should use OutputPath
and more important you should use the right syntax :
msbuild mysolution.sln /p:OutputPath=c:\mydir
You should use OutputPath
and more important you should use the right syntax :
msbuild mysolution.sln /p:OutputPath=c:\mydir