Nếu bạn muốn giữ lại điện Commands cho Visual Studio 2008 được cài đặt, xem workaround này ở đây:
PowerCommands crashing VS2008 SP1
Nhưng về cơ bản:
một công việc xung quanh đó là một thay đổi đơn giản vào tập tin devenv.exe.config.
này sẽ tồn tại trong (hệ thống 64 bit) C: \ Program Files (x86) \ Microsoft Visual Studio 9.0 \ Common7 \ IDE
Hoặc (hệ thống 32 bit) C: \ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE
Thêm mã thông báo XML này vào danh sách dependsAssembly. Họ đã cho tôi thêm nó sau văn phòng, nhưng tôi không chắc liệu điều đó có quan trọng không.
<dependentAssembly>
<assemblyIdentity name="office" publicKeyToken="71e9bce111e9429c" culture="neutral"/>
<codeBase version="12.0.0.0" href="PrivateAssemblies\Office12\Office.dll"/>
</dependentAssembly>
<!-NEW STUFF-->
<dependentAssembly>
<assemblyIdentity name="Microsoft.PowerCommands" publicKeyToken="null" culture="neutral"/>
<!-- For 64-bit systems, uncomment this one
<codeBase version="1.1.0.0" href="C:\Program Files (x86)\PowerCommands\Microsoft.PowerCommands.dll"/> -->
<!-- For 32-bit systems, uncomment this one
<codeBase version="1.1.0.0" href="href="C:\Program Files\PowerCommands\Microsoft.PowerCommands.dll"/> -->
</dependentAssembly>
Điều này làm việc tốt cho tôi.
Nguồn
2009-01-21 00:39:18
Ồ, vì vậy, các công cụ lập trình trên trang web trợ giúp lập trình đều nằm ngoài giới hạn trợ giúp. Đừng giật mình, tôi chỉ đăng bài này bởi vì nó gây ra cho tôi những giờ thất vọng, và tôi nghĩ điều này sẽ giúp đỡ người khác. –
Bailed trên powercommands từ lâu vì những vấn đề như thế này. – Will