Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Simplify works with auto-detected target frameworks #1740
This PR fixes #1737 by changing the logic of DependenciesFile.SimplifyFrameworkRestrictions so that it no longer called a helper method that threw and exception when the framework is auto-detected. Instead, we use the ProjectFile type and members of the ProjectFile module to get the list of distinct targetframeworkversions, similar to what is already done in other pathways.
To make it work I had to split up DependenciesFile into several smaller files, so that the ordering was such that the actual implementation of DependenciesFile came after ProjectFile.
I included a passing integration test to show the new functionality works.