Skip to content

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

Merged
juanfranblanco merged 1 commit intoNethereum:masterfrom
zakhard90:master
Feb 10, 2025
Merged

Support NUGET_PACKAGES environment variable in Nethereum.Autogen.ContractApi#1067
juanfranblanco merged 1 commit intoNethereum:masterfrom
zakhard90:master

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