chocolatey / ChocolateyGUI

A delicious GUI for Chocolatey
https://docs.chocolatey.org/en-us/chocolatey-gui/
Apache License 2.0
1.61k stars 249 forks source link

(#980) When using debug install, use assembly directory for install location #981

Closed TheCakeIsNaOH closed 1 year ago

TheCakeIsNaOH commented 1 year ago

Description Of Changes

This sets the Chocolatey install directory to the current assembly directory when built as a debug build.

If a debug build is in use, then Chocolatey GUI is using the chocolatey lib assembly, so true can be returned in all cases.

Motivation and Context

This allows correctly getting the location of remembered arguments from the debug installed package(s) instead of from the system-wide install of Chocolatey.

Testing

  1. Build a debug version of Chocolatey GUI
  2. F5 run from Visual Studio
  3. Advanced install curl with package parameter(s)
  4. View the remembered arguments.
  5. Validate that they are coming from the local/debug install of curl, rather than from the system wide install.

Operating Systems Testing

Change Types Made

Change Checklist

Related Issue

Fixes #980

gep13 commented 1 year ago

@TheCakeIsNaOH thanks for getting this fixed up, this is something I have kept meaning to do for a while!