Sparkdo.Package 2.0.0-preview.2

This is a prerelease version of Sparkdo.Package.
dotnet add package Sparkdo.Package --version 2.0.0-preview.2
                    
NuGet\Install-Package Sparkdo.Package -Version 2.0.0-preview.2
                    
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="Sparkdo.Package" Version="2.0.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sparkdo.Package" Version="2.0.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Sparkdo.Package" />
                    
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 Sparkdo.Package --version 2.0.0-preview.2
                    
#r "nuget: Sparkdo.Package, 2.0.0-preview.2"
                    
#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 Sparkdo.Package@2.0.0-preview.2
                    
#: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=Sparkdo.Package&version=2.0.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Sparkdo.Package&version=2.0.0-preview.2&prerelease
                    
Install as a Cake Tool

Sparkdo.Package

职责

Sparkdo.Package 是可复用 Sparkdo 包的 authoring 元包。它设置 Package role,并带入 manifest contract、generator 与 build handoff,使当前项目的 generated fragment 随 NuGet 包交付。

不负责

本包不带入 Sparkdo.Hosting,Package role 不生成 application blueprint、runtime bootstrap 或应用 publish artifacts。

默认值

  • PackageId 未设置时使用 $(MSBuildProjectName)
  • SparkdoManifestRole 默认为 Package
  • SparkdoPackageId 未设置时使用 $(PackageId)
  • 与 Application role 冲突时写入 SparkdoManifestRoleConflict,由 Compiler 报告诊断。

这些默认值位于 build/,不会把 Package role 传递给引用该 NuGet 包的应用。

依赖与集成

项目文件 不交付自身程序集;它引用 Sparkdo.AbstractionsSparkdo.Manifest,并把 Sparkdo.Compiler 作为 analyzer、Sparkdo.Build 作为 build 资产带入。

第三方包通常将元包限制为私有 authoring 依赖:

<PackageReference Include="Sparkdo.Package" Version="..." PrivateAssets="all" />

pack 后的 fragment 位于 buildTransitive/sparkdo/fragments/<tfm>/sparkdo.manifest-fragment.v1.json,由 consumer 的 Sparkdo.Build 收集。

验证

dotnet pack src/polaris/src/Sparkdo.Package/Sparkdo.Package.csproj
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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
2.0.0-preview.2 55 7/20/2026
2.0.0-preview.1 59 7/18/2026