With this package you are able to build chaincode (aka "Smart Contracts") for Hyperledger Fabric using .NET Core.
The following instructions are meant for developers of the Chaincode.NET package.
The fabric-ccenv-netcore
folder contains an adoption of the original fabric-ccenv which additionally installs .NET Core to run the chaincode within a Docker environment.
The src
folder contains the code for the NuGet package.
In order to build the source folder, please follow the steps:
- Open a terminal within the
Chaincode.NET
folder and rundotnet restore
to restore all the packages - Make sure, you have Golang and the proto files for Hyperledger Fabric installed:
go get github.com/hyperledger/fabric/protos
- Run
generate_protos.sh
within thesrc
folder. It will generate the C# classes for Hyperledger Fabric's Protofiles. - Open the Project with JetBrains Rider (preferred) or Visual Studio
- Build Chaincode.NET
TODO