Unity 5.9增加了大量额外的库引用

问题描述 投票:2回答:1

我们最近升级了我们的解决方案,以使用新发布的Unity 5.9.0。

在这个过程中,看起来Unity为它所在的每个项目添加了大量额外的库引用。例如:

   <Reference Include="System.AppContext, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\Unity.5.9.0\lib\net47\System.AppContext.dll</HintPath>
    </Reference>
    <Reference Include="System.Collections, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\Unity.5.9.0\lib\net47\System.Collections.dll</HintPath>
    </Reference>
    <Reference Include="System.Collections.Concurrent, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\Unity.5.9.0\lib\net47\System.Collections.Concurrent.dll</HintPath>
    </Reference>
    <Reference Include="System.Collections.NonGeneric, Version=4.0.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\Unity.5.9.0\lib\net47\System.Collections.NonGeneric.dll</HintPath>
    </Reference>
    <Reference Include="System.Collections.Specialized, Version=4.0.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\Unity.5.9.0\lib\net47\System.Collections.Specialized.dll</HintPath>
    </Reference>
    <Reference Include="System.ComponentModel, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <HintPath>..\packages\Unity.5.9.0\lib\net47\System.ComponentModel.dll</HintPath>
    </Reference>

除了每个项目总共大约40个左右。

据我所知,到目前为止它没有任何负面影响,但如果我们不需要它们,我当然不希望在每个项目中都有这些引用。

这实际上是必要的吗?或者它是新的5.9(在nuget配置中,可能?)中的一个错误,需要修复?

c# unity-container
1个回答
2
投票

FWIW,当我升级到Unity 5.9.3时,它删除了所有这些额外的引用。所以我的假设是这是Unity 5.9.0到5.9.2中的一个错误。

© www.soinside.com 2019 - 2024. All rights reserved.