CityRay/Blog

[VS] MSBuild Command-Line

CityRay opened this issue · 0 comments

利用 MSBuild Command,進行專案發佈,可存成 (*.bat) 進行發佈

Exmaple

"C:\Program Files (x86)\MSBuild\14.0\Bin\Msbuild" "C:\yourproject\project.csproj" /p:DeployOnBuild=true /p:PublishProfile=project.pubxml

@ping 127.0.0.1 -n 3 -w 1000 > nul

"C:\Program Files (x86)\MSBuild\14.0\Bin\Msbuild" "C:\yourproject\project2.csproj" /p:DeployOnBuild=true /p:PublishProfile=project2.pubxml

PAUSE

MSBuild Command-Line Reference