ich folgende bin diesen guide meine eigenen NuGet
privaten Server einrichten, aber unter Verwendung von Visual Studio 2010fehlender Verweis auf erfolgreiche NuGet Paketinstallation
Ich habe erfolgreich hinzugefügt, um das NuGet.Server
Paket durch Package Manager Console
, aber wenn ich möchte, dass die bauen WebApplication ich habe Fehler:
der Typ oder Namespace-Name 'Server' existiert nicht im Namensraum 'NuGet' (werden Sie eine Assembly Referenz fehlt?)
Es ist kein Fehler in der Paketinstallation, aber ich sehe, dass NuGet.Server
nicht im Referenzordner des Projekts hinzugefügt wird, warum ist das passiert?
Edit: Weitere Untersuchungen auf den Paketinhalt, sehe ich, dass NuGet.Server
nicht die lib
für net40
hat. Ich muss vielleicht NuGet.Server source forkieren und es in net40
kompilieren, um dies zu beheben.
Hier sind meine Protokolle von Package Manager Console
:
PM> Install-package nuget.server
Attempting to resolve dependency 'NuGet.Core (≥ 2.10.1)'.
Attempting to resolve dependency 'Microsoft.Web.Xdt (≥ 2.1.0)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 8.0.1)'.
Attempting to resolve dependency 'RouteMagic (≥ 1.3.0)'.
Attempting to resolve dependency 'WebActivatorEx (≥ 2.1.0)'.
Attempting to resolve dependency 'Microsoft.Web.Infrastructure (≥ 1.0.0.0)'.
Installing 'Microsoft.Web.Xdt 2.1.1'.
You are downloading Microsoft.Web.Xdt from Microsoft Corporation, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=273778. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'Microsoft.Web.Xdt 2.1.1'.
Installing 'NuGet.Core 2.10.1'.
Successfully installed 'NuGet.Core 2.10.1'.
Installing 'Newtonsoft.Json 8.0.1'.
Successfully installed 'Newtonsoft.Json 8.0.1'.
Installing 'RouteMagic 1.3'.
Successfully installed 'RouteMagic 1.3'.
Installing 'Microsoft.Web.Infrastructure 1.0.0.0'.
Successfully installed 'Microsoft.Web.Infrastructure 1.0.0.0'.
Installing 'WebActivatorEx 2.1.0'.
Successfully installed 'WebActivatorEx 2.1.0'.
Installing 'NuGet.Server 2.10.3'.
Successfully installed 'NuGet.Server 2.10.3'.
Adding 'Microsoft.Web.Xdt 2.1.1' to WebApplication2.
Successfully added 'Microsoft.Web.Xdt 2.1.1' to WebApplication2.
Adding 'NuGet.Core 2.10.1' to WebApplication2.
Successfully added 'NuGet.Core 2.10.1' to WebApplication2.
Adding 'Newtonsoft.Json 8.0.1' to WebApplication2.
Successfully added 'Newtonsoft.Json 8.0.1' to WebApplication2.
Adding 'RouteMagic 1.3' to WebApplication2.
Successfully added 'RouteMagic 1.3' to WebApplication2.
Adding 'Microsoft.Web.Infrastructure 1.0.0.0' to WebApplication2.
Successfully added 'Microsoft.Web.Infrastructure 1.0.0.0' to WebApplication2.
Adding 'WebActivatorEx 2.1.0' to WebApplication2.
Successfully added 'WebActivatorEx 2.1.0' to WebApplication2.
Adding 'NuGet.Server 2.10.3' to WebApplication2.
File Conflict
File 'Web.config' already exists in project 'WebApplication2'. Do you want to overwrite it?
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "N"):A
Overwrite existing file 'Web.config'.
Successfully added 'NuGet.Server 2.10.3' to WebApplication2.
Wenn Sie versuchen, diese Quelle selbst zu kompilieren, sieht es so aus, als hätten Sie ein Referenzproblem basierend auf der Framework-Version: [Getting "Typ oder Namespace-Name konnte nicht gefunden werden" aber alles scheint ok?] (Http: // stackoverflow .com/questions/3304741/getting-type-or-namespace-name-konnte-nicht-gefunden-aber-alles-scheint-ok/3304899 # 3304899). – slugster