Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Sep 1, 2024
1 parent 9f00484 commit 971c71c
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static BootstrapperConfiguration Resolve()
parsed[nameof(IsPromptRequired)],
"true",
StringComparison.OrdinalIgnoreCase
)
),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ internal enum JobObjectInfoType
EndOfJobTimeInformation = 6,
ExtendedLimitInformation = 9,
SecurityLimitInformation = 5,
GroupInformation = 11
GroupInformation = 11,
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal static class OperatingSystemEx
9 => ProcessorArchitecture.X64,
5 => ProcessorArchitecture.Arm,
12 => ProcessorArchitecture.Arm64,
_ => throw new InvalidOperationException("Unknown processor architecture.")
_ => throw new InvalidOperationException("Unknown processor architecture."),
};

public static IEnumerable<string> GetInstalledUpdates()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ internal enum ProcessorArchitecture
X86,
X64,
Arm,
Arm64
Arm64,
}

internal static class ProcessorArchitectureExtensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal class DotnetRuntimePrerequisite(DotnetRuntime runtime) : IPrerequisite
{ IsBase: true } => ".NET Runtime",
{ IsWindowsDesktop: true } => ".NET Desktop Runtime",
{ IsAspNet: true } => ".NET ASP.NET Runtime",
_ => runtime.Name
_ => runtime.Name,
} + $" v{runtime.Version}";

// We are looking for a runtime with the same name and the same major version.
Expand Down Expand Up @@ -53,7 +53,7 @@ private string GetInstallerDownloadUrl()
{
{ IsWindowsDesktop: true } => "windowsdesktop",
{ IsAspNet: true } => "aspnetcore-runtime",
_ => "runtime"
_ => "runtime",
}
)
?.TryGetChild("files")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
public enum PrerequisiteInstallerResult
{
Success,
RebootRequired
RebootRequired,
}
2 changes: 1 addition & 1 deletion DotnetRuntimeBootstrapper.AppHost.Core/TargetAssembly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public IPrerequisite[] GetMissingPrerequisites()
{
new WindowsUpdate2999226Prerequisite(),
new WindowsUpdate3063858Prerequisite(),
new VisualCppPrerequisite()
new VisualCppPrerequisite(),
};

foreach (var runtime in GetRuntimes())
Expand Down
8 changes: 4 additions & 4 deletions DotnetRuntimeBootstrapper.AppHost.Core/Utils/CommandLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ internal static class CommandLine
BasicLimitInformation = new JobObjectBasicLimitInformation
{
// JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE
LimitFlags = 0x2000
}
LimitFlags = 0x2000,
},
}
);

Expand Down Expand Up @@ -55,8 +55,8 @@ private static Process CreateProcess(
FileName = executableFilePath,
Arguments = string.Join(" ", arguments.Select(EscapeArgument).ToArray()),
UseShellExecute = false,
CreateNoWindow = true
}
CreateNoWindow = true,
},
};

if (isElevated)
Expand Down
7 changes: 3 additions & 4 deletions DotnetRuntimeBootstrapper/BootstrapperTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ private void ExtractAppHost()
{
"CLI" => ".AppHost.Cli.exe",
"GUI" => ".AppHost.Gui.exe",
_
=> throw new InvalidOperationException(
$"Unknown bootstrapper variant '{Variant}'."
)
_ => throw new InvalidOperationException(
$"Unknown bootstrapper variant '{Variant}'."
),
};

// Executable file
Expand Down

0 comments on commit 971c71c

Please sign in to comment.