Skip to content

2023

Turn .Net Project Dependencies Into Python Code With Roslyn

We want to migrate our big application with around 150 projects to .Net 6. To do that, we need to find a sequence to migrate the different projects while we keep their dependencies in place. Otherwise we will have an endless list of problems that prevents us from compiling our code.

Let's combine the power of Roslyn to analyse our Visual Studio solutions with the network algorithms of the Python library NetworkX.

Access your C# Projects Through Code With Roslyn

Roslyn allows us to access our code through code. That permits us to analyse and work with code in a way that was impossible before. In this post we look at the basic parts of working with a Visual Studio solution to figure out what parts make up our application.

The syntax of Roslyn has not changed much in the 5 years since my first experiments. However, the same is not true for the dependencies and the things that work behind the API. Here we need a new combination of Roslyn and its dependencies to explore our solutions through code.