.NET 4.0 build issues on CI server

前端 未结 4 679
小蘑菇
小蘑菇 2020-11-29 17:26

Anybody manage to get .NET 4.0 applications compiling on a CI server without installing Visual Studio 2010 on a CI server?

No SDK exists for .NET 4.0. Have installed

4条回答
  •  难免孤独
    2020-11-29 18:15

    other alternative: without installing Net 4.0 SDK or vs 2010

    Copy the reference assemblies folder from your dev machine to build server(190MB).

    use msbuild -p:FrameworkPathOverride option to point to reference assemblies folder

    the reference assemblies location:

    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0 or C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0

    found this from:

    .NET 4.0 build server reference assemblies warnings MSB3644

    If you get this error: "Microsoft.WebApplication.targets was not found" - just copy the target from dev machine https://stackoverflow.com/a/5344246/423356

    if mvc3 is not installed in build server; "add deployable assemblies" to the mvc project http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx

    If you have error building the MSTest project without the sdk or visual studio installed; There are several blog post about this, to bad the solution is too complex for me. I use NUnit instead of MSTest

提交回复
热议问题