Closed DSakura207 closed 7 years ago
By design. There is no need for net40 or higher for the Windows.Core package so we only ship net20.
If I understand @AArnott correctly, net40 and higher does not need the Windows.Core package, right?
However NuGet says it is needed for .Net 4.0 and portable class library 4.0 & 4.5.
Hence, NuGet will add net20 reference to project references and cause compiler throw CS1685 for System.Runtime.CompilerServices.ExtensionAttribute
.
I guess something just went wrong...
@DSakura1987 Can you provide the repro project or repro steps to see the compiler error that you are seeing?
Hi there, My company uses
PInvoke.NCrypt
. When we update the package, the dependency is incorrect, NuGet setsPInvoke.Windows.Core
's HintPath to .Net 2.0 version, not .Net 4.0. I have tried to install it in a fresh project and the same thing happens. Targeting 4.6.1 or 4.6.2 doesn't make a difference. Here is the output from the Package Manager Console:Is there anything wrong with the dependency?
Thanks :)