Difference between revisions of "Setting up Visual Studio"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Updated for VS2012)
m (Removed so-called Sources which they clearly aren't)
Line 1: Line 1:
 
Microsoft Visual Studio is a program (more specifically IDE, for Integrated Development Environment) for that makes it easier to code applications for Windows. For KSP, it is used for developing part modules via the C# IDE, although any app that can compile C# is sufficient.
 
Microsoft Visual Studio is a program (more specifically IDE, for Integrated Development Environment) for that makes it easier to code applications for Windows. For KSP, it is used for developing part modules via the C# IDE, although any app that can compile C# is sufficient.
 
'''Source(s):'''  [http://www.downloadranking.com  Visual Studio]
 
  
 
== Prerequisites ==
 
== Prerequisites ==
Line 12: Line 10:
 
** You can also use Visual Studio 2012 (2010 for XP), which is functionally similar.
 
** You can also use Visual Studio 2012 (2010 for XP), which is functionally similar.
 
* Kerbal Space Program 0.14 X1 or above.
 
* Kerbal Space Program 0.14 X1 or above.
 
'''Source(s):'''  [http://www.downloadranking.com  Visual Studio]
 
  
 
== Setting Up ==
 
== Setting Up ==

Revision as of 17:33, 10 December 2012

Microsoft Visual Studio is a program (more specifically IDE, for Integrated Development Environment) for that makes it easier to code applications for Windows. For KSP, it is used for developing part modules via the C# IDE, although any app that can compile C# is sufficient.

Prerequisites

In order to complete this tutorial you must have the following. Plugins may be written in other environments.

Setting Up

  1. Close any solutions you currently have open by choosing File > Close Solution.
  2. Start a new solution either by selecting New Project from the Home screen, or by using File > New... > Project...
  3. Create a new Class Library project for C#. Name it whatever you like. (We're using MyKSPProject for this tutorial, so replace MyKSPProject with whatever you're using.)
    Setting up the class library project
  4. In your Solution Explorer (the pane on the top right of the screen), right-click on MyKSPProject and choose Add Reference.
    Adding references
  5. Switch to the Browse tab.
  6. Find and add the following DLLs as references:
    • KSP_INSTALL_FOLDER\KSP_Data\Managed\Assembly-CSharp.dll
    • KSP_INSTALL_FOLDER\KSP_Data\Managed\UnityEngine.dll


Great, you're all set! Now continue to creating your first module!