-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Building Netstandard 2.0 class library fails if dependency includes System.Net.HttpClient #1313
Comments
@ericstj @dsplaisted Conflict resolution issue? |
I believe this is a known issue: dotnet/standard#372. @onovotny can you update to the latest NETStandard.Library package from dotnet-core feed and see if it repros? Try adding
/cc @weshaggard |
@ericstj will that work with my preview 1 tooling? |
Yep, it should. Not offline of course, and be careful about having dotnet-core registered and using PackageManager UI, but give it a try to see if it fixes the issue. |
Okay, that worked, closing this as a dup then. Thanks! |
I'm having the same issue, but in a NetStandard 1.4 assembly.
into the csproj file didn't remove the error, but that's probably because I didn't know what to replace |
@weitzhandler open a new issue with a full description of your issue, including the version of the SDK/VS that you are using. Netstandard.dll should never appear in a netstandard1.4 project so I need to see a more comprehensive description of the issue to understand what you're seeing. |
…0200226.7 (dotnet#1313) - Microsoft.AspNetCore.Analyzers - 5.0.0-preview.2.20126.7 - Microsoft.AspNetCore.Components.Analyzers - 5.0.0-preview.2.20126.7 - Microsoft.AspNetCore.Mvc.Analyzers - 5.0.0-preview.2.20126.7 - Microsoft.AspNetCore.Mvc.Api.Analyzers - 5.0.0-preview.2.20126.7
With 15.3 preview 1, building a
netstandard2.0
class lib that has a dependency on a package includingsystem.net.httpclient
4.3.2, I get build errors:ClassLibrary8.zip
You can also see the solution explorer doing something silly:

The text was updated successfully, but these errors were encountered: