Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Surface SDK run on Visual Studio 2012?

I need to create a WPF app using the Surface SDK. I am using Visual Studio 2012, and according to this SO post, VS2012 doesn't allow that. However, since this was posted before it was officially released, I want to make sure I'm not missing something.

I just need a few of the touch/swipe controls that come with it. Is there a different option for VS2012? The other developer is using 2010, so it needs to be able to still run on his machine. It's a very simple app that I just need to hammer out, so I'm looking for the fastest, easiest method. Both of us and the end application is to run on Windows 7.

like image 603
scojomodena Avatar asked Jan 08 '13 22:01

scojomodena


1 Answers

I found an easy solution by which it seems to work. It does expect you to have Visual Studio 2010 installed. Following the following steps I managed to compile in Visual Studio 2012 using .NET 4.5. TouchDown events work. I tried it out on some small projects and they seem to work perfectly fine.

  1. Use Visual Studio 2010 to set up a Surface project.
  2. Safe and close Visual Studio 2010.
  3. Open the solution using Visual Studio 2012.
  4. Change the target framework under project settings to .NET 4.5.
  5. Save as a new solution file.
  6. Compile, ... everything works!

This method prevents you from having to set up all the configuration files/references yourself. The only downside is you don't have any of the Surface tools integrated into the IDE. E.g. the toolbox, project templates, ... This of course doesn't prevent you from writing plain XAML yourself.

If for some reason this doesn't work in the long run I will update this post.

like image 94
Steven Jeuris Avatar answered Sep 19 '22 23:09

Steven Jeuris