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

Unable to use "dotnet run" after running generator #344

Closed
johnazre opened this issue Sep 30, 2016 · 1 comment
Closed

Unable to use "dotnet run" after running generator #344

johnazre opened this issue Sep 30, 2016 · 1 comment

Comments

@johnazre
Copy link

johnazre commented Sep 30, 2016

I tried creating an Angular 2 and React app and neither of them worked.

When I tried to run "dotnet run", I would get:

2. The project does not support the desired framework:

I tried "dotnet restore" and here are the errors I got at the bottom:

error: Package Microsoft.CodeAnalysis.CSharp 1.1.0-rc1-20151109-01 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Microsoft.CodeAnalysis.CSharp 1.1.0-rc1-20151109-01 supports:
error:   - net45 (.NETFramework,Version=v4.5)
error:   - portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7)
error: Package Microsoft.CodeAnalysis.Common 1.1.0-rc1-20151109-01 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Microsoft.CodeAnalysis.Common 1.1.0-rc1-20151109-01 supports:
error:   - net45 (.NETFramework,Version=v4.5)
error:   - portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7)
error: One or more packages are incompatible with DNXCore,Version=v5.0.
log  : Writing lock file to disk. Path: .../project.lock.json
log  : .../project.json
log  : Restore failed in 32863ms.

Errors in .../project.json
    Package Microsoft.CodeAnalysis.CSharp 1.1.0-rc1-20151109-01 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Microsoft.CodeAnalysis.CSharp 1.1.0-rc1-20151109-01 supports:
      - net45 (.NETFramework,Version=v4.5)
      - portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7)
    Package Microsoft.CodeAnalysis.Common 1.1.0-rc1-20151109-01 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Microsoft.CodeAnalysis.Common 1.1.0-rc1-20151109-01 supports:
      - net45 (.NETFramework,Version=v4.5)
      - portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7)
    One or more packages are incompatible with DNXCore,Version=v5.0.
@johnazre
Copy link
Author

I can't find the issue that needs to be referenced for whatever reason, but this issue was solved with the most recent update to Core and installing the correct, most recent, generator.

npm install -g generator-aspnetcore-spa

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

1 participant