俊's profile終わりなき旅PhotosBlogLists Tools Help

Blog


    April 23

    Package 'Microsoft.VisualStudio.Xaml' has failed to load properly

    从Visual Studio Team System 2008 Development Edition升级到Visual Studio Team System 2008 Team Suite打开WPF Application会发现XAML Design无法加载, XAML文件被视为Text Document打开. 如图:

    解决方法:
    1. 关闭已经打开的Visual Studio 2008.
    2. Micorosft Visual Studio 2008 -> Visual Studio Tools -> Visual Studio 2008 Command Prompt输入:devenv /resetskippkgs
    3. Visual Studio Restart.
    重新打开WPF Application发现XAML Design加载成功.
    resetskippkgs(reset skip packages)的作用是告诉Visual Studio清除所有加载失败的VSPackage,重新加载所有VSPackage启动 Visual Studio.

    在Visual Stdiuo产品的Feedback里有好为数不少的人提到(有人提到先repair Visual Stduio 2008 -> VS2008PatchRemovalTool -> reinstall Visual Studio 2008 SP1 -> devenv /resetskippkgs, 个人建议还是先尝试devenv /resetskippkgs不要急于先去repair Visual Studio 2008大费周折):

    http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=370988
    http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=426806

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://kimiya25.spaces.live.com/blog/cns!27A083D4FD9435E9!1727.trak
    Weblogs that reference this entry
    • None