Upgrade projects to .NET 10 and implement automatic prerequisites check/installation and PATH registration
Build and Test / build (push) Failing after 41s

This commit is contained in:
Marek Novák
2026-07-01 02:10:35 +02:00
parent 74f7a1ae06
commit b1a4c10dd2
7 changed files with 227 additions and 7 deletions
+10
View File
@@ -36,6 +36,16 @@ namespace NixWslWrapper.Cli
string user = Environment.GetEnvironmentVariable("NIX_WSL_USER") ?? "root";
string profile = Environment.GetEnvironmentVariable("NIX_WSL_PROFILE") ?? "/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh";
try
{
PrerequisiteManager.EnsurePrerequisites(distro, user, profile);
}
catch (Exception ex)
{
AnsiConsole.MarkupLine($"[bold red]Prerequisite Check Failed:[/] {ex.Message}");
return 1;
}
WslTarget target;
try
{