Skip to content

alexander2i/msbuild_projects_dependencies_visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msbuild_projects_dependencies_visualizer

This project is a simple python script which allows to visualize dependencies for a MSBuild projects and solutions.

The result of the script execution is a simple *.gv file. Which can be rendered with the graphviz utilities like dot.exe. Using command line parameter --with-render the script can automatically call specified (default: dot.exe) graphviz utility after generation *.gv file.

Examples

examples/PTVS/generated/ptvs_core_dependencies.dot.svg examples/corefx/generated/corefx_common_dependencies.dot.svg

Features

  • Building dependencies for a solution (option: --sln)
  • Building dependencies for a particular project (option: --proj).
  • Supported any MSBuild projects (*.vcxproj, *.csproj, *.vbproj, ...)

You can specify several projects or solutions at the same time to view dependencies in one image.

Requirements

How to use

  1. Use help
python3 pdv.py --help
  1. Find and print dependencies for all projects in the solution
python3 pdv.py ^
    --sln FilePathToSolution ^
    --dep-item ProjectReference ^
    --with-render ^
    --outfilename dependencies.dot
  1. Find and print 'Import' dependencies for the Project1 and Project2
python3 pdv.py ^
    --proj filepath_to_project1 ^
    --proj filepath_to_project2 ^
    --dep-item Import ^
    --with-render ^
    --outfilename p1_p2_imports.dot

See detailed examples in examples.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages