Search code examples
pythonwpfvisual-studio-2010user-interfaceptvs

Problems with installing python tools for visual studio 2010


I installed iron python 2.7.3 and python tools for visual studio 1.1

but when i try to create a new python project it only offers me to create a command-line application. I wanted to create a GUI with iron Python so i was looking forward to create a WPF project. The documentation states that it should be available if I installed iron python. Did I do anything wrong? I tried reinstalling both iron python and python tools.


Solution

  • After installing it. Did you setup the interactive and interpreter settings to use your ironpython 2.7.3?

    Step "3. Getting PTVS": http://pytools.codeplex.com/wikipage?title=Installation%20-%20details&referringTitle=Home

    You should see your IronPython 2.7.3 version on the dropdown list on both screens under Tools > Options > Python Tools

    enter image description here

    enter image description here

    And, for me, it worked, all templates are available:

    enter image description here

    UPDATE: Look for the templates folder:

    C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft

    C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\IronPython Interpreter\1.5\Templates\Projects

    You should have: - ConsoleProject - SilverlightProject - WinformsProject - WpfProject

    You may have a problem with the templates, so look at this website and find out exactly how project templates work and where are all located so you can try to fix them yourself (if the problem persists).

    Visual Studio Templates

    http://msdn.microsoft.com/en-us/library/vstudio/6db0hwky(v=vs.100).aspx