Closed elucidsoft closed 7 years ago
This fix will resolve issues where you have ASPNETCore 1.x installed and ASPNETCore 2.x and you attempt to add a new project, or do a publish and you will get build errors stating it can't figure out which version to use.
The issue is described here https://andrewlock.net/the-sdk-microsoft-net-sdk-web-specified-could-not-be-found/ in more detail. I encountered this issue on my machine with all the latest bits from Microsoft so it looks like this problem still exists with all the latest patches installed.
Based on following guidance, I have changed the Program.cs to follow the new 2.x pattern. https://docs.microsoft.com/en-us/ef/core/miscellaneous/1x-2x-upgrade#breaking-changes
Excellent thank you!
This fix will resolve issues where you have ASPNETCore 1.x installed and ASPNETCore 2.x and you attempt to add a new project, or do a publish and you will get build errors stating it can't figure out which version to use.
The issue is described here https://andrewlock.net/the-sdk-microsoft-net-sdk-web-specified-could-not-be-found/ in more detail. I encountered this issue on my machine with all the latest bits from Microsoft so it looks like this problem still exists with all the latest patches installed.