如何从命令行覆盖解决方案的 aspnetcompiler.targetpath?

ff0*_*0e2 5 asp.net msbuild webforms aspnet-compiler visual-studio

我正在打电话 MSBUILD.exe \pathtosolution\solution.sln /p:Configuration=Release /p:OutputDir=\pathfordlls\ /p:WebProjectOutputDir=\pathtocompileto\

当它完成将 DLL 编译到正确的目录并调用 aspnet_compiler 时,我希望它使用 WebProjectOutputDir - 但它使用的是解决方案文件内指定的目录 Release.AspNetCompiler.TargetPath = "PrecompiledWeb\lidacweb\

我需要做什么才能让它接受这个论点?我错过了什么吗?