Python code generator for Visual Studio?

I had an idea if I add a python.py file to my C # project and mark the file using a special generator that would execute the python file and process the result as a result of code generation, i.e. put it in a C # file, which will allow me to do quite a bit of code generation as part of the build process.

Does anyone know if such a custom generator exists for Visual Studio 2008?

+3
source share
5 answers

OK, I see. Well, as far as I know, there is no code generator for Python. There is a good idea on how to collapse yours here .

, , , , IDE , , , IDE "", MSBuild .

+1

, Cog , .

+3

, VS . , , .

, 2008 .

+2

, . Python script, #, ? Python script #?

+1

I dug through my old bookmarks (I love Del.icio.us!) And found this article: Generating Code Using Python, Cog, and Nant . Keep in mind that everything you can do in NAnt can also be done in MSBuild. That should be enough to get you started.

+1
source

Source: https://habr.com/ru/post/1696511/


All Articles