-
Notifications
You must be signed in to change notification settings - Fork 585
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
Badly behaved packages may break nuget helper #572
Comments
I will implement this.
|
Just confirming that all works as expected after the fix. Thanks 😄 |
Very cool and thanks for reporting.
|
ref: fsprojects/ProjectScaffold#111
Apparently some packages (cough MySql.Data, 5.1.7.0 cough) for some reason have a nuget.exe in them, and it is not exactly the latest version.
By default, the Fake nuget helper searches subdirectories(?) to find the first nuget.exe there is and uses that. Problems occurs when it is a really old version that crashes for unknown reasons due to complicated new fields like release notes.
One solution would be to have a list of "common places that the real nuget.exe might be expected to be found", IE:
.nuget/Nuget.exe
(standard nuget package restore location)packages/Nuget.Commandline/tools/Nuget.exe
(where it is found when using paket to get the tools)and then add some priority to the paths according to which one is more likely to be updated.
The text was updated successfully, but these errors were encountered: