Skip to content

Commit 971c71c

Browse files
committed
Fix formatting
1 parent 9f00484 commit 971c71c

9 files changed

Lines changed: 15 additions & 16 deletions

File tree

‎DotnetRuntimeBootstrapper.AppHost.Core/BootstrapperConfiguration.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static BootstrapperConfiguration Resolve()
4040
parsed[nameof(IsPromptRequired)],
4141
"true",
4242
StringComparison.OrdinalIgnoreCase
43-
)
43+
),
4444
};
4545
}
4646
}

‎DotnetRuntimeBootstrapper.AppHost.Core/Native/JobObjectInfoType.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ internal enum JobObjectInfoType
99
EndOfJobTimeInformation = 6,
1010
ExtendedLimitInformation = 9,
1111
SecurityLimitInformation = 5,
12-
GroupInformation = 11
12+
GroupInformation = 11,
1313
}

‎DotnetRuntimeBootstrapper.AppHost.Core/Platform/OperatingSystemEx.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal static class OperatingSystemEx
1919
9 => ProcessorArchitecture.X64,
2020
5 => ProcessorArchitecture.Arm,
2121
12 => ProcessorArchitecture.Arm64,
22-
_ => throw new InvalidOperationException("Unknown processor architecture.")
22+
_ => throw new InvalidOperationException("Unknown processor architecture."),
2323
};
2424

2525
public static IEnumerable<string> GetInstalledUpdates()

‎DotnetRuntimeBootstrapper.AppHost.Core/Platform/ProcessorArchitecture.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ internal enum ProcessorArchitecture
55
X86,
66
X64,
77
Arm,
8-
Arm64
8+
Arm64,
99
}
1010

1111
internal static class ProcessorArchitectureExtensions

‎DotnetRuntimeBootstrapper.AppHost.Core/Prerequisites/DotnetRuntimePrerequisite.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal class DotnetRuntimePrerequisite(DotnetRuntime runtime) : IPrerequisite
1717
{ IsBase: true } => ".NET Runtime",
1818
{ IsWindowsDesktop: true } => ".NET Desktop Runtime",
1919
{ IsAspNet: true } => ".NET ASP.NET Runtime",
20-
_ => runtime.Name
20+
_ => runtime.Name,
2121
} + $" v{runtime.Version}";
2222

2323
// We are looking for a runtime with the same name and the same major version.
@@ -53,7 +53,7 @@ private string GetInstallerDownloadUrl()
5353
{
5454
{ IsWindowsDesktop: true } => "windowsdesktop",
5555
{ IsAspNet: true } => "aspnetcore-runtime",
56-
_ => "runtime"
56+
_ => "runtime",
5757
}
5858
)
5959
?.TryGetChild("files")

‎DotnetRuntimeBootstrapper.AppHost.Core/Prerequisites/PrerequisiteInstallerResult.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
public enum PrerequisiteInstallerResult
44
{
55
Success,
6-
RebootRequired
6+
RebootRequired,
77
}

‎DotnetRuntimeBootstrapper.AppHost.Core/TargetAssembly.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public IPrerequisite[] GetMissingPrerequisites()
4646
{
4747
new WindowsUpdate2999226Prerequisite(),
4848
new WindowsUpdate3063858Prerequisite(),
49-
new VisualCppPrerequisite()
49+
new VisualCppPrerequisite(),
5050
};
5151

5252
foreach (var runtime in GetRuntimes())

‎DotnetRuntimeBootstrapper.AppHost.Core/Utils/CommandLine.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ internal static class CommandLine
2525
BasicLimitInformation = new JobObjectBasicLimitInformation
2626
{
2727
// JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE
28-
LimitFlags = 0x2000
29-
}
28+
LimitFlags = 0x2000,
29+
},
3030
}
3131
);
3232

@@ -55,8 +55,8 @@ private static Process CreateProcess(
5555
FileName = executableFilePath,
5656
Arguments = string.Join(" ", arguments.Select(EscapeArgument).ToArray()),
5757
UseShellExecute = false,
58-
CreateNoWindow = true
59-
}
58+
CreateNoWindow = true,
59+
},
6060
};
6161

6262
if (isElevated)

‎DotnetRuntimeBootstrapper/BootstrapperTask.cs‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,9 @@ private void ExtractAppHost()
4949
{
5050
"CLI" => ".AppHost.Cli.exe",
5151
"GUI" => ".AppHost.Gui.exe",
52-
_
53-
=> throw new InvalidOperationException(
54-
$"Unknown bootstrapper variant '{Variant}'."
55-
)
52+
_ => throw new InvalidOperationException(
53+
$"Unknown bootstrapper variant '{Variant}'."
54+
),
5655
};
5756

5857
// Executable file

0 commit comments

Comments
 (0)