Closed positiveperspective closed 6 years ago
Tried it with the latest 3.0 preview and can reproduce the issue. @onovotny, any idea what's happening here?
I have the same issue. If you want to experience the issue, just do the procedure below, System: Windows 10 April Update VS: Visual Studio 15.7.1 Community SDK: Windows 10 April Update SDK [Win10SDK_10.0.17134] Microsoft.NETCore.UniversalWindowsPlatform 6.1.4 on Nuget
NU1603: runtime.native.System.IO.Compression 4.3.0 depends on runtime.win10-arm64.runtime.native.System.IO.Compression (>= 4.3.0) but runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.0 was not found. An approximate best match of runtime.win10-arm64.runtime.native.System.IO.Compression 4.3.1 was resolved.
Compilation and deployment is successful. Application runs.. The problem is the warnings in the solution and unwanted bundle of references. Please fix the issue
It seems I can reproduce this bug. And the worst part is that each time you add new NuGet package reference, Visual Studio freeze to death.
I set Minimum & Target version to Fall Creators Update and my machine runs on latest Insiders build.
Same here, A ton of warnings in all UWP projects with min version FCU (even without reference to community toolkit). I have 1 extra backslash in the path (between netstandard2.0 and ref)
The referenced component 'C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\netstandard.library\2.0.2\build\netstandard2.0\\ref\System.Net.Http.dll' could not be found.
Oh yeah. Good catch. I have also the extra backslash and it explains why it cannot access the dll files.
Since it is on one reference is it possible it affects all the other ones? Where exactly needs to be made the fix?
The backslash is not the reason. I removed them all in NETStandard.Library.targets. This changed the messages but not the warnings. It seems the problem occurs when referencing a Netstandard library from a UWP app or library. After adding an explicit nuget reference to Netstandard.Library to my UWP library the warnings went away.
@devsko In my UWP project, I didn't referenced to netstandard library.. So I think that's not the problem here.
@devsko can you post me the steps to implement your solution to problem?
So far what I did I removed all the broken references from the references folder. At least I can work on the project. However warnings come back when I restart VS.
@ashiqhassan95 did you manage to get rid of the warnings?
@positiveperspective I just added Netstandard.Library package with NuGet Package Manager to my UWP library. That solved my problem
@positiveperspective not yet. Let me try with what @devsko said
I will try that then. I will come back later.
@devsko @ashiqhassan95 Yes. Installing Netstandard.Library via NuGet seems doing the trick. I must have had closed and restarted Visual Studio so the solution got cleaned of the broken references. App is not laggy anymore.
Must be a solution then. Thanks @devsko
@devsko @positiveperspective @nmetulev Adding NetStandard.Library hide the warning. But that's not the ultimate solution for that. It is bug in the visual studio.
that's a known issue with the UWP meta package https://github.com/dotnet/standard/issues/708
Closing as a known issue with the meta package
I'm submitting a...
Bug report (I searched for similar issues and did not find one)
Current behavior
I had to change the minimum target version of application to Windows 10 Fall Creators Update as I need to get control over SQL.
After changing the min target version I get multiple Warnings (113):
The problem is associated with Microsoft.Toolkit.Uwp.UI.Controls NuGet Package v.2.2.0.
The problem didn't occur when the Target Minimum Version was set to older version of Windows.
Expected behavior
The warnings should not be present. I checked the path for missing ddl's and they are present under:
folder NETStandard.Library in error list is all in small letters(however I don't know if it makes difference.
I also tried to add the folder above to the reference paths but problem persists.
Minimal reproduction of the problem with instructions
Environment