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.
- Use Visual Studio 2010 to set up a Surface project.
- Safe and close Visual Studio 2010.
- Open the solution using Visual Studio 2012.
- Change the target framework under project settings to .NET 4.5.
- Save as a new solution file.
- 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.