Is there an equivalent of Microsoft.Net.Compilers for C # 7.0?

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)

+5
source share
1 answer

The updated Microsoft.Net.Compilers package was published the same week that VS2017 was released.

See the Roslyn documentation for which version of the package corresponds to that version of C #.

+5
source

Source: https://habr.com/ru/post/1265151/


All Articles