Skip to content

Repository files navigation

@tsonic/target-csharp

C# target pack for Tsonic. This package owns C# target analysis, exact .NET provider relations, Roslyn-shaped planning and printing, generated .csproj artifacts, and .NET toolchain handoff.

Canonical product documentation lives in the Tsonic repository:

Use in a project

Install Node.js 22.18 or newer and the .NET 10 SDK, then create, install, and run a complete project:

npm create tsonic@latest hello-csharp -- --target csharp
cd hello-csharp
npm start

The first C# project guide contains a complete source file, project configuration, native build, and run.

Package entry points

Export Purpose
@tsonic/target-csharp Target plugin
@tsonic/target-csharp/provider Generic C# provider-authoring contract
@tsonic/target-csharp/provider/dotnet .NET provider-authoring helpers

Provider authors calling createDotnetReflectionTypeDataProvider directly must supply absolute, caller-owned storage.toolBuildRoot and storage.cacheRoot paths. Normal Tsonic projects receive project-owned cache paths from the compiler and do not configure these values.

Develop this target pack

The sibling Tsonic packages and runtime repositories must be available through the workspace dependencies.

npm install
npm run build
npm test

npm test runs the repository through Tsonic's bounded parallel test harness.

About

CSharp backend for Tsonic

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages