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:
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 startThe first C# project guide contains a complete source file, project configuration, native build, and run.
| 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.
The sibling Tsonic packages and runtime repositories must be available through the workspace dependencies.
npm install
npm run build
npm testnpm test runs the repository through Tsonic's bounded parallel test harness.