What do I need to setup a Jenkins build server that can build ASP.NET projects without Visual Studio?

后端 未结 1 615
我在风中等你
我在风中等你 2021-02-02 04:34

I\'m trying to setup a build server using Jenkins (on Windows Server 2012) that will be responsible for building (with config transform) and packaging (zip file) ASP.NET MVC/Web

相关标签:
1条回答
  • 2021-02-02 04:46

    I needed to copy the files in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web from my dev box to the same location on the build server, then the properties worked fine.

    In addition to the steps I outlined above, below are the extra steps I had to do to get this working:

    1. Changed Jenkins Windows service to logon as Administrator
    2. Copy the files in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web from my dev machine to the same location on the build server
    3. Enabled NuGet package restore by running [Environment]::SetEnvironmentVariable("EnableNuGetPackageRestore", "true.", "Machine") in Powershell
    0 讨论(0)
提交回复
热议问题