Package |
public class PackageInfo
The PackageInfo type exposes the following members.
Name | Description | |
---|---|---|
PackageInfo | Initializes a new instance of the PackageInfo class |
Name | Description | |
---|---|---|
FileLength | Gets the file length of the package. | |
FileNameIdentifier | Gets the file name identifier that codes operating system, architecture, dotnet version and net framework version | |
FileNameOfPackageMsiFile | Gets the name of the package .msi file. If the property dictionary contain a property named 'FileName', then the value of this property is returned. Otherwise, the old behavior 'AltaxoBinaries-' and version is used. | |
FileNameOfPackageZipFile | ||
FileNameOfPackageZipFileOverride | The value is set after reading in a package from Json. It designates the file name of the package file. This value overrides the automatically created name of the package file in FileNameOfPackageZipFile. | |
FileNameOfPackageZipFileWithoutExtension | Gets the file name of the package file evaluated from the package properties, without extension (i.e. without .zip). | |
FileNameWithoutPretextAndWithoutExtension | Gets the file name of the package file evaluated from the package properties, without pretext (i.e. without 'AltaxoBinaries') and without extension (i.e. without .zip). | |
Hash | Gets the hash sum of the package file. | |
HashName | Gets the name of the hash algorithm. | |
IsOldStyleFile | If true, this package is an old style package. Old style packages are packages before 2024-11, which where read-in using a text file. Additionally, the hash of those packages was SHA1, and the name was in the style 'AltaxoBinaries-version.zip. | |
IsUnstableVersion | Gets a value indicating whether this package is the unstable or the stable build of the program. | |
RequiredArchitectures | If not empty, the array indicates the required architectures for which this package is suitable, e.g. X64, X86, ARM etc. | |
RequiredDotNetVersion | If not null, this value indicates that the dotnet version with at least the provided version number is required for this package. | |
RequiredNetFrameworkVersion | If not null, this value indicates that the net framework with at least the provided version number is required for this package. | |
RequiredOperatingSystems | If not empty, the array entries indicate the required operating system for which the package is suitable. Each entry consist of the operating system (e.g., WINDOWS) and the minimal suitable version number of the operating system. | |
UnstableOrStableName | Returns either 'Unstable' or 'Stable' | |
Version | Gets the version of the package. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetDownloadDirectory | Gets the directory where to store the downloaded update package. | |
GetHashAsString | Gets the hash as hexadecimal string. | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetLastUpdateCheckTimeUtc | Gets the last time a check for new updates was made | |
GetStableIdentifier | Gets the stable identifier (either 'Unstable' or 'Stable'). | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
IsValidStableIdentifier | Determines whether the provided string designates either the stable or the unstable build. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
ReadPackageFromCommandLine | Reads a package from command line arguments. | |
ReadPackageFromJson(JsonNode) | Reads a single package from a Json package node. | |
ReadPackageFromJson(Stream) | Reads a single package from a Json file. The outer node of the file has to be a package node. | |
ReadPackageFromText | Create a package info from a single line. | |
ReadPackagesFromJson | Reads multiple packages from a Json file. The outer node of the Json file has to be an array of package nodes. | |
ReadPackagesFromText_Before2024_11 | Gets the package infos from the lines of the provided stream. | |
ToString | Returns a string that represents the current object. (Inherited from Object) | |
VerifyLengthAndHashOfPackageZipFileInFolder | Verifies the length and hash of package zip file. If length or hash differ, an exception is thrown. | |
WritePackageToJson(Stream) | Saves the package to a stream. Intended for MakePackage, in which every package info is saved into a single file. | |
WritePackageToJson(Utf8JsonWriter) | Saves the package using a Json writer. This call can be used to save more than one package into a file. | |
WritePackageToText | Writes the (old style) package to one line of text. |
Name | Description | |
---|---|---|
PropertyKeyArchitecture | The property for the required architecture (x86, X64, Arm, Arm64 etc.) | |
PropertyKeyDotNetVersion | Property key for the required dotnet runtime version | |
PropertyKeyFileName | The property for the operating system. The value consist of a name (Windows, OSX, Linux) and a version number, separated by an underscore. | |
PropertyKeyIsOldStyleFile | The property key that indicates if this package has the old style naming. | |
PropertyKeyNetFrameworkVersion | The property key: .NET framework version | |
PropertyKeyOperatingSystem | The property for the operating system. The value consist of a name (Windows, OSX, Linux) and a version number, separated by an underscore. | |
StableIdentifier | Identifier for the stable version. | |
StartTextOfPackageMsiFileName | The start of the file name of the Msi installation file (the .msi file) | |
StartTextOfPackageZipFileName | The start of the file name of the binary package file (the .zip file) | |
UnstableIdentifier | Identifier for the unstable version. | |
VersionFileName | Name (without path) of the version file, both at the remote location and on the local hard disk. | |
VersionFileName_Before2024_11 | Name (without path) of the version file, both at the remote location and on the local hard disk. |