Table of Contents

Class S1InteropPackageInfo

Namespace
S1Interop.Core.Packaging
Assembly
S1Interop.Core.dll

Provides package IDs, versions, and MSBuild property names shared by S1Interop tooling.

public static class S1InteropPackageInfo
Inheritance
object
S1InteropPackageInfo

Fields

AlphaPackageVersion

Gets the current alpha version used by the CLI and generator packages.

public const string AlphaPackageVersion = "0.1.0-alpha.1"

Field Value

string

AnalyzerIncludeAssets

Gets the IncludeAssets value used to consume the generator package as an analyzer dependency.

public const string AnalyzerIncludeAssets = "runtime; build; native; contentfiles; analyzers; buildtransitive"

Field Value

string

CliPackageId

Gets the NuGet package ID for the S1Interop CLI tool package.

public const string CliPackageId = "S1Interop"

Field Value

string

CliPackageVersion

Gets the CLI tool package version.

public const string CliPackageVersion = "0.1.0-alpha.1"

Field Value

string

GeneratorsPackageId

Gets the NuGet package ID for the Roslyn generator package.

public const string GeneratorsPackageId = "S1Interop.Generators"

Field Value

string

GeneratorsPackageSourceProperty

Gets the MSBuild property name that can point to a local generator package feed.

public const string GeneratorsPackageSourceProperty = "S1InteropGeneratorPackageSource"

Field Value

string

GeneratorsPackageVersion

Gets the Roslyn generator package version.

public const string GeneratorsPackageVersion = "0.1.0-alpha.1"

Field Value

string

PrivateAssets

Gets the PrivateAssets value used when adding the generator package to mod projects.

public const string PrivateAssets = "all"

Field Value

string

RestoreAdditionalProjectSourcesProperty

Gets the MSBuild property name used to append local restore sources for generated projects.

public const string RestoreAdditionalProjectSourcesProperty = "RestoreAdditionalProjectSources"

Field Value

string

Methods

CreateLocalGeneratorsPackageVersion(DateTimeOffset)

Creates a unique local generator package version for sandbox or unpublished-package validation.

public static string CreateLocalGeneratorsPackageVersion(DateTimeOffset timestamp)

Parameters

timestamp DateTimeOffset

The timestamp to embed in the local version suffix.

Returns

string

A package version based on GeneratorsPackageVersion with a local timestamp suffix.