Interface ICodeUpgradeRunner
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
solutionPathUFileThe solution to open (already restored at the old versions), or
nullfor a standalone project.pendingIReadOnlyList<PendingCodeUpgrade>The projects pending source migration, with the upgrader that declared rules and the version each is upgraded from.
backupUpgradeBackupThe copy-on-write backup to snapshot each source file into before overwriting it, or
nullwhen no backup is requested.logILoggerThe logger.