[英]Can i use windows store app C# code (namespace) for desktop app?
Windows store apps (windows 8.1) provides c# sample code (namespaces) like for usb device communication. Windows应用商店应用程序(Windows 8.1)提供c#示例代码(命名空间),例如用于USB设备通信。 Can i use same c# sample code for windows desktop app or is there any way to use those in windows desktop app.
我可以将相同的C#示例代码用于Windows桌面应用程序,还是可以在Windows桌面应用程序中使用这些示例代码。
Yes, it is possible! 对的,这是可能的!
If it is a good idea or not is another question. 是否是个好主意是另一个问题。 Scott Hanselman, well known Microsoft employee, has a nice blog about this problem.
著名的Microsoft员工Scott Hanselman拥有一个有关此问题的不错的博客。 You can find it here:
你可以在这里找到它:
http://www.hanselman.com/blog/HowToCallWinRTAPIsInWindows8FromCDesktopApplicationsWinRTDiagram.aspx http://www.hanselman.com/blog/HowToCallWinRTAPIsInWindows8FromCDesktopApplicationsWinRTDiagram.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.