Skip to content

Conversation

@rnwood
Copy link

@rnwood rnwood commented Dec 2, 2025

Whilst I was testing my new plugin I experienced an error during the NuGet package extraction. It was because of paths that were too long. (This is not XrmToolbox specific and I have resolved it).

I noticed after the error, that the partially extracted folder in the NugetPackages folder was still present, and when I attempted the install again, the logic treated it as though it was successfully extracted - copying from there to plugins but with incomplete content. This caused the plugin to appear installed, but not work due to the missing files.

This PR adds some clean up in various places in case there's any IO error like the one I found. It ensures the partial folders get removed, so if the user retries, it will try again fully and not take incomplete files.

This PR was AI-assisted, but I have reviewed, revised and tested it with the version of my plugin that caused this error and observed that it corrects the behaviour.

Copilot AI and others added 6 commits December 2, 2025 16:33
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
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.

1 participant