Skip to content

Support NUGET_PACKAGES environment variable in Nethereum.Autogen.ContractApi #1067

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

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

zakhard90
Copy link
Contributor

Fix: Support NUGET_PACKAGES environment variable in code generation (Nethereum.Autogen.ContractApi)

Issue: Code generation fails during CI when NUGET_PACKAGES environment variable is used to customize NuGet package location, as the path is hardcoded to user profile locations.

Changes:

  • Modified PreBuild target to check for NUGET_PACKAGES environment variable
  • Use NUGET_PACKAGES path when set, fallback to default paths when not set
  • Updated nuget version to 4.20.2

Fixes #1026

@juanfranblanco
Copy link
Member

Thanks!

@juanfranblanco juanfranblanco merged commit f3b81c9 into Nethereum:master Feb 10, 2025
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.

Nethereum.Autogen.ContractApi breaks when using NUGET_PACKAGES
2 participants