混合"窗口,不支持在WPF项目" [英] Blend "Window is not supported in a WPF Project"

查看:452
本文介绍了混合"窗口,不支持在WPF项目"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个令人沮丧的时间与交融报告窗口,不支持在Windows presentation基金会(WPF)项目。由于名不见经传的配置,但不能完全解决如何裂伤我的出路吧。

I am having a frustrating time with Blend reporting "Window is not supported in a Windows Presentation Foundation (WPF) project." due to unbuildable configurations but can't quite work out how to mangle my way out of it.

我已经计算出它可能是由于我的努力有x86和x64配置一个解决方案。有没有办法告诉混合2这是活动的解决方案配置的和主动的解决方案平台的。

I've worked out it is probably due to my trying to have a single solution with x86 and x64 configurations. There is no way to tell Blend 2 which is the active Solution Configuration and active Solution Platform.

我认为这是一个有点疲软的配置系统,也许我已经设置好了的样子,但我有Debug64和调试的解决方案配置的每一个用来与平台的x86和x64。

I think it's a bit of a weakness in the configuration system, or maybe the way I've set things up, but I have Debug64 and Debug solution configurations one of each is used with the platform x86 and x64.

我也认为这是一个简单的排序问题 - 64 86来之前和调试自带Debug64之前使混合结束与调试的一个名不见经传的配置与64

I also think it's a simple sorting problem - x64 comes before x86 and Debug comes before Debug64 so Blend ends up with an unbuildable config of Debug with x64.

当我选择调试和VS 64的组合,它的XAML编辑器无法加载两种。

When I choose the combination of Debug and x64 in VS, its XAML editor can't load either.

该解决方案是一个中等复杂的 - 有一个纯粹的Win32 DLL,C ++ / CLI示范项目和使用的主体WPF项目两个WPF程序集

The solution is a moderately complex one - there's a pure Win32 DLL, C++/CLI Model project and two other WPF assemblies used by the main WPF project.

更新 我已经撕开所有的x64配置了我的解决方案,并重建一切与没有影响。

UPDATE I have ripped all the x64 config out of my solution and rebuilt everything with no effect.

后来我卸载了Blend 2中和安装混合3 - 它不喜欢的东西或者

I then uninstalled Blend 2 and installed Blend 3 - it doesn't like things either.

在Visual Studio XAML编辑器还是很高兴,因为是计划建设和运行。

The Visual Studio XAML editor is still very happy as is the program building and running.

(从盎司无奈扼杀尖叫的回声)

(echoes of strangled scream of frustration from oz)

推荐答案

混合要求的解决方案也有值为anycpu平台配置管理器。
任何C ++(包括C ++ / CLI)解决方案中的项目将不会被加载。

Blend requires the solution to ALSO have an AnyCPU platform in the configuration manager.
Any C++ (including C++/CLI) projects in the solution will not be loaded.

我有值为anycpu + 86 + x64平台在我的解决方案,该值为anycpu不建立非C#项目。

I have AnyCPU +x86 +x64 platforms in my solutions, the AnyCPU doesn't build non C# projects.

将Windows /控件值为anycpu C#中的DLL,这样他们就可以在混合编辑。
(不要从他们引用的x86 / x64的项目。)

Put the windows/controls in AnyCPU C# dlls, so they can be edited in blend.
(Do not reference x86/x64 projects from them.)

设置EXE为x86和x64只(不值为anycpu) - 将不会在混合运行(无值为anycpu) 但该解决方案将仍然建立。

Set the exe as x86 and x64 only (no AnyCPU) - will not run in blend (no AnyCPU), but the solution will still build.

这篇关于混合"窗口,不支持在WPF项目"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