How to use IronPython with Visual Studio 2008

前端 未结 6 1614
囚心锁ツ
囚心锁ツ 2021-01-31 06:15

I\'ve tried using the IronPython integration extension provided by Microsoft. But it does not work with Visual Studio 2008.

Is there a proper VS 2008 IDE extension for

6条回答
  •  悲哀的现实
    2021-01-31 06:50

    I'm new to both VS2008 and IronPython (but not Python itself): but it sure looks to me like i'm running IronPython 2.0.1 under VS 2008 Pro, albeit in a rather cumbersome fashion.

    1. Follow the instructions at http://blogs.msdn.com/aaronmar/archive/2006/02/16/533273.aspx, with some modifications: search the MS website for the VS 2008 SDK instead, and the path to the IronPythonIntegration solution is therefore in a slightly different (but predicatable) place.
    2. Following on -- "Then, it should simply be a matter of hitting CTRL+F5 for Build & Run. This will launch Visual Studio using the "Experimental hive".". Yes, this launches another VS instance on top of the first one, but thankfully you only have to wait through the build process the first time.

    The rest of the instructions worked for me: i built a simple test console app, and it worked as i expected. I haven't tried any .Net stuff yet, though.

    Now if there were just an easy way to change sys.path to use the normal Python libraries ...

提交回复
热议问题