2013-01-04 27 views
5

लोड करने में असमर्थ है Windows 7 Pro से 8 Pro में स्थान अपग्रेड करने के बाद मैं विजुअल स्टूडियो 2012 प्रो में चलाने के लिए NuGet के पैकेज प्रबंधक कंसोल को पाने में असमर्थ रहा हूं। त्रुटि मैं प्राप्त है:NuGet पैकेज प्रबंधक कंसोल PowerShell

The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2977) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: The getter method should be public, non void, static, and have one parameter of type PSObject. 
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2984) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: The getter method should be public, non void, static, and have one parameter of type PSObject. 
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2991) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: The getter method should be public, non void, static, and have one parameter of type PSObject. 
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2998) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: The getter method should be public, non void, static, and have one parameter of type PSObject. 
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(3005) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: The getter method should be public, non void, static, and have one parameter of type PSObject. 
The term 'Get-ExecutionPolicy' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 

मैं तरीके इसे ठीक करने लेकिन पूरी तरह से खाली आ गया है के लिए पिछले कई दिनों के लिए खोज की है। जोड़ने ऑन

  • सभी सेटिंग्स
  • रीसेट किया जा रहा दृश्य स्टूडियो
  • को पुनर्स्थापित करना दृश्य स्टूडियो
  • दृश्य स्टूडियो से पहले PowerShell शुरू मरम्मत (क्या

    • सभी दृश्य स्टूडियो अक्षम करना: मैं कोई लाभ नहीं हुआ साथ इन सभी की कोशिश की है इसका मतलब सिर्फ पावरशेल लॉन्च करना है और फिर विजुअल स्टूडियो लॉन्च करना है?)
    • व्यवस्थापक के रूप में पावरशेल और विजुअल स्टूडियो दोनों को चलाने
    • सुरक्षित मोड
    • अप्रतिबंधित

    दृश्य स्टूडियो के लिए पावर शैल ExecutionProperty स्थापना में दृश्य स्टूडियो में इस तरह के लगातार एक विशेष पृष्ठ पर XAML के रूप में अच्छी तरह से एक पर क्लिक करें घटना को जोड़ने का प्रयास करते समय दुर्घटनाग्रस्त के रूप में अन्य अजीब व्यवहार का प्रदर्शन करते किया गया है चल रहा है, और इस वजह से मेरा आंत कहता है कि यह वास्तव में पावर शैल या नुगेट नहीं है बल्कि मेरे ओएस/विजुअल स्टूडियो के साथ एक मुद्दा है।

    जब तक किसी के पास कोई समाधान न हो, मुझे लगता है कि मैं केवल विंडोज 8 की क्लीन इंस्टॉल करने के लिए नीचे हूं और उम्मीद कर रहा हूं कि यह ठीक हो जाए।

  • उत्तर

    4

    मैं इस मुद्दे को जो से मिलता-जुलता है पाया:

    Embedding Powershell v2.0 in .NET app on Windows 8 RTM

    आप अगर यह यह ठीक करता है यह देखने के लिए कि सवाल पर समाधान की कोशिश कर सकते हैं?

    +0

    मैंने उस विधि को भी पाया और भाग्य के साथ इसे आजमाया। आखिरकार मैंने छोड़ दिया और विन 8 स्थापित किया जो इसे स्पष्ट रूप से तय करता है। –

    संबंधित मुद्दे