How to build Visual Studio 2012 Publishing Profiles on a Build Server with MsBuild without installing Visual Studio 2012

前端 未结 1 1496
遇见更好的自我
遇见更好的自我 2021-01-31 10:42

I read through many of the posts on here and never found a clear answer that worked. So after spending the time getting this to work, I figured I should post it.

Probl

1条回答
  •  北荒
    北荒 (楼主)
    2021-01-31 10:50

    Just moving Dave's solution into an answer.

    Solution:

    1. Make sure you installed Microsoft Windows SDK and .Net Framework 4

    2. From your client machine with Visual Studio 2012 update 2 installed, copy:

    \Program Files(x86)\MSBuild\Microsoft\Visual Studio\v11.0\Web\
    \Program Files(x86)\MSBuild\Microsoft\Visual Studio\v11.0\WebApplications\
    

    To the same location on your server.

    Then make a simple batch file:

    "C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" /v:diag YOUPROJECT.sln /p:Configuration=Debug /p:DeployOnBuild=true /p:PublishProfile=YOURPROFILE

    This is working for us on multiple build servers.

    0 讨论(0)
提交回复
热议问题