Skip to content

Commit 18ccb52

Browse files
committed
Pass RID through ToolTask implementation
1 parent bbf039a commit 18ccb52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Microsoft.NET.Build.Containers/CreateNewImageToolTask.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ protected override string GenerateCommandLineCommands()
8484
(EntrypointArgs.Length > 0 ? " --entrypointargs " + String.Join(" ", EntrypointArgs.Select((i) => i.ItemSpec)) : "") +
8585
(ExposedPorts.Length > 0 ? " --ports " + String.Join(" ", ExposedPorts.Select((i) => i.ItemSpec + "/" + i.GetMetadata("Type"))) : "") +
8686
(ContainerEnvironmentVariables.Length > 0 ? " --environmentvariables " + String.Join(" ", ContainerEnvironmentVariables.Select((i) => i.ItemSpec + "=" + Quote(i.GetMetadata("Value")))) : "") +
87+
$" --rid {Quote(ContainerRuntimeIdentifier)}" +
8788
$" --ridgraphpath {Quote(RuntimeIdentifierGraphPath)}";
8889
}
8990

0 commit comments

Comments
 (0)