question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove frameworkAssembly reference to System.Net.Http

See original GitHub issue

It should be sufficient to have a dependency on the System.Net.Http nupkg.

The frameworkAssembly reference breaks downstream packages that target net461 but have other dependencies that target netstandardx.x and depend on System.Net.Http via NuGet because the assembly versions in the GAC (for both 4.5.x and 4.6.x) differ from the latest published via NuGet.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
leastprivilegecommented, May 12, 2017

OK - thanks for researching that. Since project.json and the other combinations seem to work - we can leave it as it is.

1reaction
leastprivilegecommented, Mar 9, 2017

I moved to the new csproj

Could you try the dev branch - and if this fixes your scenarios?

Just call the build.ps1 in the root - it will produce a nuget

Read more comments on GitHub >

github_iconTop Results From Across the Web

Found conflicts between System.Net.Http
Remove any references to System.Net.Http that are not managed by NuGet (for projects using PackageReference, you should see the NuGet symbol ...
Read more >
System.Net.Http is driving me insane. : r/csharp
I'm very confused by the Visual Studio build system. There are references to assemblies in the .csproj, the packages config, and the web.config ......
Read more >
Problem with System.Net.Http after upgrade to 6.3.7 and ...
The type 'HttpResponseMessage' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Net.Http ...
Read more >
Troubleshoot .NET Framework targeting errors
This article provides resolutions for MSBuild errors that might occur because of reference issues.
Read more >
how to solve confilct issue of system.net.http on .net 4.6.1
hello I am developing asp.net web using .net framework 4.6.1 but i stuck ... Net.Http.dll Project file item includes which caused reference ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found