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>
/// Describes the requested release notes text format.
/// </summary>
[Obsolete("This release format has been replaced by VelopackRelease")]
[Obsolete("This release format has been replaced by VelopackAsset")]
public enum ReleaseNotesFormat
{
/// <summary> The original markdown release notes. </summary>
@@ -30,7 +30,7 @@ namespace Velopack
/// <summary>
/// Represents the information that can be parsed from a release entry filename.
/// </summary>
[Obsolete("This release format has been replaced by VelopackRelease")]
[Obsolete("This release format has been replaced by VelopackAsset")]
public sealed record ReleaseEntryName
{
/// <summary> The package Id. </summary>
@@ -95,7 +95,7 @@ namespace Velopack
/// accompanying package containing the files needed to apply the release.
/// </summary>
[DataContract]
[Obsolete("This release format has been replaced by VelopackRelease")]
[Obsolete("This release format has been replaced by VelopackAsset")]
public class ReleaseEntry
{
/// <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>
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; }
/// <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,
/// <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>
Startup = 1 << 2,

View File

@@ -60,9 +60,9 @@ public class WindowsPackCommandRunner : PackageBuilder<WindowsPackOptions>
if (clickonceManifests.Any()) {
foreach (var manifest in clickonceManifests) {
Log.Warn(
$"Clickonce manifest found in pack directory: '{Path.GetFileName(manifest)}'. " +
$"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.");
$"ClickOnce manifest found in pack directory: '{Path.GetFileName(manifest)}'. " +
$"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.");
File.Delete(manifest);
}
}
@@ -91,7 +91,7 @@ public class WindowsPackCommandRunner : PackageBuilder<WindowsPackOptions>
return null;
try {
var shortcuts = Options.Shortcuts.Split(new[] { ',', ';' }, StringSplitOptions.RemoveEmptyEntries)
var shortcuts = Options.Shortcuts.Split([',', ';'], StringSplitOptions.RemoveEmptyEntries)
.Select(x => x.Trim())
.Select(x => (ShortcutLocation) Enum.Parse(typeof(ShortcutLocation), x, true))
.ToList();
@@ -116,7 +116,7 @@ public class WindowsPackCommandRunner : PackageBuilder<WindowsPackOptions>
return "";
var providedRuntimes = Options.Runtimes.ToLower()
.Split(new[] { ',', ';' }, StringSplitOptions.RemoveEmptyEntries);
.Split([',', ';'], StringSplitOptions.RemoveEmptyEntries);
var valid = new string[] {
"webview2",