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

Could not find nuget package location. #50

Closed
Becks723 opened this issue Aug 28, 2021 · 5 comments
Closed

Could not find nuget package location. #50

Becks723 opened this issue Aug 28, 2021 · 5 comments

Comments

@Becks723
Copy link

Becks723 commented Aug 28, 2021

Failed to build my host project after adding the host package.
I tried to look into error details, then i found the command line did not find my correct nuget path.

see:

public static string GetNuGetLocation()

Some time before i moved my package location to D disk because my C disk is too full. It's now on "D:.nuget\packages". So what should i do to make command line recognize the new location?

@obiwanjacobi
Copy link
Owner

As you can see the location of the nuget packages is hard-coded.
How did you change the nuget package location?

@Becks723
Copy link
Author

Becks723 commented Sep 6, 2021

  1. first move the .nuget folder to the destination (in my case D:.nuget)
  2. next modify nuget.config (located in C:\Users\Becks723\AppData\Roaming\NuGet in my case):
    add xml node <config> <add key="globalPackagesFolder" value="D:\.nuget\Packages" /> </config>, then save. Done.

But i'm now not using the nuget package but building my custom dlls, manually referencing them.

Just suppose better ways instead of the hardcoded location, to get user-specific nuget path. However currently I don't have any idea about it.

@obiwanjacobi
Copy link
Owner

Thanks. Agree that hardcoding the path is sub-optimal. I think I will try to read the nuget config as well...
I see there is also an environment variable that Nuget supports: NUGET_PACKAGES. Perhaps I can support that too.

obiwanjacobi added a commit that referenced this issue Sep 11, 2021
@obiwanjacobi
Copy link
Owner

Will be fixed in next release.

public static string GetNuGetLocation()

@obiwanjacobi
Copy link
Owner

VST.NET2 v2.03 should fix this.

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

No branches or pull requests

2 participants