Template pack for NuGets, check the templates folder for individual templates
Template Name Short Name Language Tags
------------------------------------------------------------- ------------------- -------- -----------------------------------------------------
Nethereum Blazor Metamask Wasm-Server Projects nethereum-mm-blazor [C#] Nethereum/Blazor/Metamask
Nethereum Blazor SIWE Wasm/Server/RestApi Projects nethereum-siwe [C#] Nethereum/SIWE/Blazor/Metamas/RestApi
Nethereum Default Smart contract Library / XUnit ERC20 sample smartcontract [C#] Nethereum/Smart contracts
Nethereum ERC721, ERC1155 Open Zeppelin and XUnit Projects nethereum-erc721-oz [C#] Nethereum/Smart contracts/OpenZeppelin/ERC721/ERC1155
Nethereum WebSocket Streaming Examples nethereum-ws-stream [C#] Nethereum/WebSocketStreaming
- Open a command window and install the templates:
> dotnet new -i Nethereum.Templates.Pack
- Check the templates were installed ok:
> dotnet new --list
You should see a list of templates, including the templates in the pack:
Nethereum Blazor Metamask Wasm-Server Projects nethereum-mm-blazor [C#] Nethereum/Blazor/Metamask
Nethereum Blazor SIWE Wasm/Server/RestApi Projects nethereum-siwe [C#] Nethereum/SIWE/Blazor/Metamas/RestApi
Nethereum Default Smart contract Library / XUnit ERC20 sample smartcontract [C#] Nethereum/Smart contracts
Nethereum ERC721, ERC1155 Open Zeppelin and XUnit Projects nethereum-erc721-oz [C#] Nethereum/Smart contracts/OpenZeppelin/ERC721/ERC1155
Nethereum WebSocket Streaming Examples nethereum-ws-stream [C#] Nethereum/WebSocketStreaming
- To use a template, for example the
smartcontracttemplate:
> md mysmartcontractlib
> cd mysmartcontractlib
> dotnet new smartcontract --ContractLibrary mysmartcontractlib
The template "Nethereum Default Smart contract Library / XUnit ERC20 sample" was created successfully.
- Now you can open the solution file
mycontractlib.slnand see the README.md for more information on that template.
Each template is in an individual repository (submodule) to update
git submodule update --recursive --remote --merge
##Creating a Template Nuget and install locally
First create the nuget
dotnet pack
Install the package
dotnet new --install Nethereum.Templates.Pack.2.0.0.nupkg
Uninstall the package
dotnet new --uninstall Nethereum.Templates.Pack.2.0.0.nupkg