Can Surface SDK work on Visual Studio 2012?

I need to create a WPF application using the Surface SDK. I am using Visual Studio 2012, and according to this SO post, VS2012 does not allow this. However, since this was published before it was officially released, I want to make sure that I did not miss something.

I just need some touch / swipe controls that come with it. Is there any other option for VS2012? Another developer uses 2010, so he should be able to continue to work on his machine. This is a very simple application that I just need to develop, so I'm looking for the fastest and easiest way. We and the final application must run on Windows 7.

+7
source share
2 answers

I found an easy solution with which it works. He expects you to have Visual Studio 2010 installed. Following the following steps, I was able to compile in Visual Studio 2012 using .NET 4.5. TouchDown events work. I tried this on some small projects and they seem to work fine.

  • Use Visual Studio 2010 to customize your Surface project.
  • Safe and closed Visual Studio 2010.
  • Open the solution using Visual Studio 2012.
  • Change the target structure within the project settings to .NET 4.5.
  • Save as a new solution file.
  • Compile ... everything works!

This method prevents you from configuring all configuration files / links yourself. The only drawback is that you do not have Surface tools integrated into the IDE. For example. toolkit, project templates ... This, of course, does not stop you from writing simple XAML yourself.

If for some reason this does not work out eventually, I will update this message.

+4
source

The easiest way, unfortunately, is for you to run VS2010.

The SDK is currently not supported in VS2012, for several reasons. It is noteworthy that this way of working in Win8 is much better than in previous versions of Windows. Unfortunately, this meant rewriting the sensor layer that uses the Surface SDK. New controls are being written for dynamic adaptation based on mouse / touch input, which makes the Surface SDK a bit redundant.

Microsoft may make the SDK for VS2012 in the future, but this is kind of debatable.

If you are still dead setting it, download an application called Orca (http://msdn.microsoft.com/en-us/library/windows/desktop/aa370557(v=vs .85). Aspx) and edit the installer file SDK by removing the dependency on VS2010.

This is how I got the Surface 1 SDK to work with VS2010, as it was intended for VS2008 (note that it has not yet been updated to work with VS2010)

Let me know how you go.

+3
source

All Articles