0
在引用較舊的DLL我有一個.NET 4.5項目,我有很多依賴的安裝庫(例如這樣的:http://www.nuget.org/packages/Microsoft.WindowsAzure.Management.Libraries/0.9.6-preview)的NuGet安裝
許多這些依賴的是在獨立net40和net45二進制包的文件夾。然而,正如你可以在下面看到的那樣,它們被引用到net40和net35,即使在軟件包中有一個net45版本。 (它也參考了一些net45的)
這是什麼原因造成的?
<Reference Include="Microsoft.Data.Edm">
<HintPath>..\..\..\..\external\Nuget\Microsoft.Data.Edm.5.6.0\lib\net40\Microsoft.Data.Edm.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Data.OData">
<HintPath>..\..\..\..\external\Nuget\Microsoft.Data.OData.5.6.0\lib\net40\Microsoft.Data.OData.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Common">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Common.0.9.8-preview\lib\net45\Microsoft.WindowsAzure.Common.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Common.NetFramework">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Common.0.9.8-preview\lib\net45\Microsoft.WindowsAzure.Common.NetFramework.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Configuration">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Management.0.9.5-preview\lib\net40\Microsoft.WindowsAzure.Management.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.Compute">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Management.Compute.0.9.9-preview\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.Monitoring">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Management.Monitoring.0.9.2-preview\lib\net40\Microsoft.WindowsAzure.Management.Monitoring.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.Scheduler">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Management.Scheduler.0.9.8-preview\lib\net40\Microsoft.WindowsAzure.Management.Scheduler.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.ServiceBus">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Management.ServiceBus.0.9.3-preview\lib\net40\Microsoft.WindowsAzure.Management.ServiceBus.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.Sql">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Management.Sql.0.9.4-preview\lib\net40\Microsoft.WindowsAzure.Management.Sql.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.Storage">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Management.Storage.0.9.3-preview\lib\net40\Microsoft.WindowsAzure.Management.Storage.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.VirtualNetworks">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Management.VirtualNetworks.0.9.3-preview\lib\net40\Microsoft.WindowsAzure.Management.VirtualNetworks.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.WebSites">
<HintPath>..\..\..\..\external\Nuget\Microsoft.WindowsAzure.Management.WebSites.0.9.3-preview\lib\net40\Microsoft.WindowsAzure.Management.WebSites.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Storage">
<HintPath>..\..\..\..\external\Nuget\WindowsAzure.Storage.3.0.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll</HintPath>
它是.NET 4.5項目。我在不同的項目上安裝了好幾次。它總是這樣做。我不知道爲什麼發生這種情況,但顯然我需要手動修改。 –