We have Team Foundation Server (TFS) 2015 installed on-premises. We would like to use Visual Studio 2017 to take advantage of the latest C# language features. We are not rea
Just install latest version of Microsoft.Net.Compilers nugget package
https://www.nuget.org/packages/Microsoft.Net.Compilers >> .Net Compilers package. Referencing this package will cause the project to be built using the specific version of the C# and Visual Basic compilers contained in the package, as opposed to any system installed version.
This package can be used to compile code targeting any platform, but can only be run using the desktop .NET 4.6+ Full Framework.