You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered: