-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Made packages.config path configurable from NuGet preferences #551
Conversation
…the user manually entered an invalid path in NuGet.config file
relativeTo = Path.GetFullPath(relativeTo); | ||
path = Path.GetFullPath(path); |
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.
This function should probably only accept full paths and not call GetFullPath on them. If someone passed relative paths to it this would not work correctly if called from CLI version since CurrentDirectory and project path set through the argument could be different. We could throw or return path if Path.IsPathRooted returned false for any of them.
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.
The CLI can use Directory.SetCurrentDirectory(projectPath);
to get the same behavior.
@popara96 i will fix the CLI soon. |
…nfig file's directory by default
…fig file path is outside of Assets instead of logging
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.
Sorry for that much changes. Together we are getting a nice solution. 👍
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.
Now we can merge 👍
Thank you for the thorough review @JoC0de ! |
Thank you for the improvement @popara96 |
Minor changes in order to make
packages.config
path configurable. We don't allow for the path to be outside ofAssets
folder since we still needOnPostprocessAllAssets
to be triggered if this file is changed.