0

So akzeptiere ich, dass etwas v seltsames geschieht an meinem Ende mit Caching oder etwas. Offensichtlich haben geleerte Caches, gelöschte Pakete Ordner und regot Pakete.Warum ist [Einfügen Nuget-Paket hier] nicht extrahiert dlls

https://www.nuget.org/packages/Google.ProtocolBuffers/

die nupkg zip Umbenannt, sah und die dll sind. Sie werden einfach nicht extrahiert - das heißt, die Nuspec sieht für die Ordnerstruktur darin falsch aus. Aber es ist schwer zu glauben, dass ich nur dieses Problem habe.

Ich hatte dieses Verhalten noch nie zuvor und habe ungefähr 2 Stunden darin versenkt. Hoffentlich kann jemand auf das wirklich Offensichtliche hinweisen und erklären, warum ein Paket, das ich in der Vergangenheit benutzt habe, plötzlich Fubar ist.

bearbeiten für weitere Informationen: Ich reproduzierte mit einem 4.6.1-Projekt in vs2015 Enterprise (nur Standard. NET nicht dnx oder etwas funky). Gerade mit einem 4.5.2 versucht und ich habe das gleiche Problem. Zu keiner DLL im Projekt werden Referenzen hinzugefügt. Außerdem gibt es im Packages-Ordner keine DLL - die xml-Dateien machen es jedoch über. Wenn ich jedoch in den nupkg gehe, umbenennen in .zip und öffne ich kann die DLL sehen, wo sie sein sollen. Ich lief auch vs als Admin im Allgemeinen - die Paket-Installation schlägt auch fehl aus der Befehlszeile (nicht, dass ich etwas anderes erwartet)

Extra edit: Auch andere nuget-Pakete funktionieren. Es kommen weitere Bereiche hinzu, die auch schwer sind. Es ist nur dieses eine Paket, das mir Probleme macht.

Konsolenprotokoll zur Installation thepacakge

Attempting to gather dependency information for package 'Google.ProtocolBuffers.2.4.1.555' with respect to project 'ConsoleApplication1', targeting '.NETFramework,Version=v4.5.2' 
Attempting to resolve dependencies for package 'Google.ProtocolBuffers.2.4.1.555' with DependencyBehavior 'Lowest' 
Resolving actions to install package 'Google.ProtocolBuffers.2.4.1.555' 
Resolved actions to install package 'Google.ProtocolBuffers.2.4.1.555' 
Adding package 'Google.ProtocolBuffers.2.4.1.555' to folder 'M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages' 
Added package 'Google.ProtocolBuffers.2.4.1.555' to folder 'M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages' 
Added package 'Google.ProtocolBuffers.2.4.1.555' to 'packages.config' 
Successfully installed 'Google.ProtocolBuffers 2.4.1.555' to ConsoleApplication1 
========== Finished ========== 

Ordnerstruktur (abgekürzt für geistige Gesundheit)

> dir /s                                     
Volume in drive M is steam                                 
Volume Serial Number is 747C-43B4                               

Directory of M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages                 

16/04/2016 15:04 <DIR>   .                              
16/04/2016 15:04 <DIR>   ..                              
16/04/2016 15:04 <DIR>   Google.ProtocolBuffers.2.4.1.555                      
       0 File(s)    0 bytes                            

Directory of M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages\Google.ProtocolBuffers.2.4.1.555        

16/04/2016 15:04 <DIR>   .                              
16/04/2016 15:04 <DIR>   ..                              
16/04/2016 15:04   2,731,847 Google.ProtocolBuffers.2.4.1.555.nupkg                     
16/04/2016 15:04 <DIR>   lib                              
16/04/2016 15:04 <DIR>   tools                             
       1 File(s)  2,731,847 bytes                            

Directory of M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages\Google.ProtocolBuffers.2.4.1.555\lib       

16/04/2016 15:04 <DIR>   .                              
16/04/2016 15:04 <DIR>   ..                              
16/04/2016 15:04 <DIR>   cf20                             
16/04/2016 15:04 <DIR>   cf35                             
16/04/2016 15:04 <DIR>   net20                             
16/04/2016 15:04 <DIR>   net35                             
16/04/2016 15:04 <DIR>   net40                             
16/04/2016 15:04 <DIR>   portable-net40+sl4+sl5+wp7+wp8+win8                      
16/04/2016 15:04 <DIR>   sl20                             
16/04/2016 15:04 <DIR>   sl30                             
16/04/2016 15:04 <DIR>   sl40                             
       0 File(s)    0 bytes                            

Directory of M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages\Google.ProtocolBuffers.2.4.1.555\lib\cf20      

16/04/2016 15:04 <DIR>   .                              
16/04/2016 15:04 <DIR>   ..                              
19/10/2015 20:39   71,034 Google.ProtocolBuffers.Serialization.xml                    
19/10/2015 20:39   282,553 Google.ProtocolBuffers.xml                        
       2 File(s)  353,587 bytes                            

Directory of M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages\Google.ProtocolBuffers.2.4.1.555\lib\cf35      

16/04/2016 15:04 <DIR>   .                              
16/04/2016 15:04 <DIR>   ..                              
19/10/2015 20:39   71,034 Google.ProtocolBuffers.Serialization.xml                    
19/10/2015 20:39   282,553 Google.ProtocolBuffers.xml                        
       2 File(s)  353,587 bytes                            
