I feel guilty asking a question like this around here, but I\'m at a loss and would appreciate some help.
A proof-of-concept like web application was built on one PC
Problem hides on TFS, you need to remove folder TestProject...\packages from TFS, check in, delete it from your local dir and build again. Worked!
In my case: this works for me.
It turns out my teammate had already started looking into Windows 10 development and had Microsoft Build Tools 2015 installed on his machine.
I installed the software from https://www.microsoft.com/en-us/download/details.aspx?id=48159 and the problem was solved.
Deleting the package and cleaning the solution solved it for me.
Use the below step:
1) Delete the package folder.
2) close the visual studio.
3) open the project and rebuild the project.
In vs2017 community there appeared a new item in the "build" menu. It disappeared after I used it and was called something like "Optimise project build packages". I clicked it and it fixed everything, just restart etc. I did it on two machines.
What it did was removed Microsoft.net.compilers 2.10.0
and replaced with Microsoft.CodeDom.Providers.DotNetCompilerPlatform 2.0.1
So there you go - more automagic...
Re-build, clean solution and restart Visual Studio worked for me.