標籤:
在安裝好Visual Studio 2008後,啟動Visual Studio 2008 發現如下提示:
包載入失敗
未能正確載入包“Microsoft.VisualStudio.Xaml”( GUID = {E58C2A8B-BCC4-4559-AD59-D62EB6D58A22} )。請與包供應商聯絡以獲得協助。由於可能會發生環境損壞,建議重新啟動應用程式。要禁止將來載入此包嗎? 可以使用“devenv /resetskippkgs”重新啟用包載入。
按照提示,在visual studio 2008命令提示 中輸入 命令 "devenv /resetskippkgs" 重啟 Visual Studio 2008,結果還是不能載入Xaml包。
於是乎,在網上尋找相關的資料,終於功夫不負有心人,還是被找著了。
原因:
相應的Visual Studio 2008 需要有相應版本的SP1補丁。
解決方案:
安裝相應版本的SP1補丁即可。(本人親測)
原文:https://support.microsoft.com/en-us/kb/2292664
Visual Studio 2008 Package Load FailureSYMPTOMSYou install one version of Visual Studio such as Visual Studio Express (VB, C# or Web) and then patched it to Service Pack 1. At a subsequent time you install another version such as Visual Studio 2008 Standard or Professional edition but do not re-install the service pack.
When you launch Visual Studio you may get package load failures such as the following:
Package Load Failure
Example:
Package ‘Microsoft.VisualStudio.Xaml‘ has failed to load properly ( GUID = {E58C2A8B-BCC4-4559-AD59-D62EB6D58A22} ). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future? You may use ‘devenv /resetskippkgs‘ to re-enable package loadingCAUSEThe different versions of Visual Studio need to be at the same service pack level.RESOLUTIONTo fix the problem, you can run the standalone Visual Studio 2008 Service Pack 1 installer. This should leave both the Express SKU and the Standard SKU with a working WPF designer, service packed to SP1.
Visual Studio 2008 Package Load Failure:未能正確載入包“Microsoft.VisualStudio.Xaml”