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

Installation of Docker.DotNet fails with: "Failed to add reference to 'System.Runtime'. Please make sure that it is in the Global Assembly Cache" #111

Closed
christianhuening opened this issue Aug 17, 2016 · 5 comments

Comments

@christianhuening
Copy link

christianhuening commented Aug 17, 2016

Tried to install Docker.DotNet 2.124.1 on Windows 10 in Visual Studio 15 Update 3, but that failed with "Failed to add reference to 'System.Runtime'. Please make sure that it is in the Global Assembly Cache".

What version of Docker.DotNet?:

2.124.1

Steps to reproduce the issue:

  1. Install Docker.DotNet 2.124.1 via Nuget on Windows 10 in a project targeting .NET 4.6

What actually happened?:
Installation of Docker.DotNet fails with "Failed to add reference to 'System.Runtime'. Please make sure that it is in the Global Assembly Cache"

What did you expect to happen?:
Package should install smoothly

Additional information:
According to this post: dotnet/aspnetcore#1157 , it can be fixed by adding System.Net.Runtime as build-type dependency.

@jterry75
Copy link
Contributor

@christianhuening - This was fixed in #105 but we have not published an update to Nuget.org yet. Would you be willing to build this updated package and tell me if it fixes your problem?

@christianhuening
Copy link
Author

christianhuening commented Aug 18, 2016

@jterry75 Greatly appreciated! I already tried to build the master branch yesterday but got a build error on the .NET 4.6 target. I built on OSX with the latest dotnet and got an error with a NamedPipe Type /stating ConnectAsync() wasn't available) here:
https://github.com/Microsoft/Docker.DotNet/blob/master/Docker.DotNet/DockerClient.cs#L90

Now on Windows 10 everything is building fine.

@christianhuening
Copy link
Author

@jterry75 #105 fixes the issue for me. 2.124.2 works fine so far.
Thanks!

@quietjoy
Copy link

Ran into this error as well. It would be nice to see an update of this project on Nuget.org.

@christianhuening
Copy link
Author

Agreed this should be on nuget.org. We're living off of a private nuget repository which acts as a cash and serves internal packages to us. So I almost forgot about it.
@jterry75 can you do that?

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

3 participants