2016-03-09 10 views
5

Bei der Installation von System.Collections.Immutable lädt NuGet Assemblys wie System.Runtime herunter, obwohl ich diese Assembly bereits mit .NET 4.6.1 installiert hatte.Warum lädt NuGet scheinbar unnötige Abhängigkeiten herunter?

Auch die Verzeichnisse unter lib (wie Pakete \ System.Runtime.4.0.0 \ lib \ net45) enthalten keine DLL-Dateien, nur leere Dateien namens _._.

Warum passiert das? Warum ist das notwendig? Was fehlt mir hier?

NuGet log:

Install-Package System.Collections.Immutable -Version 1.1.37 
Attempting to gather dependency information for package 'System.Collections.Immutable.1.1.37' with respect to project 'ConsoleApplication1', targeting '.NETFramework,Version=v4.6.1' 
Attempting to resolve dependencies for package 'System.Collections.Immutable.1.1.37' with DependencyBehavior 'Lowest' 
Resolving actions to install package 'System.Collections.Immutable.1.1.37' 
Resolved actions to install package 'System.Collections.Immutable.1.1.37' 
    GET https://www.nuget.org/api/v2/package/System.Collections/4.0.0 
Installing System.Collections 4.0.0. 
Adding package 'System.Collections.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Collections.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Collections.4.0.0' to 'packages.config' 
Successfully installed 'System.Collections 4.0.0' to ConsoleApplication1 
    GET https://www.nuget.org/api/v2/package/System.Diagnostics.Debug/4.0.0 
Installing System.Diagnostics.Debug 4.0.0. 
Adding package 'System.Diagnostics.Debug.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Diagnostics.Debug.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Diagnostics.Debug.4.0.0' to 'packages.config' 
Successfully installed 'System.Diagnostics.Debug 4.0.0' to ConsoleApplication1 
    GET https://www.nuget.org/api/v2/package/System.Globalization/4.0.0 
Installing System.Globalization 4.0.0. 
Adding package 'System.Globalization.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Globalization.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Globalization.4.0.0' to 'packages.config' 
Successfully installed 'System.Globalization 4.0.0' to ConsoleApplication1 
    GET https://www.nuget.org/api/v2/package/System.Linq/4.0.0 
Installing System.Linq 4.0.0. 
Adding package 'System.Linq.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Linq.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Linq.4.0.0' to 'packages.config' 
Successfully installed 'System.Linq 4.0.0' to ConsoleApplication1 
    GET https://www.nuget.org/api/v2/package/System.Resources.ResourceManager/4.0.0 
Installing System.Resources.ResourceManager 4.0.0. 
Adding package 'System.Resources.ResourceManager.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Resources.ResourceManager.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Resources.ResourceManager.4.0.0' to 'packages.config' 
Successfully installed 'System.Resources.ResourceManager 4.0.0' to ConsoleApplication1 
    GET https://www.nuget.org/api/v2/package/System.Runtime/4.0.0 
Installing System.Runtime 4.0.0. 
Adding package 'System.Runtime.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Runtime.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Runtime.4.0.0' to 'packages.config' 
Successfully installed 'System.Runtime 4.0.0' to ConsoleApplication1 
    GET https://www.nuget.org/api/v2/package/System.Runtime.Extensions/4.0.0 
Installing System.Runtime.Extensions 4.0.0. 
Adding package 'System.Runtime.Extensions.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Runtime.Extensions.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Runtime.Extensions.4.0.0' to 'packages.config' 
Successfully installed 'System.Runtime.Extensions 4.0.0' to ConsoleApplication1 
    GET https://www.nuget.org/api/v2/package/System.Threading/4.0.0 
Installing System.Threading 4.0.0. 
Adding package 'System.Threading.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Threading.4.0.0' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Threading.4.0.0' to 'packages.config' 
Successfully installed 'System.Threading 4.0.0' to ConsoleApplication1 
    GET https://www.nuget.org/api/v2/package/System.Collections.Immutable/1.1.37 
Installing System.Collections.Immutable 1.1.37. 
Adding package 'System.Collections.Immutable.1.1.37' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Collections.Immutable.1.1.37' to folder 'd:\workspace\ConsoleApplication1\packages' 
Added package 'System.Collections.Immutable.1.1.37' to 'packages.config' 
Successfully installed 'System.Collections.Immutable 1.1.37' to ConsoleApplication1 

Antwort

1

Ich denke dies ist wegen der Änderungen, die mit Dotnet Kern/cli kommen. Es wird die Abhängigkeitskette aufrechterhalten, die im Donetkern viel wichtiger ist, weil Sie kein vollständig installiertes Framework haben. Das erklärt, warum lib\net45 Ordner leer sind, es gibt nichts, das tatsächlich enthalten ist, weil sie Teil der BCL sind, die auf Ihrem Computer installiert ist.

Verwandte Themen