Asteroid.CodeBuilder 1.0.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package Asteroid.CodeBuilder --version 1.0.7
                    
NuGet\Install-Package Asteroid.CodeBuilder -Version 1.0.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Asteroid.CodeBuilder" Version="1.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Asteroid.CodeBuilder" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="Asteroid.CodeBuilder" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Asteroid.CodeBuilder --version 1.0.7
                    
#r "nuget: Asteroid.CodeBuilder, 1.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Asteroid.CodeBuilder@1.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Asteroid.CodeBuilder&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=Asteroid.CodeBuilder&version=1.0.7
                    
Install as a Cake Tool

Asteroid.CodeBuilder

Asteroid.CodeBuilder 通过结构化 fluent 节点 API 构建 C# 源码,面向 Roslyn 生成器和可选 编辑器工具。

包以 netstandard2.0 兼容编译器宿主,以 net10.0 支持当前外部工具和编辑器 addon。 它不依赖 Asteroid 运行时模块或 Godot。

游戏运行时项目不直接引用此包。分析器和生成器包可以将 netstandard2.0 程序集作为编译器 宿主依赖携带。

表达式字符串始终显式构造:标识符使用 Exp.Id,字符串字面量使用 Exp.String,只有 有意插入原始源码时才使用 Exp.Raw。string 永不隐式转换为 ExpNode。

  • 字面量转义归发射器:字符串/字符字面量的内容转义由 CodeBuilder 负责(普通模式转义反斜杠/引号/控制字符;逐字模式双引号翻倍;原始字符串自动垫高定界符过引号连击)——含 \ | ; " 换行 等毒字符的内容直接传 Exp.String 即可,无需调用方预处理。插值串的花括号视为有意插值孔,不转义。
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.0 47 11/18/2026
2.0.0 112 10/26/2026
1.9.0 117 10/17/2026
1.8.0 124 10/13/2026
1.7.0 112 10/6/2026
1.6.0 119 9/27/2026
1.5.0 113 9/25/2026
1.4.0 107 9/25/2026
1.3.0 111 9/25/2026
1.2.1 127 9/12/2026
1.2.0 131 9/10/2026
1.1.0 134 9/8/2026
1.0.7 136 9/8/2026
1.0.6 123 8/30/2026
1.0.5 138 8/21/2026
1.0.4 131 8/13/2026
1.0.3 127 8/13/2026
1.0.2 145 5/16/2026
1.0.1 152 5/15/2026
1.0.0 136 5/15/2026