Skip to content
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

WiX v4 not honoring NUGET_PACKAGES environment variable #7740

Open
dbengle opened this issue Sep 20, 2023 · 0 comments
Open

WiX v4 not honoring NUGET_PACKAGES environment variable #7740

dbengle opened this issue Sep 20, 2023 · 0 comments
Labels
extensions up for grabs No one volunteered to fix the issue. If you are interested, comment with "I want to fix this issue"

Comments

@dbengle
Copy link

dbengle commented Sep 20, 2023

Bugs

If this issue is a bug:

  • Which version of WiX are you building with?

WiX 4.0.2

  • Which version of Visual Studio are you building with (if any)?

Visual Studio 2022 17.7.4

  • Which version of the WiX Toolset Visual Studio Extension are you building with (if any)?

Heat for VS2022

  • Which version of .NET are you building with?

4.8

  • If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?

n/a

  • Describe the problem and the steps to reproduce it.

If you have NuGet configured to use an alternate folder for the global packages cache, via the NUGET_PACKAGES environment variable and the NuGet.config file, Wix will not find the Wix NuGet extension packages.

For example, I have set the environment variable as: NUGET_PACKAGES=C:\Packages

My NuGet.config file:

  • Describe the behavior you expected and how it differed from the actual behavior.

WiX should honor the NUGET_PACKAGES folder and look there.

The GetCacheLocations() function in ExtensionManager.cs should be updated to include the NUGET_PACKAGES environment variable folder in the list of location to look for NuGet extension packages.

@dbengle dbengle added the triage label Sep 20, 2023
@barnson barnson added extensions up for grabs No one volunteered to fix the issue. If you are interested, comment with "I want to fix this issue" and removed triage labels Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensions up for grabs No one volunteered to fix the issue. If you are interested, comment with "I want to fix this issue"
Projects
None yet
Development

No branches or pull requests

2 participants