Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore Incompatible Runtime Error #4963

Closed
wjk opened this issue Jan 30, 2016 · 3 comments
Closed

Restore Incompatible Runtime Error #4963

wjk opened this issue Jan 30, 2016 · 3 comments

Comments

@wjk
Copy link

wjk commented Jan 30, 2016

I am trying to run dotnet restore on a fairly simple project of mine (private repo); however, I get the following errors:

info : Running restore with 16 concurrent jobs.
info : Restoring packages for C:\Users\William\Documents\Visual Studio 2015\Projects\ChocolateyApps\Core\Microsoft.Win32.CoreComTypes\project.json...
info : All packages are compatible with DNXCore,Version=v5.0.
error: System.Dynamic.Runtime 4.0.0-beta-23019 provides a compile-time reference assembly for System.Dynamic.Runtime on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Linq.Expressions 4.0.0-beta-23019 provides a compile-time reference assembly for System.Linq.Expressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Threading.Tasks 4.0.0-beta-23019 provides a compile-time reference assembly for System.Threading.Tasks on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.IO 4.0.0-beta-23019 provides a compile-time reference assembly for System.IO on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Text.Encoding 4.0.0-beta-23019 provides a compile-time reference assembly for System.Text.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: Some packages are not compatible with DNXCore,Version=v5.0 (win7-x64).
error: System.Dynamic.Runtime 4.0.0-beta-23019 provides a compile-time reference assembly for System.Dynamic.Runtime on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Linq.Expressions 4.0.0-beta-23019 provides a compile-time reference assembly for System.Linq.Expressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Threading.Tasks 4.0.0-beta-23019 provides a compile-time reference assembly for System.Threading.Tasks on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.IO 4.0.0-beta-23019 provides a compile-time reference assembly for System.IO on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Text.Encoding 4.0.0-beta-23019 provides a compile-time reference assembly for System.Text.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: Some packages are not compatible with DNXCore,Version=v5.0 (win7-x86).
info : Committing restore...
info : Restore failed in 688ms.

I have tried explicitly specified the runtime (dotnet restore --runtime win7-x64), but to no effect. Any idea what is going on?

@wjk
Copy link
Author

wjk commented Jan 30, 2016

Weirdly, dotnet compile succeeds with no errors when run on the same project.

@brthor
Copy link
Contributor

brthor commented Jan 30, 2016

try adding Microsoft.NETCore.Platforms: 1.0.1-rc3-23729

and then calling dotnet build

@wjk
Copy link
Author

wjk commented Jan 30, 2016

That did it, all right. Thanks!

@wjk wjk closed this as completed Jan 30, 2016
wli3 referenced this issue in wli3/cli Jul 14, 2017
@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants