- #Iron python in visual studio how to#
- #Iron python in visual studio code#
- #Iron python in visual studio series#
Locate the existing file you want to use and click Open.You’ll see the Add Exiting Item dialog box shown in Figure 2-5. Right-click the solution entry in Solution Explorer (not the IPY project entry) and choose Add ➪ Exiting Item from the context menu.
#Iron python in visual studio how to#
The following steps tell how to add a file to your project.
Yes, you could run the project and you’d see what you’d expect, but you can’t debug the IronPython file or edit it. Visual Studio will save the project to the folder you selected.Īt this point, you have a project without any files in it. Type a name for the solution in the Object Name field.Locate the folder you want to use to save the project in the Save In field.You’ll see the Save File As dialog box shown in Figure 2-4. Click the ellipses to locate the directory on your hard drive using the Browse for Folder dialog box.
#Iron python in visual studio code#
Change the Working Directory to match your source code directory. Visual Studio will default to using the Program FilesIronPython 2.6 directory - a directory that you’re unlikely to use to hold your source code files. Include any other command line switches you want to use in the Arguments field. You can find other command line arguments listed in the “Understanding the IPY.EXE Command Line Syntax” section. Remember that the -D command line switch turns on debugging. For example, the example project uses MyFirst.py, so you’d type -D MyFirst.py. Type -D NameOfProject, where NameOfProject is a Python (.py) file. (Your display may differ slightly from the one shown in Figure 2-3 based on your machine configuration and the Visual Studio 2010 edition you use.) At a minimum, you must change the Arguments and Working Directory fields to match your project. You’ll see the General tab of the Properties page shown in Figure 2-3. Right-click IPY in Solution Explorer and choose Properties from the context menu.Visual Studio creates a solution based on IPY.EXE, as shown in Figure 2-2. Locate and highlight IPY.EXE (normally found in the Program FilesIronPython 2.6 folder).You’ll see the Open Project dialog box shown in Figure 2-1. Choose File ➪ Open ➪ Project/Solution.Open Visual Studio, but don’t open any project or template files.The following steps show you how to perform this task. The following sections take you through a simple configuration scenario and then show the resulting project in action.īefore you do anything else, you must create a project to hold your IronPython application. Fortunately, you can still create a project for IronPython projects and use Visual Studio to edit and debug it. The current version of the product doesn’t include anything you can use directly.
Unfortunately, you won’t find any new templates for IronPython.
#Iron python in visual studio series#
You might have looked at the New Project dialog box after you installed IronPython, assuming that you’d find a series of new project templates.