PowerCommands 在安裝 VS2008 SP1 後無法正常開啟頁面

taogchan發表於2011-02-25

這裡的解決方案僅適用於 PowerCommands 1.1 版。

要解決這個問題,你必須編輯 Visual Studio 2008 的設定檔

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe.config

開啟檔案後大約在第12行的地方找到以下這行:

<probing privatePath="PublicAssemblies;PrivateAssemblies" />

然後在這一行下面新增一個 dependentAssembly 區段,內容如下:
備註:預設的 PowerCommands 安裝目錄在 C:\Program Files\PowerCommands\ 目錄下

<dependentAssembly>
  <assemblyIdentity name="Microsoft.PowerCommands" publicKeyToken="null" culture="neutral"/>
  <codeBase version="1.1.0.0" href="C:\Program Files\PowerCommands\Microsoft.PowerCommands.dll"/>
dependentAssembly>

設定完成的畫面大概長這樣:

面新增一個 dependentAssembly 區段

如此一來,你的 PowerCommands 又可以正常使用了!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22392018/viewspace-687942/,如需轉載,請註明出處,否則將追究法律責任。

相關文章