Neo.Compiler.CSharp
3.10.0
Prefix Reserved
dotnet tool install --global Neo.Compiler.CSharp --version 3.10.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Neo.Compiler.CSharp --version 3.10.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Neo.Compiler.CSharp&version=3.10.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Neo.Compiler.CSharp --version 3.10.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- 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
As a .NET Tool (Recommended)
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.9.1" />
</ItemGroup>
</Project>
Documentation
For detailed documentation, visit: https://github.com/neo-project/neo-devpack-dotnet
License
MIT - See LICENSE for details.
| Product | Versions 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.0 | 52 | 6/12/2026 |
| 3.9.1 | 1,080 | 1/28/2026 |
| 3.8.1 | 846 | 5/12/2025 |
| 3.7.4.1 | 368 | 11/6/2024 |
| 3.7.4 | 556 | 5/20/2024 |
| 3.6.2 | 488 | 11/22/2023 |
| 3.6.0 | 476 | 9/13/2023 |
| 3.5.0 | 1,106 | 12/8/2022 |
| 3.4.0 | 1,050 | 8/5/2022 |
| 3.3.0 | 1,090 | 6/6/2022 |
| 3.1.0 | 807 | 11/14/2021 |
| 3.0.3 | 601 | 10/8/2021 |
| 3.0.2 | 616 | 8/6/2021 |
| 3.0.0 | 980 | 8/1/2021 |