1

Can I export a project done in Unity to Microsoft Visual Studio?

I tried selecting my project from menu Preferences->External Script Editor->Microsoft Visual Studio, but when I run the application, I get this error:

A project with an Output type of Class Library cannot be started directly

Have I done something wrong? If so, what?

Steven
  • 166,672
  • 24
  • 332
  • 435
  • That's because you can't run a class library, there's no executable for it. You don't directly run DLL's. – mason Jul 18 '14 at 18:21
  • And I can use classes and my code in a WPF project? – Diacoenscu Cristian Jul 18 '14 at 18:23
  • I can't answer that, as I'm unfamiliar with Unity development in VS. However, C# is C#. Even if your Unity Class Library isn't portable, you should be able to reuse code through linking project files. You may want to add a tag to your question so that people familiar with Unity are more likely to see it. – mason Jul 18 '14 at 18:28

1 Answers1

-1

Microsoft have now acquired UnityVS company SyntaxTree, and are offering the UnityVS plugin for free for Visual Studio 2010-2013 Professional or higher. This should allow you to run Unity projects from within Visual Studio.

You can download it here, or get it from the Visual Studio Extensions Gallery.

Nick Udell
  • 2,420
  • 5
  • 44
  • 83