Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 207805bad3 | |||
| 6904e0cfd8 | |||
| 093da5d0f3 | |||
| c6570c1e2c | |||
| ad729133a6 | |||
| 05a0540476 |
@@ -0,0 +1 @@
|
||||
bin/
|
||||
+1
-1
@@ -96,7 +96,7 @@ namespace aeqw89.tools.Publish {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Failed to pack; ensure that 'dotnet build' succeeds before running this program..
|
||||
/// Looks up a localized string similar to Failed to pack with exit code '{0}'; ensure that 'dotnet build' succeeds before running this program..
|
||||
/// </summary>
|
||||
internal static string dotnet_pack_failure {
|
||||
get {
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<value>The project file '{0}' is irreparable becuase it is missing a '{1}' property, and the value cannot be guessed.</value>
|
||||
</data>
|
||||
<data name="dotnet_pack_failure" xml:space="preserve">
|
||||
<value>Failed to pack; ensure that 'dotnet build' succeeds before running this program.</value>
|
||||
<value>Failed to pack with exit code '{0}'; ensure that 'dotnet build' succeeds before running this program.</value>
|
||||
</data>
|
||||
<data name="failed_to_clean_up" xml:space="preserve">
|
||||
<value>Could not delete temporary directory '{0}' due to error '{1}'</value>
|
||||
|
||||
+180
-44
@@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Diagnostics;
|
||||
using System.Text;
|
||||
using Renci.SshNet;
|
||||
using Spectre.Console;
|
||||
using aeqw89.xml.ProjectFile;
|
||||
@@ -26,6 +27,8 @@ public static class Program {
|
||||
public static Dictionary<string, string[]> Flags { get; set; }
|
||||
public static bool Verbose { get; set; } = false;
|
||||
|
||||
public static List<Action> RestoreActions { get; set; } = [];
|
||||
|
||||
public static void ReadArgs(string[] args) {
|
||||
if (args.Length < 1) {
|
||||
ShowError(Exceptions.missing_mode.EscapeMarkup());
|
||||
@@ -108,9 +111,15 @@ public static class Program {
|
||||
public static async Task Main(string[] args) {
|
||||
ReadArgs(args);
|
||||
|
||||
Console.CancelKeyPress += (sender, eventArgs) => {
|
||||
RestoreActions.ForEach(x => x());
|
||||
};
|
||||
|
||||
string packageId = "";
|
||||
string version = "";
|
||||
int destinationsProcessed = 0;
|
||||
|
||||
try {
|
||||
var result = AnsiConsole.Status()
|
||||
.Spinner(Spinner.Known.Dots)
|
||||
.Start<bool>("Preparing project", ctx => {
|
||||
@@ -124,6 +133,12 @@ public static class Program {
|
||||
|
||||
try {
|
||||
projectFile.Backup();
|
||||
RestoreActions.Add(() => {
|
||||
projectFile.Restore();
|
||||
AnsiConsole.MarkupLine("[yellow]Restored project file from backup.[/]");
|
||||
});
|
||||
|
||||
|
||||
if (Verbose)
|
||||
AnsiConsole.WriteLine(
|
||||
$"Created project file backup at {projectFile.GetDefaultBackupLocation()}");
|
||||
@@ -148,7 +163,8 @@ public static class Program {
|
||||
}
|
||||
|
||||
if (!int.TryParse(deltaStrings[0], out delta)) {
|
||||
ShowError(Exceptions.flag_parameter_type_incorrect.EscapeMarkup(), "--delta", 0, nameof(Int32),
|
||||
ShowError(Exceptions.flag_parameter_type_incorrect.EscapeMarkup(), "--delta", 0,
|
||||
nameof(Int32),
|
||||
deltaStrings[0]);
|
||||
projectFile.Restore();
|
||||
ShowHelp();
|
||||
@@ -158,18 +174,14 @@ public static class Program {
|
||||
|
||||
ctx.Status = "Updating version";
|
||||
var version = projectFile.GetVersion();
|
||||
version = ChangeVersion(version,
|
||||
Target == IncrementTarget.Patch ? delta : int.MinValue,
|
||||
Target == IncrementTarget.Minor ? delta : int.MinValue,
|
||||
Target == IncrementTarget.Major ? delta : int.MinValue,
|
||||
(x, y) => int.Clamp(x + y, 0, int.MaxValue));
|
||||
version = ChangeVersion(version, delta, Target ?? IncrementTarget.Patch);
|
||||
|
||||
projectFile.SetVersion(version);
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
ShowError(Exceptions.generic_error.EscapeMarkup(), e.ToString().EscapeMarkup());
|
||||
projectFile.Restore();
|
||||
RestoreActions.ForEach(x => x());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -190,21 +202,23 @@ public static class Program {
|
||||
visited.Add(reference.Include);
|
||||
|
||||
if (Verbose)
|
||||
AnsiConsole.WriteLine($"Processing project reference {reference.Include} out of {visited.Count} so far");
|
||||
AnsiConsole.WriteLine(
|
||||
$"Processing project reference {reference.Include} out of {visited.Count} so far");
|
||||
|
||||
projectFile.SetPrivateAssets(reference, PrivateAssetsValue.All);
|
||||
string pathToReferencedProjectFile = projectFile.GetAbsoluteIncludePath(reference);
|
||||
if (!ProjectFile.TryLoad(pathToReferencedProjectFile, out var referencedProjectFile,
|
||||
out error)) {
|
||||
ShowError(error.EscapeMarkup());
|
||||
projectFile.Restore();
|
||||
RestoreActions.ForEach(x => x());
|
||||
return false;
|
||||
}
|
||||
|
||||
var referencedPackageReferences = referencedProjectFile.GetPackageReferences();
|
||||
foreach (var package in referencedPackageReferences) {
|
||||
if (Verbose)
|
||||
AnsiConsole.WriteLine($"Hoisting package {package.Include} from {pathToReferencedProjectFile}");
|
||||
AnsiConsole.WriteLine(
|
||||
$"Hoisting package {package.Include} from {pathToReferencedProjectFile}");
|
||||
var hoisted = projectFile.AddPackage(package);
|
||||
projectFile.SetTransitive(hoisted, true);
|
||||
projectFile.SetPrivateAssets(hoisted, PrivateAssetsValue.None);
|
||||
@@ -217,9 +231,10 @@ public static class Program {
|
||||
projectReferences.Enqueue(project);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
}
|
||||
catch (Exception e) {
|
||||
ShowError(Exceptions.generic_error.EscapeMarkup(), e.ToString().EscapeMarkup());
|
||||
projectFile.Restore();
|
||||
RestoreActions.ForEach(x => x());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -233,29 +248,80 @@ public static class Program {
|
||||
}
|
||||
|
||||
var outDir = Path.GetRandomFileName();
|
||||
result = AnsiConsole.Status()
|
||||
RestoreActions.Add(() => {
|
||||
try {
|
||||
if (!Directory.Exists(outDir)) return;
|
||||
Directory.Delete(outDir, true);
|
||||
AnsiConsole.MarkupLine("[yellow]Cleaned up temporary directory[/]");
|
||||
}
|
||||
catch (Exception e) {
|
||||
ShowError(string.Format(Exceptions.failed_to_clean_up.EscapeMarkup(), outDir.EscapeMarkup(),
|
||||
e.ToString().EscapeMarkup()));
|
||||
}
|
||||
});
|
||||
|
||||
string processError = "";
|
||||
var exitCode = await AnsiConsole.Status()
|
||||
.Spinner(Spinner.Known.Dots)
|
||||
.Start<bool>("Creating package with 'dotnet pack' ", ctx => {
|
||||
.StartAsync<int>("Creating package with 'dotnet pack' ", async ctx => {
|
||||
var p = Process.Start(new ProcessStartInfo() {
|
||||
FileName = "dotnet",
|
||||
Arguments = $"pack -o {outDir}",
|
||||
WorkingDirectory = Environment.CurrentDirectory,
|
||||
UseShellExecute = Verbose,
|
||||
RedirectStandardOutput = !Verbose,
|
||||
RedirectStandardError = !Verbose
|
||||
});
|
||||
p?.WaitForExit();
|
||||
return p?.ExitCode == 0;
|
||||
UseShellExecute = false,
|
||||
RedirectStandardOutput = true,
|
||||
RedirectStandardError = true
|
||||
});
|
||||
|
||||
if (!result) {
|
||||
ShowError(Exceptions.dotnet_pack_failure.EscapeMarkup());
|
||||
CancellationTokenSource cts = new CancellationTokenSource();
|
||||
StringBuilder errorLines = new();
|
||||
p?.ErrorDataReceived += (sender, eventArgs) => {
|
||||
cts.Cancel();
|
||||
if (Verbose && eventArgs.Data != null)
|
||||
AnsiConsole.WriteLine(eventArgs.Data);
|
||||
};
|
||||
bool success = false;
|
||||
p?.OutputDataReceived += (sender, eventArgs) => {
|
||||
if (eventArgs.Data?.ToLower().Contains("press any key") == true)
|
||||
cts.Cancel();
|
||||
if (Verbose && eventArgs.Data != null)
|
||||
AnsiConsole.WriteLine(eventArgs.Data);
|
||||
// Successfully created package 'C:\Users\qwsdc\source\repos\Beam\aeqw89.Beam\tozsxqaj.alp\Beam.1.0.0.nupkg'.
|
||||
if (eventArgs.Data?.ToLower()
|
||||
.Contains($"successfully created package '{Path.GetFullPath(outDir)}") == true) {
|
||||
AnsiConsole.MarkupLine($"[bold]{eventArgs.Data}[/]");
|
||||
success = true;
|
||||
}
|
||||
};
|
||||
|
||||
p?.BeginOutputReadLine();
|
||||
p?.BeginErrorReadLine();
|
||||
|
||||
try {
|
||||
await (p?.WaitForExitAsync(cts.Token) ?? Task.CompletedTask);
|
||||
}
|
||||
catch (TaskCanceledException) {
|
||||
p?.Kill();
|
||||
}
|
||||
|
||||
processError = errorLines.ToString().EscapeMarkup();
|
||||
return success == true ? 0 : p?.ExitCode ?? -1;
|
||||
});
|
||||
|
||||
if (exitCode != 0) {
|
||||
ShowError(processError.EscapeMarkup());
|
||||
ShowError(Exceptions.dotnet_pack_failure.EscapeMarkup(), exitCode);
|
||||
RestoreActions.ForEach(x => x());
|
||||
return;
|
||||
}
|
||||
|
||||
if (Verbose)
|
||||
AnsiConsole.MarkupLine("Successfully created package with exit code [green]{0}[/]. Processing destinations.", exitCode);
|
||||
|
||||
var package = Directory.GetFiles(outDir, "*.nupkg").FirstOrDefault();
|
||||
if (package == null) {
|
||||
ShowError(Exceptions.generic_error.EscapeMarkup());
|
||||
RestoreActions.ForEach(x => x());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -265,7 +331,7 @@ public static class Program {
|
||||
try {
|
||||
await AnsiConsole.Progress()
|
||||
.AutoClear(true)
|
||||
.HideCompleted(true)
|
||||
.HideCompleted(false)
|
||||
.Columns(new ProgressColumn[] {
|
||||
new TaskDescriptionColumn(),
|
||||
new ProgressBarColumn()
|
||||
@@ -287,7 +353,8 @@ public static class Program {
|
||||
|
||||
if (dest.StartsWith("local-")) {
|
||||
var name = dest[("local-".Length)..];
|
||||
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
|
||||
var path = Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
|
||||
name, Path.GetFileName(package));
|
||||
if (!Directory.Exists(Path.GetDirectoryName(path)))
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(path)!);
|
||||
@@ -303,7 +370,8 @@ public static class Program {
|
||||
|
||||
else if (dest.StartsWith("cloud-")) {
|
||||
var name = dest[("cloud-".Length)..];
|
||||
var connectionTask = ctx.AddTaskBefore($"Preparing cloud-{name}", new ProgressTaskSettings() {
|
||||
var connectionTask = ctx.AddTaskBefore($"Preparing cloud-{name}",
|
||||
new ProgressTaskSettings() {
|
||||
MaxValue = 100
|
||||
}, task);
|
||||
|
||||
@@ -332,41 +400,51 @@ public static class Program {
|
||||
if (os == "windows") {
|
||||
var userDirC = sshClient.RunCommand("cmd /c echo %USERPROFILE%");
|
||||
if (userDirC.ExitStatus != 0) {
|
||||
ShowError(Exceptions.failed_to_prepare_server_directory, "n/a", name, os, userDirC.Result);
|
||||
ShowError(Exceptions.failed_to_prepare_server_directory, "n/a", name, os,
|
||||
userDirC.Result);
|
||||
return;
|
||||
}
|
||||
|
||||
var userDir = userDirC.Result.Trim();
|
||||
remoteDirectory = RemotePath.Combine(RemoteOs.Windows,userDir, "dotnet-packages");
|
||||
packageFileDirectory = RemotePath.Combine(RemoteOs.Windows, remoteDirectory, Path.GetFileName(package));
|
||||
remoteDirectory = RemotePath.Combine(RemoteOs.Windows, userDir, "dotnet-packages");
|
||||
packageFileDirectory = RemotePath.Combine(RemoteOs.Windows, remoteDirectory,
|
||||
Path.GetFileName(package));
|
||||
|
||||
var mkdirC = sshClient.RunCommand($"cmd /c if not exist \"{remoteDirectory}\" mkdir \"{remoteDirectory}\"");
|
||||
var mkdirC = sshClient.RunCommand(
|
||||
$"cmd /c if not exist \"{remoteDirectory}\" mkdir \"{remoteDirectory}\"");
|
||||
if (mkdirC.ExitStatus != 0) {
|
||||
ShowError(Exceptions.failed_to_prepare_server_directory, remoteDirectory, name, os, mkdirC.Result);
|
||||
ShowError(Exceptions.failed_to_prepare_server_directory, remoteDirectory, name,
|
||||
os, mkdirC.Result);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (os == "linux") {
|
||||
var homeDirC = sshClient.RunCommand("printf %s \"$HOME\"");
|
||||
if (homeDirC.ExitStatus != 0) {
|
||||
ShowError(Exceptions.failed_to_prepare_server_directory, "n/a", name, os, homeDirC.Result);
|
||||
ShowError(Exceptions.failed_to_prepare_server_directory, "n/a", name, os,
|
||||
homeDirC.Result);
|
||||
return;
|
||||
}
|
||||
|
||||
var homeDir = homeDirC.Result.Trim(); // no CRLF on unix, but Trim() is safest
|
||||
remoteDirectory = RemotePath.Combine(RemoteOs.Unix, homeDir, ".dotnet-packages");
|
||||
packageFileDirectory = RemotePath.Combine(RemoteOs.Unix, remoteDirectory, Path.GetFileName(package));
|
||||
packageFileDirectory = RemotePath.Combine(RemoteOs.Unix, remoteDirectory,
|
||||
Path.GetFileName(package));
|
||||
|
||||
// Use -p and single quotes to handle spaces safely
|
||||
var mkdirC = sshClient.RunCommand($"mkdir -p '{remoteDirectory}'");
|
||||
if (mkdirC.ExitStatus != 0) {
|
||||
ShowError(Exceptions.failed_to_prepare_server_directory, remoteDirectory, name, os, mkdirC.Result);
|
||||
ShowError(Exceptions.failed_to_prepare_server_directory, remoteDirectory, name,
|
||||
os, mkdirC.Result);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
ShowError(Exceptions.failed_to_prepare_server_directory, "n/a", name, os, "Unsupported OS");
|
||||
ShowError(Exceptions.failed_to_prepare_server_directory, "n/a", name, os,
|
||||
"Unsupported OS");
|
||||
return;
|
||||
}
|
||||
|
||||
connectionTask.Increment(33);
|
||||
|
||||
sshClient.Disconnect();
|
||||
@@ -393,23 +471,52 @@ public static class Program {
|
||||
Arguments = $"nuget push {package} --source github",
|
||||
WorkingDirectory = Environment.CurrentDirectory,
|
||||
UseShellExecute = false,
|
||||
RedirectStandardOutput = !Verbose,
|
||||
RedirectStandardError = !Verbose
|
||||
RedirectStandardOutput = true,
|
||||
RedirectStandardError = true
|
||||
});
|
||||
|
||||
var cts = CancellationTokenSource.CreateLinkedTokenSource(ct);
|
||||
StringBuilder errorLines = new();
|
||||
p?.ErrorDataReceived += (sender, eventArgs) => {
|
||||
cts.Cancel();
|
||||
if (Verbose && eventArgs.Data != null)
|
||||
AnsiConsole.WriteLine(eventArgs.Data);
|
||||
errorLines.Append(eventArgs.Data);
|
||||
};
|
||||
p?.OutputDataReceived += (sender, eventArgs) => {
|
||||
if (eventArgs.Data?.ToLower().Contains("press any key") == true)
|
||||
cts.Cancel();
|
||||
if (Verbose && eventArgs.Data != null)
|
||||
AnsiConsole.WriteLine(eventArgs.Data);
|
||||
};
|
||||
|
||||
p?.BeginOutputReadLine();
|
||||
p?.BeginErrorReadLine();
|
||||
|
||||
if (p == null) {
|
||||
ShowError(Exceptions.generic_error.EscapeMarkup());
|
||||
}
|
||||
|
||||
task.Increment(size / 2);
|
||||
if (p != null)
|
||||
await p.WaitForExitAsync(ct);
|
||||
if (p?.ExitCode != 0) {
|
||||
ShowError(Exceptions.dotnet_nuget_push_failure, p.ExitCode);
|
||||
try {
|
||||
await (p?.WaitForExitAsync(cts.Token) ?? Task.CompletedTask);
|
||||
}
|
||||
catch (TaskCanceledException) {
|
||||
p?.Kill();
|
||||
}
|
||||
|
||||
if (p?.ExitCode != 0) {
|
||||
ShowError(errorLines.ToString().EscapeMarkup());
|
||||
ShowError(Exceptions.dotnet_nuget_push_failure, p?.ExitCode ?? -1);
|
||||
task.StopTask();
|
||||
return;
|
||||
}
|
||||
|
||||
task.Increment(size / 2);
|
||||
}
|
||||
|
||||
Interlocked.Increment(ref destinationsProcessed);
|
||||
task.StopTask();
|
||||
});
|
||||
});
|
||||
@@ -419,11 +526,27 @@ public static class Program {
|
||||
Directory.Delete(outDir, true);
|
||||
}
|
||||
catch (Exception e) {
|
||||
ShowError(string.Format(Exceptions.failed_to_clean_up.EscapeMarkup(), outDir.EscapeMarkup(), e.ToString().EscapeMarkup()));
|
||||
ShowError(string.Format(Exceptions.failed_to_clean_up.EscapeMarkup(), outDir.EscapeMarkup(),
|
||||
e.ToString().EscapeMarkup()));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
catch(Exception e) {
|
||||
ShowError(Exceptions.generic_error.EscapeMarkup(), e.ToString().EscapeMarkup());;
|
||||
RestoreActions.ForEach(x => x());
|
||||
}
|
||||
|
||||
if (destinationsProcessed == 0) {
|
||||
AnsiConsole.MarkupLine("[bold red]No destinations were processed. Reverting changes to project file.[/]");
|
||||
RestoreActions.ForEach(x => x());
|
||||
}
|
||||
else {
|
||||
AnsiConsole.MarkupLine("Completed processing of all destinations.");
|
||||
AnsiConsole.MarkupLine("Example usage:\n\t <PackageReference Include=\"{0}\" Version=\"{1}\" />".EscapeMarkup(), packageId, version);
|
||||
AnsiConsole.MarkupLine(
|
||||
"Example usage:\n\t <PackageReference Include=\"{0}\" Version=\"{1}\" />".EscapeMarkup(), packageId,
|
||||
version);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -436,8 +559,7 @@ public static class Program {
|
||||
/// <param name="operation">A function that defines the adjustment operation to be performed on each version component.</param>
|
||||
/// <returns>A new version string with the updated major, minor, and patch components, preserving any existing tag.</returns>
|
||||
/// <exception cref="Exception">Thrown if the version string is not in the correct format.</exception>
|
||||
private static string ChangeVersion(string version, int patch, int minor, int major,
|
||||
Func<int, int, int> operation) {
|
||||
private static string ChangeVersion(string version, int delta, IncrementTarget target) {
|
||||
string[] split = version.Split('.');
|
||||
if (split.Length != 3) {
|
||||
throw new Exception(string.Format(Exceptions.version_string_not_formatted_correctly, version));
|
||||
@@ -454,9 +576,23 @@ public static class Program {
|
||||
throw new Exception(string.Format(Exceptions.version_string_not_formatted_correctly, version));
|
||||
|
||||
int[] parsedVersion = split.Select(int.Parse).ToArray();
|
||||
switch (target) {
|
||||
case IncrementTarget.Major:
|
||||
parsedVersion[0] += delta;
|
||||
parsedVersion[1] = 0;
|
||||
parsedVersion[2] = 0;
|
||||
break;
|
||||
case IncrementTarget.Minor:
|
||||
parsedVersion[1] += delta;
|
||||
parsedVersion[2] = 0;
|
||||
break;
|
||||
case IncrementTarget.Patch:
|
||||
parsedVersion[2] += delta;
|
||||
break;
|
||||
}
|
||||
|
||||
return
|
||||
$"{operation(parsedVersion[0], major)}.{operation(parsedVersion[1], minor)}.{operation(parsedVersion[2], patch)}{tag}";
|
||||
$"{parsedVersion[0]}.{parsedVersion[1]}.{parsedVersion[2]}{tag}";
|
||||
}
|
||||
|
||||
private static void ShowError(string message, params object[] args) {
|
||||
|
||||
@@ -106,6 +106,7 @@ internal class ProjectFile {
|
||||
}
|
||||
|
||||
set("Version", "1.0.0");
|
||||
set("PackageVersion", "1.0.0");
|
||||
set("Title", System.IO.Path.GetFileNameWithoutExtension(Path));
|
||||
set("Authors", "");
|
||||
set("Company", "");
|
||||
@@ -213,5 +214,8 @@ internal class ProjectFile {
|
||||
|
||||
public string GetVersion() => MainPropertyGroup.GetProperty("Version");
|
||||
|
||||
public void SetVersion(string version) => MainPropertyGroup.SetProperty("Version", version);
|
||||
public void SetVersion(string version) {
|
||||
MainPropertyGroup.SetProperty("Version", version);
|
||||
MainPropertyGroup.SetProperty("PackageVersion", version);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>preview</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("aeqw89.tools.Publish")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+81bb2ea5c43fe48d78b65dc9e825889d8e041819")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b61d0836ac23522cf42987fbed9474a3bda3632e")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("aeqw89.tools.Publish")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("aeqw89.tools.Publish")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
53ec5207a57f615a2bd949ca74f6fa9f51b319acb2da66e55751d6a902498945
|
||||
7fc87e3000a58eaf1f393990c041ae903924d7e468beb21b7ca46d984853ce80
|
||||
|
||||
+2
@@ -1,5 +1,7 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net9.0
|
||||
build_property.TargetFrameworkIdentifier = .NETCoreApp
|
||||
build_property.TargetFrameworkVersion = v9.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
global using System;
|
||||
global using System.Collections.Generic;
|
||||
global using System.IO;
|
||||
global using System.Linq;
|
||||
global using System.Net.Http;
|
||||
global using System.Threading;
|
||||
global using System.Threading.Tasks;
|
||||
|
||||
Binary file not shown.
@@ -40,7 +40,7 @@
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
"SdkAnalysisLevel": "10.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
@@ -70,12 +70,30 @@
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Host.win-x64",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.WindowsDesktop.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.100-rc.1.25451.107/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\qwsdc\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.14.0</NuGetToolVersion>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\qwsdc\.nuget\packages\" />
|
||||
|
||||
@@ -317,7 +317,7 @@
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
"SdkAnalysisLevel": "10.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
@@ -347,12 +347,30 @@
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Host.win-x64",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.WindowsDesktop.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.100-rc.1.25451.107/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "PlMFcEG0EnM=",
|
||||
"dgSpecHash": "lSSpLey1hfc=",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\qwsdc\\source\\repos\\aeqw89.tools.Publish\\aeqw89.tools.Publish\\aeqw89.tools.Publish.csproj",
|
||||
"expectedPackageFiles": [
|
||||
@@ -9,7 +9,11 @@
|
||||
"C:\\Users\\qwsdc\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\8.0.2\\microsoft.extensions.dependencyinjection.abstractions.8.0.2.nupkg.sha512",
|
||||
"C:\\Users\\qwsdc\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\8.0.3\\microsoft.extensions.logging.abstractions.8.0.3.nupkg.sha512",
|
||||
"C:\\Users\\qwsdc\\.nuget\\packages\\spectre.console\\0.51.2-preview.0.1\\spectre.console.0.51.2-preview.0.1.nupkg.sha512",
|
||||
"C:\\Users\\qwsdc\\.nuget\\packages\\ssh.net\\2025.0.0\\ssh.net.2025.0.0.nupkg.sha512"
|
||||
"C:\\Users\\qwsdc\\.nuget\\packages\\ssh.net\\2025.0.0\\ssh.net.2025.0.0.nupkg.sha512",
|
||||
"C:\\Users\\qwsdc\\.nuget\\packages\\microsoft.netcore.app.ref\\9.0.9\\microsoft.netcore.app.ref.9.0.9.nupkg.sha512",
|
||||
"C:\\Users\\qwsdc\\.nuget\\packages\\microsoft.windowsdesktop.app.ref\\9.0.9\\microsoft.windowsdesktop.app.ref.9.0.9.nupkg.sha512",
|
||||
"C:\\Users\\qwsdc\\.nuget\\packages\\microsoft.aspnetcore.app.ref\\9.0.9\\microsoft.aspnetcore.app.ref.9.0.9.nupkg.sha512",
|
||||
"C:\\Users\\qwsdc\\.nuget\\packages\\microsoft.netcore.app.host.win-x64\\9.0.9\\microsoft.netcore.app.host.win-x64.9.0.9.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
"restore":{"projectUniqueName":"C:\\Users\\qwsdc\\source\\repos\\aeqw89.tools.Publish\\aeqw89.tools.Publish\\aeqw89.tools.Publish.csproj","projectName":"aeqw89.tools.Publish","projectPath":"C:\\Users\\qwsdc\\source\\repos\\aeqw89.tools.Publish\\aeqw89.tools.Publish\\aeqw89.tools.Publish.csproj","outputPath":"C:\\Users\\qwsdc\\source\\repos\\aeqw89.tools.Publish\\aeqw89.tools.Publish\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net9.0"],"sources":{"C:\\Users\\qwsdc\\packages":{},"https://api.nuget.org/v3/index.json":{},"https://nuget.pkg.github.com/qwsdcvghyu89/index.json":{}},"frameworks":{"net9.0":{"targetAlias":"net9.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"},"SdkAnalysisLevel":"9.0.100"}"frameworks":{"net9.0":{"targetAlias":"net9.0","dependencies":{"SSH.NET":{"target":"Package","version":"[2025.0.0, )"},"Spectre.Console":{"target":"Package","version":"[0.51.2-preview.0.1, )"},"aeqw89.xml.ProjectFile":{"target":"Package","version":"[1.0.3, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"}}
|
||||
"restore":{"projectUniqueName":"C:\\Users\\qwsdc\\source\\repos\\aeqw89.tools.Publish\\aeqw89.tools.Publish\\aeqw89.tools.Publish.csproj","projectName":"aeqw89.tools.Publish","projectPath":"C:\\Users\\qwsdc\\source\\repos\\aeqw89.tools.Publish\\aeqw89.tools.Publish\\aeqw89.tools.Publish.csproj","outputPath":"C:\\Users\\qwsdc\\source\\repos\\aeqw89.tools.Publish\\aeqw89.tools.Publish\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net9.0"],"sources":{"C:\\Users\\qwsdc\\packages":{},"https://api.nuget.org/v3/index.json":{},"https://nuget.pkg.github.com/qwsdcvghyu89/index.json":{}},"frameworks":{"net9.0":{"targetAlias":"net9.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"},"SdkAnalysisLevel":"10.0.100"}"frameworks":{"net9.0":{"targetAlias":"net9.0","dependencies":{"SSH.NET":{"target":"Package","version":"[2025.0.0, )"},"Spectre.Console":{"target":"Package","version":"[0.51.2-preview.0.1, )"},"aeqw89.xml.ProjectFile":{"target":"Package","version":"[1.0.3, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"downloadDependencies":[{"name":"Microsoft.AspNetCore.App.Ref","version":"[9.0.9, 9.0.9]"},{"name":"Microsoft.NETCore.App.Host.win-x64","version":"[9.0.9, 9.0.9]"},{"name":"Microsoft.NETCore.App.Ref","version":"[9.0.9, 9.0.9]"},{"name":"Microsoft.WindowsDesktop.App.Ref","version":"[9.0.9, 9.0.9]"}],"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\10.0.100-rc.1.25451.107/PortableRuntimeIdentifierGraph.json"}}
|
||||
@@ -1 +1 @@
|
||||
17584372950452857
|
||||
17584393464480743
|
||||
@@ -1 +1 @@
|
||||
17584377737753019
|
||||
17588788734490530
|
||||
Reference in New Issue
Block a user