https://github.com/nethereum/nethereum.templates.pack
Template pack for NuGets
https://github.com/nethereum/nethereum.templates.pack
Last synced: 9 days ago
JSON representation
Template pack for NuGets
- Host: GitHub
- URL: https://github.com/nethereum/nethereum.templates.pack
- Owner: Nethereum
- License: mit
- Created: 2022-06-27T16:02:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-15T07:40:28.000Z (9 months ago)
- Last Synced: 2025-10-11T16:13:05.363Z (5 months ago)
- Language: Batchfile
- Size: 27.3 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Nethereum.Templates.Pack
Template pack for NuGets, check the templates folder for individual templates
## Templates included
```
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
```
## Quick Start
1. Open a command window and install the templates:
```
> dotnet new -i Nethereum.Templates.Pack
```
2. 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
```
3. To use a template, for example the `smartcontract` template:
```
> md mysmartcontractlib
> cd mysmartcontractlib
> dotnet new smartcontract --ContractLibrary mysmartcontractlib
The template "Nethereum Default Smart contract Library / XUnit ERC20 sample" was created successfully.
```
4. Now you can open the solution file `mycontractlib.sln` and see the README.md for more information on that template.
## Submodules update
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```