简体   繁体   English

Visual Studio 2012设计视图的混合不起作用

[英]Blend for Visual Studio 2012 design view not working

I'm working on a Windows Store App in Visual Studio 2012 and decided it might be easier to start using blend for the interface and layout. 我正在使用Visual Studio 2012中的Windows应用商店应用程序,并决定开始使用blend作为界面和布局可能更容易。 But in my attempts to make this layout design easier for myself, I have run into a problem with the design view. 但是在我尝试使这种布局设计更容易的时候,我遇到了设计视图的问题。 The error message is that design view is unavailable for x64 and ARM platforms. 错误消息是设计视图不适用于x64和ARM平台。 I'm familiar with this error from Visual Studio but I was just wondering if there's a simple way to change the target platforms so I can see the design view in Blend? 我对Visual Studio中的这个错误很熟悉,但我只是想知道是否有一种简单的方法来更改目标平台,以便我可以在Blend中看到设计视图?

I know there have been problems with blend for VS 2012 up until now, but I thought maybe this was an easy one to fix that I'm missing somewhere. 我知道到目前为止,VS 2012的混合存在问题,但我想也许这是一个很容易解决的问题,我错过了某个地方。

If anyone knows a way to fix this I'd really appreciate it. 如果有人知道解决这个问题的方法,我真的很感激。 Thanks! 谢谢!

  1. Close Blend 关闭混合
  2. Open the project in Visual Studio 2012 在Visual Studio 2012中打开项目
  3. Change Release/Debug Configuration to Any CPU or x86 Release/Debug Configuration更改为Any CPUx86
  4. Save All in Visual Studio to make sure it saves the project (The Project does not save when you run!) 在Visual Studio中全部保存以确保它保存项目(运行时项目不保存!)
  5. Reopen the document in Blend 在Blend中重新打开文档

That's it! 而已!

Just go to Build->Configuration Manager and change the Platform to 'Any CPU'. 只需转到Build-> Configuration Manager并将Platform更改为“Any CPU”。

Additionally you can enable the 'Solution Platform' dropdown in the toolbar by clicking the little down arrow right to the debugging Toolbar items then click 'Add remove buttons' and select 'Solution Platforms'. 此外,您可以通过单击调试工具栏项目右侧的小向下箭头,然后单击“添加删除按钮”并选择“解决方案平台”,在工具栏中启用“解决方案平台”下拉列表。

将.NetFramework从4.5更改为4.0

You would need to install windows phone sdk for blend to work correctly in your application. 您需要安装Windows phone sdk才能使混合在您的应用程序中正常工作。 http://www.microsoft.com/en-us/download/details.aspx?id=35471 http://www.microsoft.com/en-us/download/details.aspx?id=35471

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM