Skip to content

mwherman2000/csharp-smart-contract-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workshop for programming smart contracts with .NET, C# and Visual Studio (csharp-smart-contract-workshop)

NEO Blockchain C# Developers Center of Excellence

Workshop for programming smart contracts with .NET, C# and Visual Studio

The original idea as well as the structure, and content of this workshop was created by Chris Hager (@metachris) for the NEO Python community: Workshop for programming smart contracts with Python (python-smart-contract-workshop) (https://github.com/CityOfZion/python-smart-contract-workshop).

This C# version of the workshop, Workshop for programming smart contracts with .NET, C# and Visual Studio (csharp-smart-contract-workshop) (https://github.com/mwherman2000/csharp-smart-contract-workshop), is a parallel effort based on Chris's original workshop content (March 2018).

Purpose

  • Hands-on smart contract development workshop: .NET/C#/Visual Studio on the NEO Blockchain

Goals, Non-Goals and Assumptions

  • Target audience: Architects and Developers who are new to the NEO Blockchain platform
  • Background: Very little or no previous NEO or .NET/C#/Visual Studio Experience
  • Background: Understand basic 1st and 2nd generation blockchain technologies: hashing, blocks, mining, etc.
  • Provide you with a basic level of awareness and understanding of NEO smart contract development
  • Help create a strong NEO Blockchain Developer community – helping each other

Principles

  • Provide reliable documentation: timely, accurate, visual, and complete
  • Save as much of a person's time as possible
  • Use open source software whenever possible

Drivers

  • Need in the NEO .NET developer community to have concise and easy-to-follow documentation to enable people to get up to speed developing NEO smart contracts in as short a time as possible

Workshop Content

Preparation

  1. Join Discord NEO Developer Community on Discord by clicking on one of the following links:

  2. Download and install Microsoft Visual Studio Community Edition 2017. This version is free to download and free to use. It is an excellent IDE for C# smart contract development from here:

  3. Download and install the .NET 4.7.1 Dev Pack from here:

  4. Install the NEO Smart Contract Visual Studio 2017 Extension

  5. Build the NEO Debugger Tools

    • Download the NEO Debugger Tools source code from here:

    • Create a new folder on your hard drive – for example c:\repos

    • Copy neo-debugger-tools-master.zip into c:\repos

    • Unzip neo-debugger-tools-master.zip and build the NEO Debugger Tools following the steps using diagram below.

      Build the NEO Debugger Tools

  6. Lastly, update your Windows PATH environment variable to include the path to the NEO Compiler neon.exe by typing the following into the Windows command prompt [Reference]:

setx PATH "%PATH%;C:\repos\neo-debugger-tools-master\NEO-Compiler\bin\Debug"

NOTE Use the setx command - not the set command.

NOTE Do not use an = (equals) sign.

NOTE If you unzipped neo-debugger-tools-master.zip into a different folder or onto a different hard drive, change the setx command to use the folder you chose.

Course Content

Click here to download the PDF version of the course content.

NEO Enterprise dApp Workshop-Ankara-2018-04-02

Labs and Solutions

Other Resources

Comments and Feedback

If you have any issues or ideas for improvements, please leave your feedback on the GitHub Repository and in the #csharp channel in NEO Discord Group.

The neo-csharpcoe project is an "umbrella" project for several initiatives related to providing tools and libraries (code), frameworks, how-to documentation, and best practices for Enterprise Distributed Application development using .NET/C#, C#.NEO and the NEO Blockchain software platform.

The neo-csharpcoe is an independent, free, open source project that is 100% community-supported by people like yourself through your contributions of time, energy, passion, promotion, and donations.

To learn more about contributing to the neo-csharpcoe, click here.

Releases

No releases published

Packages

No packages published

Languages