Neo.Compiler.CSharp 3.10.2

Prefix Reserved
dotnet tool install --global Neo.Compiler.CSharp --version 3.10.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Neo.Compiler.CSharp --version 3.10.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Neo.Compiler.CSharp&version=3.10.2
                    
nuke :add-package Neo.Compiler.CSharp --version 3.10.2
                    

Neo.Compiler.CSharp

The official C# compiler for Neo smart contracts. This compiler transforms C# code into NeoVM-compatible bytecode (.nef files) and generates contract manifests.

Features

  • C# to NeoVM Compilation: Compile standard C# code to NeoVM bytecode
  • Contract Diagnostics: Run the Neo contract analyzer suite before bytecode generation
  • Smart Contract Support: Full support for Neo smart contract development
  • Optimization: Multiple optimization levels for bytecode efficiency
  • Debug Information: Generate debug info for testing and debugging
  • Artifact Generation: Auto-generate contract artifacts for testing

Installation

dotnet tool install --global Neo.Compiler.CSharp

As a Package Reference

dotnet add package Neo.Compiler.CSharp

Usage

Command Line

# Compile a contract
nccs MyContract.csproj

# Compile with specific output
nccs MyContract.csproj -o ./output/

# Compile in debug mode
nccs MyContract.csproj --debug

# Generate artifacts
nccs MyContract.csproj --generate-artifacts source

# Print a static ABI and bytecode summary
nccs MyContract.csproj --print-abi

Note on --print-abi: This option prints script size, instruction count, ABI methods and events from the compiled contract.

MSBuild Integration

The compiler automatically integrates with MSBuild. Simply build your project:

dotnet build

Project Configuration

Add to your .csproj file:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <NeoContract>true</NeoContract>
  </PropertyGroup>
  
  <ItemGroup>
    <PackageReference Include="Neo.SmartContract.Framework" Version="3.10.1" />
  </ItemGroup>
</Project>

Documentation

For detailed documentation, visit: https://github.com/neo-project/neo-devpack-dotnet

License

MIT - See LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
3.10.2 98 11/18/2026
3.10.1 1,633 7/23/2026
3.10.0 651 6/12/2026
3.9.1 2,230 1/28/2026
3.8.1 1,100 5/12/2025
3.7.4.1 552 11/6/2024
3.7.4 1,204 5/20/2024
3.6.2 569 11/22/2023
3.6.0 530 9/13/2023
3.5.0 1,177 12/8/2022
3.4.0 1,106 8/5/2022
3.3.0 1,177 6/6/2022
3.1.0 906 11/14/2021
3.0.3 642 10/8/2021
3.0.2 648 8/6/2021
3.0.0 1,047 8/1/2021