When C # 6 came in, I just referred to Microsoft.Net.Compilers . The NuGet package and TFS builds for C # 6 features immediately started working without having to install additional dependencies on the build machine.
Now that C # 7 is here, is there an equivalent NuGet package that can do the same? (or is it really not recommended to use C # 7?)
The description of the package Microsoft.Net.Compilers says that it "forces the project to be built using the specific version of the C # compilers [...] contained in the package", however I cannot find out which corresponding version of the C # compiler is intended for this NuGet package . I tried to add the latest stable version (1.3.2), however the C # 7 functions do not compile (and this package is ~ 6 months anyway, so I would not expect it to work)
source share