2011-04-08 16 views
12

लोड करने में विफल रहता है मुझे परावर्तक समस्या के समान समस्या है, सिवाय इसके कि मेरे पास रिफ्लेक्टर प्लगइन स्थापित नहीं है, और मैं अभी भी NuGet कंसोल शुरू नहीं कर सकता। मैं विंडोज 7 प्रोफेशनल, वीएस 2010 एसपी 1 पर चल रहा हूं।NuGet PowerShell

Nuget जीयूआई के माध्यम से ठीक काम करता है, लेकिन उदाहरण के लिए, मैं कंसोल के बिना * .vsdoc फ़ाइलों को स्थापित नहीं कर सकता।

निम्न त्रुटि है:

The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2943) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: Cannot convert the "Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase" value of type "System.String" to type "System.Type". 
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2950) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: Cannot convert the "Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase" value of type "System.String" to type "System.Type". 
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2957) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: Cannot convert the "Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase" value of type "System.String" to type "System.Type". 
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2964) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: Cannot convert the "Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase" value of type "System.String" to type "System.Type". 
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2971) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: Cannot convert the "Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase" value of type "System.String" to type "System.Type". 
The following error occurred while loading the extended type data file: , C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.2.20325.9034\Scripts\NuGet.Types.ps1xml(9) : Error in type "System.__ComObject#{866311e6-c887-4143-9833-645f5b93f6f1}": Exception: Cannot convert the "NuGet.VisualStudio.ProjectExtensions" value of type "System.String" to type "System.Type". 
The following error occurred while loading the extended type data file: , C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.2.20325.9034\Scripts\NuGet.Types.ps1xml(33) : Error in type "Microsoft.VisualStudio.FSharp.ProjectSystem.Automation.OAProject": Exception: Cannot convert the "NuGet.VisualStudio.ProjectExtensions" value of type "System.String" to type "System.Type". 
System.Management.Automation.CmdletInvocationException: Could not load file or assembly 'Scripts\nuget.psm1' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---> System.IO.FileLoadException: Could not load file or assembly 'Scripts\nuget.psm1' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---> System.ArgumentException: Illegal characters in path. 
at System.IO.Path.CheckInvalidPathChars(String path) 
at System.IO.Path.Combine(String path1, String path2) 
at Microsoft.VisualStudio.Platform.VsAppDomainManager.<AssemblyPaths>d__1.MoveNext() 
at Microsoft.VisualStudio.Platform.VsAppDomainManager.InnerResolveHandler(String name) 
at Microsoft.VisualStudio.Platform.VsAppDomainManager.ResolveHandler(Object sender, ResolveEventArgs args) 
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName) 
--- End of inner exception stack trace --- 
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadBinaryModule(Boolean trySnapInName, String moduleName, String fileName, Assembly assemblyToLoad, String moduleBase, SessionState ss, String prefix, Boolean loadTypes, Boolean loadFormats, Boolean& found) 
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleNamedInManifest(String moduleName, String moduleBase, Boolean searchModulePath, String prefix, SessionState ss, Boolean loadTypesFiles, Boolean loadFormatFiles, Boolean& found) 
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleManifest(ExternalScriptInfo scriptInfo, ManifestProcessingFlags manifestProcessingFlags, Version version) 
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModule(String fileName, String moduleBase, String prefix, SessionState ss, Boolean& found) 
at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord() 
at System.Management.Automation.Cmdlet.DoProcessRecord() 
at System.Management.Automation.CommandProcessor.ProcessRecord() 
--- End of inner exception stack trace --- 
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 
at System.Management.Automation.Runspaces.Pipeline.Invoke() 
at NuGetConsole.Host.PowerShell.Implementation.PowerShellHost.Invoke(String command, Object input, Boolean outputResults) 
at NuGetConsole.Host.PowerShell.Implementation.PowerShellHostExtensions.ImportModule(PowerShellHost host, String modulePath) 
at NuGetConsole.Host.PowerShell.Implementation.PowerShellHost.LoadStartupScripts() 
at NuGetConsole.Host.PowerShell.Implementation.PowerShellHost.Initialize() 
at NuGetConsole.Implementation.Console.ConsoleDispatcher.Start() 
at NuGetConsole.Implementation.PowerConsoleToolWindow.MoveFocus(FrameworkElement consolePane) 
+0

संबंधित प्रश्न में उत्तर देखें: http://stackoverflow.com/questions/10457039/nuget-powershell-and-executionpolicy –

उत्तर

8

एकमात्र समाधान जो काम करता था वह VS2010 शुरू करने से पहले PowerShell मैन्युअल रूप से शुरू करना था।

तो अगर किसी को यह समस्या हो तो यह त्वरित समाधान है।

+0

शक्तियों की अविश्वसनीय रूप से कष्टप्रद "सुविधा"। मेरे पास "लोकलमाचिन" के दायरे में "बायपास" नीति है, फिर भी मैं इसे देख रहा था। वीएस से पहले पीएस चलाना चाल था, मेरे दिन – galaktor

2

NuGet जरूरत Powershell2 सही ढंग से काम करने के लिए। यदि आप यहां से डाउनलोड कर सकते हैं और इंस्टॉल कर सकते हैं: http://support.microsoft.com/kb/968929

+0

इसके अलावा पावरहेल नहीं है 2 सुनिश्चित करें कि आप NuGet http://nuget.org/ के नवीनतम संस्करण का उपयोग कर रहे हैं। – davidfowl

+0

हां लेकिन त्रुटि संदेश पावरहेल 1.0 डीआईआर से खींच रहा है :) –

+0

संस्करणों में त्रुटि संदेश> 1.0 आपको बताता है कि वास्तव में क्या गलत है :)। – davidfowl

0

शक्तियों को शुरू करने से मेरी मदद नहीं होती है। मैंने पाया कि यह Nuget का एक ज्ञात मुद्दा है। आपको यह समस्या मिलती है क्योंकि आपके पास लाल गेट परावर्तक एड-इन स्थापित और सक्षम है। यदि आप नवीनतम संस्करण (> = 6.5) पर प्रतिबिंब अद्यतन करते हैं, तो इसे काम करना चाहिए।

कृपया इस लिंक

http://nuget.codeplex.com/workitem/265

+0

को बचाने के लिए thx कोई प्रतिबिंब एड-इन स्थापित नहीं किया गया था। वह प्रारंभिक समस्या थी। : डी – Drakche

0

मैं दृश्य स्टूडियो 2012 न तो परावर्तक को हटाने और न ही GhostDoc विस्तार, जो दोनों के लिए इस तरह त्रुटियों का कारण कहा गया था हटाने, मदद की के तहत इस मुद्दे पर था पर एक नज़र डालें। हालांकि, विंडोज पावरहेल 3.0 स्थापित करना बचाव में आया: http://technet.microsoft.com/en-us/library/jj205328.aspx

0

उत्पादकता शक्ति उपकरण मेरी समस्या थी। v12.0.30129.0 मैंने इसे अक्षम कर दिया - एक अनइंस्टॉल आवश्यक नहीं था - और बनाम 2013 फिर से काम किया