Inline variable declaration not compiling

后端 未结 3 1542
旧巷少年郎
旧巷少年郎 2020-12-14 13:52

I\'ve been getting a message in Visual Studio 2017, specifically, IDE0018 Variable declaration can be inlined.

So I try using an inline variable declara

3条回答
  •  渐次进展
    2020-12-14 14:45

    I was able to resolve this by installing the Microsoft.Net.Compilers nuget package for v2.0.0-rc3, the only version installed prior was 1.3.2.

    I still don't understand why the intellisense and compiler errors would show up if the installed compiler didn't support this.

提交回复
热议问题