Build ASP.NET 4.5 without Visual Studio on Build Server

后端 未结 6 840
轻奢々
轻奢々 2020-12-04 05:25

Its been a while since I setup a Build Server so maybe I\'ve forgotten something or maybe .NET 4.5 is different from whatever version I did this with last time, but here is

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 05:46

    From msdn:

    The Windows SDK no longer ships with a complete command-line build environment. You must install a compiler and build environment separately. If you require a complete development environment that includes compilers and a build environment, you can download Visual Studio 2012 Express, which includes the appropriate components of the Windows SDK.

    In order to fix this, I had to copy the folder C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5 from my development machine (which has Visual Studio 2012 by the way) onto the build agents. After this operation, Team City did not report any more errors and mscorlib.dll was not output to the bin folder.

提交回复
热议问题