Book Image

Visual Studio 2015 Cookbook - Second Edition

By : Jeff Martin
Book Image

Visual Studio 2015 Cookbook - Second Edition

By: Jeff Martin

Overview of this book

Visual Studio 2015 is the premier tool for developers targeting the Microsoft platform. Learning how to effectively use this technology can enhance your productivity while simplifying your most common tasks, allowing you more time to focus on your project. Visual Studio 2015 is packed with improvements that increase productivity, and this book walks you through each one in succession to help you smooth your workflow and get more accomplished. From customization and the interface to code snippets and debugging, the Visual Studio upgrade expands your options — and this book is your fast-track guide to getting on board quickly. Visual Studio 2015 Cookbook will introduce you to all the new areas of Visual Studio and how they can quickly be put to use to improve your everyday development tasks. With this book, you will learn not only what VS2015 offers, but what it takes to put it to work for your projects.
Table of Contents (17 chapters)
Visual Studio 2015 Cookbook Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Integrating Python with .NET


We've just explored how PTVS can easily integrate Python into VS2015. Now we will look at IronPython, which integrates Python with the .NET and Mono platforms.

IronPython provides the ability to write applications that use WPF and WinForms as well as easily call the .NET code from within your Python program. Whether you want to do some rapid prototyping using IronPython as a glue language or build a full application, IronPython can be a useful addition to your developer toolbox.

Getting ready

IronPython is available for download at http://ironpython.net/, and should be installed before opening Visual Studio. This recipe assumes you have installed PTVS as described in the Integrating Python into Visual Studio recipe.

Tip

The Python 2.7 series is different than the IronPython 2.7 series. Make sure you have the correct version installed!

How to do it…

Once you have installed PTVS and IronPython, open VS2015, and perform the following steps:

  1. Create a new project using the...