Using C# 7.1 with MSBuild

Nuget packages

  • Microsoft.Net.Compilers nuget package does not work and needn’t to be installed.

Set the following project/build settings

  • Set at least C# 7.1 or higher in the Debug and Release build properties. (via: Project menu > [ProjectName] Properties > Build tab > [Advanced] button > Language Version).

  • Setting it to latest does not work.

preview

Also make sure that you are running the latest MSBuild version.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)