-
Notifications
You must be signed in to change notification settings - Fork 150
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
Can't install on .NET 4.6.1 - System.Runtime not found in the GAC #91
Comments
Could you try adding the following package? |
Just tried installing |
I'm in the same situation, with an existing app (.NET 4.6.1, |
@jamesbperry The last alpha version |
so since the beta we removed the ASP.NET dependency |
@reduckted Thanks. I got cold feet about even trying |
could you check if you have these assemblies in your GAC and which version?
|
|
@304NotModified My GAC has the same versions as @jamesbperry. |
I can finally reproduce the problem :) Unfortunately dunno what the cause of this problem is. Testing now |
If I have this in our library, I can install it ! "dependencies": {
"Microsoft.Extensions.Logging.Abstractions": "1.1.0"
}, "frameworks": {
"net461": {
"dependencies": {
"System.Xml.ReaderWriter": "4.3.0",
"System.Runtime": "4.0.10.0",
"NLog": "4.4.2"
}
},
"netstandard1.3": {
"dependencies": {
"NLog": "5.0.0-beta05",
"System.AppContext": "4.3.0"
},
"buildOptions": { "define": [ "NETCORE" ] }
}
}
But no .NET 4.5.1. So then I try this: "dependencies": {
"Microsoft.Extensions.Logging.Abstractions": "1.1.0"
},
"frameworks": {
"net451": {
"frameworkAssemblies": {
"System.Xml": "",
"System.Runtime": "",
"System.Xml.Serialization": ""
},
"dependencies": {
"NLog": "4.4.2"
}
},
"net461": {
"dependencies": {
"System.Xml.ReaderWriter": "4.3.0",
"System.Runtime": "4.0.10.0",
"NLog": "4.4.2"
}
},
"netstandard1.3": {
"dependencies": {
"NLog": "5.0.0-beta05",
"System.AppContext": "4.3.0"
},
"buildOptions": { "define": [ "NETCORE" ] }
}
} and then the error
Really don't get it... |
posted here: NuGet/Home#4639 don't get why net451 dependencies influences net461. |
as we needed tested it, and worked :) This will be fixed in beta3! Release, today |
Wow, y'all are great. Beta 3 does the trick! Thanks. |
Thanks for the confirm! If you help us with #86 ;), that would be great :) |
See PR #99 :) |
Thanks man! Appreciate it! |
I am seeing same error again with 1.0.0-rtm-rc4 for 4.5.2 framework project (VS 2015) :( |
what is the nlog version you're using? |
I am using NLog.4.5.0-rc03 |
strange, as far as I understand this issue should not be there because we moved to VS 2017 csproj: NuGet/Home#4639 Could you try adding
to your project.json? (or aren't you using project.json?) |
Have created #185 to remove System.Runtime dependency for net451 and net461 (And added support for NetCoreApp10, and not just NetCoreApp11) |
@nareshpatel Thank you for reporting this. Think some garbage was transferred over in the conversion of NLog-Extensions from project.json to Vs2017-csproj. |
will be fixed in rtm-rc5 |
@nareshpatel NLog.Extensions.Logging RC5 has been released: https://www.nuget.org/packages/NLog.Extensions.Logging/1.0.0-rtm-rc5 |
Thank you @304NotModified and @snakefoot :) I was able to install rc5 package without any errors and logs are working |
👍 thanks @snakefoot |
I can't install
NLog.Extensions.Logging 1.0.0-rtm-beta1
in a .NET 4.6.1 console application. It fails with this error:Sounds similar to #52.
Steps to reproduce:
Install-Package NLog.Extensions.Logging -Pre
Here's the entire install log:
The text was updated successfully, but these errors were encountered: