TrilonIO / aspnetcore-Vue-starter

*NEW* Asp.net Core & Vue.js (ES6) SPA Starter kit - Vuex, webpack, Web API, Docker, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.22k stars 266 forks source link

fix for 2.0 #54

Closed elucidsoft closed 7 years ago

elucidsoft commented 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.

elucidsoft commented 7 years ago

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

MarkPieszak commented 7 years ago

Excellent thank you!