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

Install-Package SimpleSOAPClient in old Projects - Error #17

Closed
filipedias opened this issue Jul 29, 2016 · 1 comment
Closed

Install-Package SimpleSOAPClient in old Projects - Error #17

filipedias opened this issue Jul 29, 2016 · 1 comment

Comments

@filipedias
Copy link

image

The package 'SimpleSOAPClient' tried to add a framework reference to 'System.Runtime' which was not found in the GAC.

This bug can be solved with following code in project.json:
"
.....
".NETPortable,Version=v4.5,Profile=Profile111": {
"buildOptions": {
"define": [ "PORTABLE45" ]
},
"frameworkAssemblies": {
"mscorlib": "",
"System": { "type": "build" },
"System.Collections": { "type": "build" },
"System.Core": { "type": "build" },
"System.IO": { "type": "build" },
"System.Linq": { "type": "build" },
"System.Net.Http": { "type": "build" },
"System.Runtime": { "type": "build" },
"System.Text.Encoding": { "type": "build" },
"System.Threading": { "type": "build" },
"System.Threading.Tasks": { "type": "build" },
"System.Xml": { "type": "build" },
"System.Xml.Linq": { "type": "build" },
"System.Xml.ReaderWriter": { "type": "build" },
"System.Xml.XDocument": { "type": "build" },
"System.Xml.XmlSerializer": { "type": "build" }
}
},
"net4.5": {
"frameworkAssemblies": {
"System.IO": { "type": "build" },
"System.Linq": { "type": "build" },
"System.Net.Http": { "type": "build" },
"System.Runtime": { "type": "build" },
"System.Xml": { "type": "build" },
"System.Xml.Linq": { "type": "build" },
"System.Xml.XDocument": { "type": "build" },
"System.Xml.XmlSerializer": { "type": "build" }
}
},
....
"

References:
NuGet/Home#3103
dotnet/aspnetcore#1157

@gravity00
Copy link
Owner

As indicated, that is a known bug from NuGet (NuGet/Home#3103) that should be fixed soon. But assigning the { "type": "build" } doesn't make any harm and I'll include it in the next release.

In the meantime, you can manually add the following entry to packages.config and the package restore should work:

<package id="SimpleSOAPClient" version="2.0.0-rc03" targetFramework="net46" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants