MSBuild.exeコンパイルC#のプログラム

免責事項:この記事はブロガーオリジナル記事ですが、許可ブロガーなく再生してはなりません。https://blog.csdn.net/frozleaf/article/details/90732585
@echo off

::变量设置
set sln_path=d:\test.sln
set nuget="C:\Program Files\Mono\lib\mono\nuget\nuget.exe"
set msbuild="C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe"

::nuget
%nuget% restore %sln_path%

::msbuild
%msbuild% %sln_path% /p:Configuration=Debug /p:Platform=x86 /t:Rebuild

 

おすすめ

転載: blog.csdn.net/frozleaf/article/details/90732585