/pyvcproj

Manipulate Visual Studio project files from Python.

Primary LanguagePythonThe UnlicenseUnlicense

pyvcproj

Build Status

Manipulate Visual Studio project and solution files from Python.

Installing

python setup.py install

Testing

python setup.py test

or

pytest

Usage

Getting project files from a solution:

import vcproj.solution

solution = vcproj.solution.parse('path/to/my/solution.sln')
for project_file in solution.project_files():
    print(project_file)

Getting source and include files from a project_file:

import vcproj.project

project = vcproj.project.parse('path/to/my/project.vcxproj')
for source_file in project.source_files():
    print(source_file)
for include_file in project.include_files():
    print(include_file)