MSBuildForUnity icon indicating copy to clipboard operation
MSBuildForUnity copied to clipboard

Assemblies in Dependencies/netstandard2.0 folder duplicate BCL assemblies in Unity

Open aka-STInG opened this issue 5 years ago • 2 comments

After nuget package dependencies are restored there is a bunch of BCL assemblies in Dependencies/netstandard2.0 folder such as System.Linq that duplicate the ones imported by Unity.

aka-STInG avatar Mar 12 '20 11:03 aka-STInG

There is an exclusion list that filters libraries like this out of the output here: https://github.com/microsoft/MSBuildForUnity/blob/master/Source/MSBuildTools.Unity.NuGet/Publish.props

Currently it only filters when building for UAP, because it used to be the case that we only had this problem when targeting UAP. It's possible that things have changed and we need a similar exclusion list for netstandard2.0 as well.

ryantrem avatar Mar 14 '20 16:03 ryantrem

@ryantrem As I understand if any nuget has netstandard lower than netsrandard2.0 it will drag this dependencies

Anyway thank you for the hint!

aka-STInG avatar Mar 15 '20 11:03 aka-STInG