We run Continuous Integration in Jenkins. And recently we decided to try out C# 7 Tuples in one of our web projects
The project compiles fine in Visual Studio, but when we send it to the build server it breaks.
error CS8059: Feature 'tuples' is not available in C# 6. Please use language version 7 or greater.
I have tried everything, from updating nuget to banging my head against the wall.
I also installed the required nuget packages:
Install-Package Microsoft.Net.Compilers
Install-Package System.ValueTuple
Finally I had a break-through when I found out that I can publish each individual project, and it only breaks when building the entire solution.
That means it works, just not on the solution level. But WHY!? I need to build the entire solution to run Unit Tests against our code base.
So to recap:
- msbuild MySolution.sln Fails!
- msbuild MyProject.csproj + PublishProfile works just fine.