-
Notifications
You must be signed in to change notification settings - Fork 369
Added a hotfix which deletes temporary folders created by NuGet #1093
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
Added a hotfix which deletes temporary folders created by NuGet #1093
Conversation
|
Thanks! |
|
Ah - just saw the build fail because of a bug I introduced. Going to fix now. Please stay with me ;) |
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.
Whilst acknowledging that this is always going to be a hack, my first question is whether this is the right place to put it.
This method retreives a list of the DLLs contained within the package which are compatible with the specified framework. Is this the right place to add the side effect of removing the folders from the temp folder? If the preceding (existing) lines in the method have the side effect of creating them, then it is the right place. If not, I think it may be worth searching for a better place to put this.
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.
Yes, they do. Line 61 (var dlls = _package.GetLibFiles().Where(i => i.EffectivePath.EndsWith(Dll) || i.EffectivePath.EndsWith(Exe));) creates the temporary files. After this method, you have no access to the underlying SourcePath property. Therefore it has to be there (unfortunately).
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.
Wow, that is ugly! 😲
In that case I agree, this is the right place to put this hack.
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.
lol nuget
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.
Indeed - this seems it. No where else the information of created temporary folders is available. Also the NuGet method does not have any other overloads for NOT creating this ...
Added a hotfix which deletes temporary folders created by NuGet
|
Thanks @ChrSteinert! We're revving up to do a release (FINALLY) |
|
Awesome. Really looking forward to it! |
This fixes #1053 temporarily until NuGet fixes this.
Because the files are not used in any manner (at least I have not found any) they can safely be removed.