尝试从Blend 4中的Visual Studio 2010打开WPF Xaml窗口时出错

尝试从Blend 4中的Visual Studio 2010打开WPF Xaml窗口时出错

问题描述:

我拥有Visual Studio 2010 Ultimate,并具有Blend 4表达式.

I have Visual Studio 2010 ultimate, and expression Blend 4.

我已经在Visual Studio中创建了WPF 4项目,并且当我尝试在Expression Blend 4中打开MainWindow.xaml文件时-我收到一条错误消息,指出该文件或文件夹不是有效的Blend项目.

I have created a WPF 4 project in Visual Studio and when i try to open the MainWindow.xaml file in Expression Blend 4 - i get an error stating that the file or folder is not a valid blend project.

我需要为Visual Studio安装一些东西,以便Blend能够在Blend 4中编辑WPF Xaml文件吗?

Is there something i need to install for visual studio to make blend able to edit WPF Xaml files in Blend 4?

我可以毫无问题地打开blend4并创建WPF应用程序-当我收到错误消息时,它只是试图打开在Visual Studio 2010中在Blend 4中创建的mainwindow.xaml.

I can open blend4 and create WPF applications with no problem - its just trying to open a mainwindow.xaml created in Visual Studio 2010 in blend 4 when i get the error.

我正在运行Windows 7 32位.

I am running windows 7 32 bit.

欢呼

杆.

Hi

这对您来说是一个了不起的案例,但通常情况下,与我发生的事情是,在VS 2010中无法打开的xaml文件可以在Blend 4中轻松打开.

Its amazing case with you, but normally what happens with me the xaml file which do not open in VS 2010, easily opens in Blend 4.

这是仅MainWidow的问题,还是项目中的所有窗口都未打开?

Is this is problem with only MainWidow, or all windows in project are not being opened ?

如果问题仅在于MainWindow,则说明您正在使用某些资源,其路径可通过Blend 4访问,请检查所有资源.

If the problem is with only MainWindow, then you are using some resources whose path is accessible by Blend 4, check all the resources.

如果所有窗户都是这种情况,请尝试一些轻松的策略.

And if the case is with all the windows then try some fillowing tactics..

您都尝试过这两种方法,这意味着从文件"菜单中打开->打开项目,然后直接转到目录中项目的解决方案文件,然后右键单击->然后使用选项打开,然后选择Expression Blend 4.

Have you tried both, means open from the File menu -> Open projects , and directly go to the solution file of the project in the directory and then right click -> then open with option and then select the Expression Blend 4.

请同时尝试两种方式.

请在Expression Blend 4中创建一个测试项目,然后在记事本中查看其解决方案文件的内容,然后将其与未打开的项目的解决方案文件的内容进行比较,找出有何区别,然后尝试使他们 一样.

Please creat a test projects in Expression Blend 4, then see its solution files content in Notepad, and then compare it with the contents of the Solution file of the project which is not being opened, and find what is the difference and try to make them the same.