nkolev92 / DependencyVisualizer

A tool to help you visualize the dependencies in your .NET project
MIT License
2 stars 1 forks source link

What should we do when there are multiple frameworks in a project? #1

Closed nkolev92 closed 1 year ago

nkolev92 commented 1 year ago

Say you have a multi targeted project:


<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <TargetFrameworks>net6.0;net5.0</TargetFrameworks>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="NuGet.ProjectModel" Version="5.0.0" />
    </ItemGroup>

        <ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' ">
        <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
    </ItemGroup>
</Project>

What should our tool build?

A few options I can think of:

nkolev92 commented 1 year ago

cc @heng-liu @peeku1988 Curious what you 2 think.

nkolev92 commented 1 year ago

I've added some APIs to read multiple graphs.

heng-liu commented 1 year ago

My thoughts for now:

Those are just my preliminary thoughts. When I finished generating DGML files, we can check the real examples and see which one is better. What do you think?

nkolev92 commented 1 year ago

Let's do multiple files first then and go from there :)

I think multiple graphs in the same files is the best balance between easy to do/helpful, but I very much agree with your concern about the size, so we won't know until we start generating the graphs, so let's do multiple graphs, multiple files now.