Yoc*_*mer 29 c# 64-bit designer visual-studio-2010
在Visual Studio 2010 64位中,我无法设计我的表单.
我一直收到这个警告(和错误):
Warning 18
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file:
MainForm --- The base class 'Blah' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.
Run Code Online (Sandbox Code Playgroud)
这只发生在我为x64编译时......在x86中,设计师运行良好.
只是想明确我需要项目在x64上工作,因为很多项目的组件都是用x64编译的,如果表单是在x86中则无法工作.
有没有其他人遇到这个并找到了解决方案?
JMa*_*sch 35
我可以通过使用用户控件创建WPF应用程序来重新解决您的问题(将用户控件放在wpf应用程序上,然后构建x64).
这是我猜测是怎么回事:
Visual Studio是一个32位应用程序,WPF设计者必须加载引用的程序集(当你使用用户控件时,你会一直看到这种行为,你必须重新构建才能获得设计师更新).Windows不支持32位和64位之间的"thunk" - 您必须是32位应用程序或64位应用程序,期间,不能共享.
由于hte WPF设计器是32位,因此程序集需要为32位.
这是一个可能的解决方案:使用"任何CPU"选项设计您的应用程序.这将使您的代码在32位平台上的JIT为32位,在64位平台上为64位.
这是VS2008和VS2010中的一个错误.
这是错误报告:
似乎还没有解决这个问题.
| 归档时间: |
|
| 查看次数: |
19258 次 |
| 最近记录: |