diff --git a/edk2toolext/environment/extdeptypes/nuget_dependency.py b/edk2toolext/environment/extdeptypes/nuget_dependency.py index 092d4bae..ba312901 100644 --- a/edk2toolext/environment/extdeptypes/nuget_dependency.py +++ b/edk2toolext/environment/extdeptypes/nuget_dependency.py @@ -169,7 +169,7 @@ def _fetch_from_nuget_cache(self, package_name: str) -> bool: # Seek to the beginning of the output buffer and capture the output. return_buffer.seek(0) return_string = return_buffer.read() - self.nuget_cache_path = return_string.strip().strip("global-packages: ") + self.nuget_cache_path = return_string.strip().replace("global-packages: ", "") if self.nuget_cache_path is None: logging.info("Nuget was unable to provide global packages cache location.")