... 
<snip> 
...                                        
Directory of M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages\Google.ProtocolBuffers.2.4.1.555\tools       

16/04/2016 15:04 <DIR>   .                              
16/04/2016 15:04 <DIR>   ..                              
19/10/2015 20:39    6,779 CHANGES.txt                            
16/04/2016 15:04 <DIR>   google                             
19/10/2015 20:39    1,672 license.txt                            
19/10/2015 20:39    1,857 protoc-license.txt                          
16/04/2016 15:04 <DIR>   tutorial                            
       3 File(s)   10,308 bytes                            

Directory of M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages\Google.ProtocolBuffers.2.4.1.555\tools\google     

16/04/2016 15:04 <DIR>   .                              
16/04/2016 15:04 <DIR>   ..                              
16/04/2016 15:04 <DIR>   protobuf                            
       0 File(s)    0 bytes                            

Directory of M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages\Google.ProtocolBuffers.2.4.1.555\tools\google\protobuf   

16/04/2016 15:04 <DIR>   .                              
16/04/2016 15:04 <DIR>   ..                              
16/04/2016 15:04 <DIR>   compiler                            
19/10/2015 20:39    4,301 csharp_options.proto                         
19/10/2015 20:39   21,880 descriptor.proto                          
       2 File(s)   26,181 bytes                            

Directory of M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages\Google.ProtocolBuffers.2.4.1.555\tools\google\protobuf\compiler 

16/04/2016 15:04 <DIR>   .                              
16/04/2016 15:04 <DIR>   ..                              
19/10/2015 20:39    7,736 plugin.proto                           
       1 File(s)   7,736 bytes                            

Directory of M:\programming\general\git\akka-cluster-homebrew\ConsoleApplication1\packages\Google.ProtocolBuffers.2.4.1.555\tools\tutorial     

16/04/2016 15:04 <DIR>   .                              
16/04/2016 15:04 <DIR>   ..                              
19/10/2015 20:39    754 addressbook.proto                          
       1 File(s)   754 bytes                            

    Total Files Listed:                                 
       26 File(s)  5,960,765 bytes                            
       50 Dir(s) 26,398,302,208 bytes free 
+0

Können Sie weitere Informationen darüber, was genau Sie tun, was IDE Sie verwenden, welche Art Projekt, das Sie es in, installieren und was es passiert? Das Google.ProtocolBuffers sieht für mich OK aus und wird in einem .NET 4.5-Projekt mit den entsprechenden Verweisen installiert. Die .nuspec-Datei in der .nupkg-Datei definiert nicht den Speicherort der Assemblys. Sie basiert auf den Verzeichnisnamen in .nupkg. –

+0

sicher, in einer Bearbeitung hinzugefügt. –

Antwort

0

ok fand ich diese Seite schließlich: https://connect.microsoft.com/VisualStudio/feedback/details/1656768/installing-certain-nuget-packages-fails-to-actually-extract-the-dll-files-to-the-relevant-lib-folder-and-fails-to-add-an-assembly-reference-to-the-csproj-file

Ich habe 2 Dinge als Ergebnis 1) gehe zu %userprofile%\.nuget und lösche den Paketordner (aber bedenke, dass ich das schon gemacht habe und nein t fix es alleine). Ich habe bemerkt, dass die Version hier die Probleme widerspiegelt, die ich hatte - außerdem, da ich das vorher gelöscht habe, weiß ich, dass das Löschen dieses Ordners nicht ausreicht.

2) im Admin-Modus vs dev Eingabeaufforderung "devenv /resetuserdata"

neue Lösung 4.5.2, Konsole und arbeiteten erstes Mal.

Was hat das verursacht? Nicht das nebeligste.

btw die consoel Ausgang das Paket von der Installation ist jetzt:

Attempting to gather dependency information for package 'Google.ProtocolBuffers.2.4.1.555' with respect to project 'ConsoleApplication2', targeting '.NETFramework,Version=v4.5.2' 
Attempting to resolve dependencies for package 'Google.ProtocolBuffers.2.4.1.555' with DependencyBehavior 'Lowest' 
Resolving actions to install package 'Google.ProtocolBuffers.2.4.1.555' 
Resolved actions to install package 'Google.ProtocolBuffers.2.4.1.555' 
    GET https://api.nuget.org/packages/google.protocolbuffers.2.4.1.555.nupkg 
    OK https://api.nuget.org/packages/google.protocolbuffers.2.4.1.555.nupkg 14ms 
Installing Google.ProtocolBuffers 2.4.1.555. 
Adding package 'Google.ProtocolBuffers.2.4.1.555' to folder 'c:\users\john\documents\visual studio 2015\Projects\ConsoleApplication2\packages' 
Added package 'Google.ProtocolBuffers.2.4.1.555' to folder 'c:\users\john\documents\visual studio 2015\Projects\ConsoleApplication2\packages' 
Added package 'Google.ProtocolBuffers.2.4.1.555' to 'packages.config' 
Successfully installed 'Google.ProtocolBuffers 2.4.1.555' to ConsoleApplication2 
========== Finished ========== 
Verwandte Themen