Fixing obsolete messages to reference the new class name

Fixed minor typos in comments.
A couple updates to collection expressions.
This commit is contained in:
Kevin Bost
2025-01-15 09:17:24 -08:00
committed by Caelan
parent 98d30aa7e7
commit 68d4a86960
4 changed files with 10 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ namespace Velopack
/// <summary> /// <summary>
/// Describes the requested release notes text format. /// Describes the requested release notes text format.
/// </summary> /// </summary>
[Obsolete("This release format has been replaced by VelopackRelease")] [Obsolete("This release format has been replaced by VelopackAsset")]
public enum ReleaseNotesFormat public enum ReleaseNotesFormat
{ {
/// <summary> The original markdown release notes. </summary> /// <summary> The original markdown release notes. </summary>
@@ -30,7 +30,7 @@ namespace Velopack
/// <summary> /// <summary>
/// Represents the information that can be parsed from a release entry filename. /// Represents the information that can be parsed from a release entry filename.
/// </summary> /// </summary>
[Obsolete("This release format has been replaced by VelopackRelease")] [Obsolete("This release format has been replaced by VelopackAsset")]
public sealed record ReleaseEntryName public sealed record ReleaseEntryName
{ {
/// <summary> The package Id. </summary> /// <summary> The package Id. </summary>
@@ -95,7 +95,7 @@ namespace Velopack
/// accompanying package containing the files needed to apply the release. /// accompanying package containing the files needed to apply the release.
/// </summary> /// </summary>
[DataContract] [DataContract]
[Obsolete("This release format has been replaced by VelopackRelease")] [Obsolete("This release format has been replaced by VelopackAsset")]
public class ReleaseEntry public class ReleaseEntry
{ {
/// <summary> The release identity - including id, version and so forth. </summary>* /// <summary> The release identity - including id, version and so forth. </summary>*

View File

@@ -61,7 +61,7 @@ namespace Velopack
/// <summary> The SHA1 checksum of the update package containing this release. </summary> /// <summary> The SHA1 checksum of the update package containing this release. </summary>
public string SHA1 { get; set; } public string SHA1 { get; set; }
/// <summary> The SHA256 checksum (if availible) of the update package containing this release. </summary> /// <summary> The SHA256 checksum (if available) of the update package containing this release. </summary>
public string SHA256 { get; set; } public string SHA256 { get; set; }
/// <summary> The size in bytes of the update package containing this release. </summary> /// <summary> The size in bytes of the update package containing this release. </summary>

View File

@@ -35,7 +35,7 @@ namespace Velopack.Windows
Desktop = 1 << 1, Desktop = 1 << 1,
/// <summary> /// <summary>
/// A shortcut in Startup/Run folder will cause the app to be automatially started on user login. /// A shortcut in Startup/Run folder will cause the app to be automatically started on user login.
/// </summary> /// </summary>
Startup = 1 << 2, Startup = 1 << 2,

View File

@@ -60,9 +60,9 @@ public class WindowsPackCommandRunner : PackageBuilder<WindowsPackOptions>
if (clickonceManifests.Any()) { if (clickonceManifests.Any()) {
foreach (var manifest in clickonceManifests) { foreach (var manifest in clickonceManifests) {
Log.Warn( Log.Warn(
$"Clickonce manifest found in pack directory: '{Path.GetFileName(manifest)}'. " + $"ClickOnce manifest found in pack directory: '{Path.GetFileName(manifest)}'. " +
$"Velopack does not support building clickonce applications, and so will delete this file automatically. " + $"Velopack does not support building ClickOnce applications, and so will delete this file automatically. " +
$"It is recommended that you remove clickonce from your .csproj to avoid this warning."); $"It is recommended that you remove ClickOnce from your .csproj to avoid this warning.");
File.Delete(manifest); File.Delete(manifest);
} }
} }
@@ -91,7 +91,7 @@ public class WindowsPackCommandRunner : PackageBuilder<WindowsPackOptions>
return null; return null;
try { try {
var shortcuts = Options.Shortcuts.Split(new[] { ',', ';' }, StringSplitOptions.RemoveEmptyEntries) var shortcuts = Options.Shortcuts.Split([',', ';'], StringSplitOptions.RemoveEmptyEntries)
.Select(x => x.Trim()) .Select(x => x.Trim())
.Select(x => (ShortcutLocation) Enum.Parse(typeof(ShortcutLocation), x, true)) .Select(x => (ShortcutLocation) Enum.Parse(typeof(ShortcutLocation), x, true))
.ToList(); .ToList();
@@ -116,7 +116,7 @@ public class WindowsPackCommandRunner : PackageBuilder<WindowsPackOptions>
return ""; return "";
var providedRuntimes = Options.Runtimes.ToLower() var providedRuntimes = Options.Runtimes.ToLower()
.Split(new[] { ',', ';' }, StringSplitOptions.RemoveEmptyEntries); .Split([',', ';'], StringSplitOptions.RemoveEmptyEntries);
var valid = new string[] { var valid = new string[] {
"webview2", "webview2",