Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Error while installing through aspnetcore-spa generator #492

Closed
Krishna-teja opened this issue Dec 6, 2016 · 2 comments
Closed

Error while installing through aspnetcore-spa generator #492

Krishna-teja opened this issue Dec 6, 2016 · 2 comments

Comments

@Krishna-teja
Copy link

image
I am getting an error while I am doing a fresh install through the aspnetcore-spa genrator. The missing file that it was throwing an error does not exist in the .NET Core SDK 1.0 Preview 3 build 004056 binary too https://go.microsoft.com/fwlink/?LinkID=835127

@SteveSandersonMS
Copy link
Member

SteveSandersonMS commented Dec 7, 2016

Are you possibly using an older version of generator-aspnetcore-spa? The current version of the template emits a global.json files that fixes this. Could you try upgrading (run npm install -g generator-aspnetcore-spa before running yo aspnetcore-spa again) and see if the problem goes away?

Please let us know if that doesn't fix it.

In case you're interested in what was going wrong, the issue is (unfortunately) caused by having installed .NET Core Tools Preview 3 (or VS2017RC, which includes the Preview 3 tools), and not having a global.json file to tell dotnet which SDK version you want it to build with. It then defaults to the Preview 3 tools directory, even though it's looking for Preview 2 files which don't exist in Preview 3.

@Krishna-teja
Copy link
Author

@SteveSanderson Thanks for your reply. The combination of two things fixed my issue. Needed to get the latest generator and make sure I had latest .net core 1.1 SDK installed. Noticed that I was on .net core 1.0.1. Works great now..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants