-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert-from-nuget should simplify framework restrictions if possible #1159
Conversation
f2e5e72
to
e4d38c1
Compare
@@ -296,7 +296,9 @@ let createDependenciesFileR (rootDirectory : DirectoryInfo) nugetEnv mode = | |||
|
|||
Paket.DependenciesFile(DependenciesFileParser.parseDependenciesFile dependenciesFileName newLines)) | |||
|
|||
if File.Exists dependenciesFileName then read() else create() | |||
match (if File.Exists dependenciesFileName then read() else create()) with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use Trial.lift
(map) ?
LGTM, wondering if |
What would you call it?
|
don't mean name itself, but rather the logic - maybe replace ifs with pattern matching where possible - but as I said it's just cosmetics, not crucial |
👍 |
we now allow to simplify common framework restrictions. see https://github.com/fsprojects/Paket/blob/master/tests/Paket.Tests/Simplifier/BasicScenarioSpecs.fs#L342 |
neat! |
implements #1107
/cc @theimowski could you please take a short look? Thx