Building existing sln fails with Visual Studio 2019
Asked Answered
K

1

5

I just upgraded to VS2019 and am unable to build an existing solution. The Compiler generates the following error on some of the projects within the solution:

The "DisableSdkPath" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public instance property.

Kalvn answered 5/4, 2019 at 9:27 Comment(0)
K
17

Check if you are using the Microsoft.Net.Compilers package. Upgrading to Version 3.0.0 resolved the issue on my side.

Kalvn answered 5/4, 2019 at 9:27 Comment(4)
Hi friend, thanks for sharing your solution here. You can mark it as answer to make this solution easier to find.Maid
This wasn't the exact answer, but deleting this section from the .csproj file did the trick. Somehow it got in there over the years, but was unused.Countrywoman
So, what would've been an exact(lier) answer? Might want to share your insights?Kalvn
Close visual studio and again open project from Visual studio works for me!Averroes

© 2022 - 2024 — McMap. All rights reserved.