Skip to content

Simplify works with auto-detected target frameworks - #1740

Merged
forki merged 1 commit into
fsprojects:masterfrom
baronfel:simplify_works_with_detected_framework
Jun 19, 2016
Merged

forki merged 1 commit into
fsprojects:masterfrom
baronfel:simplify_works_with_detected_framework

Conversation

@baronfel

Copy link
Copy Markdown
Contributor

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.

…rictions when the framework is being auto-detected
@forki

forki commented Jun 19, 2016

Copy link
Copy Markdown
Member

thanks!

@forki
forki merged commit 41af538 into fsprojects:master Jun 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paket Simplify with Framework set to auto-detect fails with 'the framework restriction could not be determined'

2 participants