Skip to content

Commit 947de96

Browse files
committed
Docker .NET: added other runtime kinds.
1 parent 94b1bc9 commit 947de96

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/PostSharp.Engineering.BuildTools/Docker/DotNetComponent.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ public override void WriteDockerfile( StreamWriter writer )
4444
{
4545
var runtime = this.DotNetComponentKind switch
4646
{
47-
DotNetComponentKind.Runtime => "dotnet",
47+
DotNetComponentKind.DotNetRuntime => "dotnet",
48+
DotNetComponentKind.WindowsDesktopRuntime => "windowsdesktop",
49+
DotNetComponentKind.AspNetCoreRuntime => "aspnetcore",
4850
_ => throw new InvalidOperationException()
4951
};
5052

src/PostSharp.Engineering.BuildTools/Docker/DotNetComponentKind.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ namespace PostSharp.Engineering.BuildTools.Docker;
55
public enum DotNetComponentKind
66
{
77
Sdk,
8-
Runtime
8+
DotNetRuntime,
9+
AspNetCoreRuntime,
10+
WindowsDesktopRuntime
911
}

0 commit comments

Comments
 (0)