Table of Contents

Interface ICodeUpgradeRunner

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Assets.dll

Runs the source-code migrations declared by package upgraders over the projects being upgraded, before their package references are bumped — so symbols still resolve against the old version.

public interface ICodeUpgradeRunner
Extension Methods

Methods

Run(UFile?, IReadOnlyList<PendingCodeUpgrade>, UpgradeBackup?, ILogger)

void Run(UFile? solutionPath, IReadOnlyList<PendingCodeUpgrade> pending, UpgradeBackup? backup, ILogger log)

Parameters

solutionPath UFile

The solution to open (already restored at the old versions), or null for a standalone project.

pending IReadOnlyList<PendingCodeUpgrade>

The projects pending source migration, with the upgrader that declared rules and the version each is upgraded from.

backup UpgradeBackup

The copy-on-write backup to snapshot each source file into before overwriting it, or null when no backup is requested.

log ILogger

The logger.