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

Closed
opened 2025-08-09 17:19:49 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @johnazre on 9/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.
*Originally created by @johnazre on 9/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. ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1352
No description provided.