You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Nethereum.Autogen.ContractApi to work when combined with NUGET_PACKAGES
Current Behavior
Nethereum: Code generating dotnet files based on abi files in project and/or Nethereum.Generator.json
...
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-/home/AzDevOps/.nuget/packages/nethereum.autogen.contractapi/4.11.0/tools/Nethereum.Generator.Console.dll does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
Possible Solution
Maybe it possible to programmatically get this path instead, something like dotnet nuget locals -l global-packages ?
The text was updated successfully, but these errors were encountered:
Vhab
changed the title
Nethereum.Autogen.ContractApi does not check NUGET_PACKAGES
Nethereum.Autogen.ContractApi breaks when using NUGET_PACKAGES
May 6, 2024
We are using the
NUGET_PACKAGES
environment variable during CI to move nuget packages to a specific location for caching and restoring cache.Please see https://learn.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-environment-variables for more information about NUGET_PACKAGES
However, the nethereum targets have hardcoded the nuget package path in: https://github.com/Nethereum/Nethereum/blob/master/generators/Nethereum.Autogen.ContractApi/nuget/Nethereum.Autogen.ContractApi.targets
Thus this breaks our build.
Expected Behavior
Expected
Nethereum.Autogen.ContractApi
to work when combined withNUGET_PACKAGES
Current Behavior
Possible Solution
Maybe it possible to programmatically get this path instead, something like
dotnet nuget locals -l global-packages
?The text was updated successfully, but these errors were encountered: