I've installed Visual Studio 2015 Update 3 and the ASP.NET Core tools preview 2 on Windows 7. Then I tried to build a solution that contains .NET 4.6 C# projects, and one ASP.NET Core .NET 4.6 project. Everything builds and runs fine on my developer machine, but the build machine throws an error on build.
Here's the part of the output window in Visual Studio:
(...) 23>------ Neues Erstellen gestartet: Projekt: MyWeb, Konfiguration: Release Any CPU ------ 23> C:\Program Files\dotnet\dotnet.exe build "C:\GitLabCI\builds\024ca24f\0\team\VP\src\Server\MyWeb" --configuration Release --no-dependencies --build-base-path "C:\GitLabCI\builds\024ca24f\0\team\VP\artifacts\bin\VP.Server.MyWeb" --no-incremental 23> Project MyWeb (.NETFramework,Version=v4.6) will be compiled because project is not safe for incremental compilation. Use --build-profile flag for more information. 23> Compiling MyWeb for .NETFramework,Version=v4.6 23>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(262,5): error : Object reference not set to an instance of an object. 23> C:\Program Files\dotnet\dotnet.exe compile-csc @C:\GitLabCI\builds\024ca24f\0\team\VP\artifacts\bin\VP.Server.MyWeb\MyWeb\obj\Release\net46\dotnet-compile.rsp returned Exit Code 1 23> Compilation failed. 23> 0 Warning(s) 23> 0 Error(s) 23> Time elapsed 00:00:01.0574172 ========== Alles neu erstellen: 22 erfolgreich, 1 fehlerhaft, 0 übersprungen ==========
What's wrong here?