-2

I Have a C# Windows 8.1 project on Visual Studio that I would like to convert to a Windows Desktop application.

Is there an easy way to do it ?

Thank you

Stefan Wick MSFT
  • 13,600
  • 1
  • 32
  • 51
bardalas
  • 81
  • 1
  • 1
  • 10
  • have you tried a google search on how to convert C# Windows 8.1 project to WinForms – MethodMan Dec 09 '16 at 20:14
  • All I've found is this https://msdn.microsoft.com/en-us/library/mt148501.aspx but not sure that this is what I'm looking for.. Was hoping for some microsoft tool to do that for me – bardalas Dec 09 '16 at 20:23

1 Answers1

2

There is no automatic way. The easiest way is to create two new projects, one is the desktop (WPF) app and the other is shared project. Then move all the code that you can to the shared project. You might need to use a conditional compiling (#if).

Ivan Ičin
  • 9,672
  • 5
  • 36
  • 57