代码之家  ›  专栏  ›  技术社区  ›  Ken Smith

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

  •  2
  • Ken Smith  · 技术社区  · 6 年前

    我们最近升级了我们的解决方案,以使用新发布的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配置)中需要修复的bug?

    1 回复  |  直到 6 年前
        1
  •  2
  •   Ken Smith    6 年前

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