Skip to content

Commit 4d4911c

Browse files
committed
Add '--ucr' option to publish arguments
It tells the SDK to use the Runtime Identifier (RID) of the machine where the command is running as the target runtime for the publish, so we can avoid having to specify the target RID.
1 parent 1da1b8d commit 4d4911c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/go/ProcessRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static Task<int> PublishAsync(string dotnet, string cs, string config, st
1212
["CustomAfterMicrosoftCSharpTargets"] = targets,
1313
};
1414

15-
var arguments = new List<string> { "publish", cs };
15+
var arguments = new List<string> { "publish", "--ucr", cs };
1616
if (publishArgs is not null)
1717
arguments.AddRange(publishArgs);
1818

0 commit comments

Comments
 (0)