混合JS和C#以及Expression Blend [英] Hybrid JS and C# and Expression Blend
问题描述
我正在使用基于C#的数据同步层基于WinJS的UI构建混合应用程序(基本上,项目的C#部分维护本地缓存和当下载可能对当前显示的视图感兴趣的新内容时,将事件推送到UI。在运行时
一切都很好,但我无法在Expression Blend中加载项目。当我打开我的default.html文件时,Blend会在几秒钟内执行操作,然后显示一条无用的消息:编辑此文档时遇到错误。重新加载$ b $ b文档再试一次。
I am building an hybrid app with a WinJS based UI over C# based data sync layer (basically, the C# part of the project maintain a local cache and push events to the UI when new things that might interest the currently displayed view are downloaded). At runtime everything is fine, but I am unable to load the project in Expression Blend. When I open my default.html file, Blend is doing stuff during a couple of seconds and then display an unuseful message: An error was encountered while editing this document. Reload the document to try again.
当然,单击重新加载按钮无法解决问题。
Of course, clicking the reload button does not resolve the problem.
这是否已知问题 ?我是否必须在Blend中的某处注册我的WinMD C#组件才能加载它?提前致谢!
Is this a known issue ? Do I have to register my WinMD C# component somewhere in Blend to make it available for loading ? Thanks in advance !
我在Windows 8 RP上使用VS 2012 RC和Blend 2012 RC。
I am using VS 2012 RC and Blend 2012 RC on Windows 8 RP.
Simon
推荐答案
我无法重现此问题。以下是我遵循的步骤。
I m not able to repro this issue. Here are the steps I followed.
- 在Visual Studio中创建一个新的空白HTML应用程序
- 在Visual中创建一个C#Windows运行时组件Studio
- 在HTML应用和C#Windows运行时组件之间添加了引用
- 全部保存
- 项目上下文菜单 - >在Blend中打开
我可以打开default.html就好了。如果我错过了什么,请告诉我。
I can open the default.html just fine. Let me know if I missed something.
这篇关于混合JS和C#以及Expression Blend的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!