Open IIFE opened 3 years ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
I believe support for System.Memory and System.Buffers isn't actually built into .NET 4.7.2, which is why the additional DLLs are needed.
/cc @terrajobst @ericstj
Correct, System.Memory
and System.Buffers
were never added to .NETFramework.
I've got a .NET project that targets multiple frameworks, i.e.,
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
The project contains NuGet packages that bring in System.* dependencies like
System.Memory
andSystem.Buffers
.When I build the project it creates two output directories,
netstandard2.1
andnet472
, which is fine.The bit I'm struggling to understand is why does the
net472
output directory contain the System.* dependencies? I understand them being copied to thenetstandard2.1
directory, but why are they copied for the .NET Framework directory when they can be loaded from the .NET Framework installation on the machine (i.e., GAC)?Is there a way to exclude System.* dlls when for the
net472
target?