How can I use Microsoft Surface SDK with Visual Studio 2012?

半城伤御伤魂 提交于 2019-12-23 02:35:07

问题


I visited Surface SDK and it tells that it requires Visual Studio 2010/Express. I tried to install it with VS 2012 RC but it does not allow. Does surface sdk not support VS 2012 RC ? How can I use it with VS 2012 RC ?


回答1:


Install the SDK 2.0 Feb. 2012 Update on a box with Win 7 and Visual Studio 2010. Then create a Surface Project from the Template. Change the Main Surface Window ( I forget the class name. ) to inherit from Window instead of Surface Window if you want it to work on Windows 8. Of course doing this you will loose the input stack for Tags and stuff. Copy the Surface SDK redistributable Assemblies for the controls to a folder for future reference in new projects. You could Upgrade the project that you create with Visual Studio to VS2012. Create a template from there. Hope this points you in the right direction. I have not done it in a while and am writing from the top of my head. -Mark




回答2:


you have to reference the following ddls:

Microsoft.Surface.Core.dll, Microsoft.Surface.dll, Microsoft.Surface.Presentation.Design.dll, Microsoft.Surface.Presentation.dll, Microsoft.Surface.Presentation.Generic.dll



来源:https://stackoverflow.com/questions/11624895/how-can-i-use-microsoft-surface-sdk-with-visual-studio-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!