Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
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

Description

@Krishna-teja

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

Activity

  1. SteveSandersonMS commented on Dec 7, 2016

    @SteveSandersonMS
    Member

    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.

  2. Krishna-teja commented on Dec 8, 2016

    @Krishna-teja
    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions