0

I created .net framework 4.6.1. project, it has GAC refernce System.Net.Http which uses C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.6.1\System.Net.Http.dll. Then I installed .net standard 2 nuget package and after project reloading I see this:
enter image description here
At the same time project builds ok. How to fix it? Versions of tools: Visual Studio Community 2017 Version 15.3.5, Nuget 4.3.1

mtkachenko
  • 5,389
  • 9
  • 38
  • 68
  • It works fine on my side. What`s the path of this reference in the properties windows? If this issue persist, could you please give me some detail steps to reproduce this issue? – Leo Liu Oct 03 '17 at 04:45
  • @Leo-MSFT path and other properties are empty. Actually I described all steps. I'll try to investigate deeply. – mtkachenko Oct 03 '17 at 05:47
  • since I could not reproduce this issue, I guess if there is any difference between you and I. So I ask more detail. What`s the version of your Visual Studio and nuget? – Leo Liu Oct 03 '17 at 05:54
  • @Leo-MSFT Visual Studio Community 2017 Version 15.3.5, Nuget 4.3.1 – mtkachenko Oct 03 '17 at 06:41
  • @Leo-MSFT my problem looks like this https://github.com/dotnet/standard/issues/484 – mtkachenko Oct 03 '17 at 08:29
  • Looks like it's an open issue for .net-standard for now. Finally I added target for net461 to .net-standard project and update package. Now it looks fine. – mtkachenko Oct 03 '17 at 10:47
  • yes, it is still a open issue. You can convert your workaround in the comment to the answer, and mark it, so it is benefit for other communities who has the same issue. Thanks. – Leo Liu Oct 03 '17 at 18:08

0 Answers0