ConvertProjDepToProjRef is a tool to convert project dependencies in a Visual Studio solution file (.sln)
into MSBuild project references (ProjectReference) in project files. It will do 95% of the work.
Project dependencies in an .sln file are an older method to define build
dependencies and are slower because MSBuild must first create meta projects
files.
- .NET 8.0 App.
- git clone
- dotnet build
- Run the tool on a solution file: ConvertProjDepToProjRef.exe MySolution.sln
- Update C++ projects that only perform custom builds as ConfigurationType “Utility”
- Remove the RuntimeIdentifier element for C# projects that only perform custom builds
- Use a text editor to remove the ProjectSection(ProjectDependencies) = postProject sections from the .sln file.