這裡的解決方案僅適用於 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>
設定完成的畫面大概長這樣:
如此一來,你的 PowerCommands 又可以正常使用了!
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22392018/viewspace-687942/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22392018/viewspace-687942/