Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Packages.Package.UpgradeToNewPackagesAsync Method

Takes the existing package map (from a prior YetaWF instance startup) and installs or updates models for new packages and packages whose version has been updated.

Class: YetaWF.Core.Packages.Package
Namespace: YetaWF.Core.Packages
Assembly: YetaWF.Core

Syntax

public static Task UpgradeToNewPackagesAsync();

Remarks

The saved package map (from a prior YetaWF instance startup) is used during YetaWF startup to install or update models for new packages and packages whose version has been updated.

For example, if package YetaWF.Text in the package map specifies version 1.0.1, but during the next YetaWF restart, version 1.0.2 is detected, models for the YetaWF.Text package are updated and the Site Template YetaWF_Text.1.0.2.txt is executed (dots (.) are replaced by underscores (_) in package names, followed by .version.txt to determine the Site Template name).

A log file recording all upgrade activity is saved at .\Website\Data\UpgradeLogFile.txt

See Also YetaWF.Core.Packages.Package ClassYetaWF.Core Overview