简体   繁体   English

c#Metro风格应用引用javascript Metro风格应用

[英]c# metro style apps referencing javascript metro style apps

I am building a metro style app using c#, but in the middle I realized that I have to do something with javascript. 我正在使用c#构建Metro风格的应用程序,但是在中间,我意识到我必须使用javascript做一些事情。 now I am confused what to do? 现在我很困惑该怎么办? do I have to make the entire app using javascript and html5 or there is a way where I can reference the c# metro style app to the required js metro style app, and reference it back to my c# metro style proj later on. 我必须使用javascript和html5制作整个应用程序,还是有一种方法可以将c#Metro Style应用程序引用到所需的js Metro Style应用程序,然后稍后将其引用回我的C#Metro Style项目。

This should be your solution: Creating an HTML Metro style app that references C# and C++ code 这应该是您的解决方案: 创建引用C#和C ++代码的HTML Metro风格应用

Check the section Configure C# projects to generate WinMD files and Set up project references section in the reference link. 检查参考链接中的“ Configure C# projects to generate WinMD files和“ Set up project references部分。 You need to set the c# project output the WinMD (Windows Meta Data). 您需要将c#项目的输出设置为WinMD(Windows Meta Data)。 A hybrid project may solve your problem. 混合项目可以解决您的问题。

Hope this help you that you are trying to implement.. 希望这对您正在尝试实现的有所帮助。

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

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