Skip to main content

IVelopackLocator interface

Namespace: Velopack.Locators

An interface describing where Velopack can find key folders and files.

public interface IVelopackLocator

Properties

PropertySummary
AppIdThe unique application Id. This is used in various app paths.
RootAppDirThe root directory of the application. On Windows, this folder contains all
PackagesDirThe directory in which nupkg files are stored for this application.
AppContentDirThe directory in which versioned application files are stored.
AppTempDirThe temporary directory for this application.
UpdateExePathThe path to the current Update.exe or similar on other operating systems.
CurrentlyInstalledVersionThe currently installed version of the application, or null if the app is not installed.
ThisExeRelativePathThe path from AppContentDir to this executable.
ChannelThe release channel this package was built for.
AppUserModelIdThe Application User Model ID for this app, used for taskbar grouping and toast notifications on Windows.
LogThe logging interface to use for Velopack diagnostic messages.
IsPortableA flag indicating if this is a portable build, and that the settings should be self-contained in the package.
ProcessProvides an abstraction for dealing with the dotnet Process API. This is used to start processes and

AppId

string? AppId { get; }

The unique application Id. This is used in various app paths.

RootAppDir

string? RootAppDir { get; }

The root directory of the application. On Windows, this folder contains all the application files, but that may not be the case on other operating systems.

PackagesDir

string? PackagesDir { get; }

The directory in which nupkg files are stored for this application.

AppContentDir

string? AppContentDir { get; }

The directory in which versioned application files are stored.

AppTempDir

string? AppTempDir { get; }

The temporary directory for this application.

UpdateExePath

string? UpdateExePath { get; }

The path to the current Update.exe or similar on other operating systems.

CurrentlyInstalledVersion

SemanticVersion? CurrentlyInstalledVersion { get; }

The currently installed version of the application, or null if the app is not installed.

ThisExeRelativePath

string? ThisExeRelativePath { get; }

The path from AppContentDir to this executable.

Channel

string? Channel { get; }

The release channel this package was built for.

AppUserModelId

string? AppUserModelId { get; }

The Application User Model ID for this app, used for taskbar grouping and toast notifications on Windows.

Log

IVelopackLogger Log { get; }

The logging interface to use for Velopack diagnostic messages.

IsPortable

bool IsPortable { get; }

A flag indicating if this is a portable build, and that the settings should be self-contained in the package. On Windows, this is true for portable builds, and false for non-portable builds which were installed by Setup.exe On OSX and Linux, this is always false, because settings and application files should be stored in the user's home directory.

Process

IProcessImpl Process { get; }

Provides an abstraction for dealing with the dotnet Process API. This is used to start processes and get information about the current process.

Methods

MethodSummary
AddLoggerAdd a logger to the list of loggers. This will be used to log messages from Velopack.
GetLocalPackagesFinds .nupkg files in the PackagesDir and returns a list of ReleaseEntryName objects.
GetLatestLocalFullPackageFinds latest .nupkg file in the PackagesDir or null if not found.
GetOrCreateStagedUserIdUnique identifier for this user which is used to calculate whether this user is eligible for

AddLogger(logger)

void AddLogger(IVelopackLogger logger)

Add a logger to the list of loggers. This will be used to log messages from Velopack.

Parameters

NameTypeDescription
loggerIVelopackLogger

GetLocalPackages()

List<VelopackAsset> GetLocalPackages()

Finds .nupkg files in the PackagesDir and returns a list of ReleaseEntryName objects.

Returns List<VelopackAsset>

GetLatestLocalFullPackage()

VelopackAsset? GetLatestLocalFullPackage()

Finds latest .nupkg file in the PackagesDir or null if not found.

Returns VelopackAsset

GetOrCreateStagedUserId()

Guid? GetOrCreateStagedUserId()

Unique identifier for this user which is used to calculate whether this user is eligible for staged roll outs.

Returns Guid?


Generated from Velopack 1.1.1