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
In case the above answer doesn't work for you, as it didn't work for me do the following:
Open the csproj file and check if you have the following package referenced in the file after the upgrade, if yes, remove it.
Next, check the "Project ToolsVersion". It has to be 15.0, it probably is 14.0 though so you have to change that.
Then simply reload the SOLUTION and you're good to go. Be aware that if you select "Reload Project" it will give you an error and not load it.