diff --git a/src/dotnet/commands/dotnet-publish/LocalizableStrings.resx b/src/dotnet/commands/dotnet-publish/LocalizableStrings.resx
index 6a11341d8..59c01c3af 100644
--- a/src/dotnet/commands/dotnet-publish/LocalizableStrings.resx
+++ b/src/dotnet/commands/dotnet-publish/LocalizableStrings.resx
@@ -138,7 +138,7 @@
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -160,7 +160,7 @@ The default is to publish a framework-dependent application without an executabl
The configuration to publish for. The default for most projects is 'Debug'.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.The specified publish mode '{0}' is not supported.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.cs.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.cs.xlf
index d8802bc57..65cdf77c0 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.cs.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.cs.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.de.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.de.xlf
index e26d57f71..54fe79e46 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.de.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.de.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.es.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.es.xlf
index baa3744c3..d71ab145b 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.es.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.es.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.fr.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.fr.xlf
index 73ab78be8..dbc2c0835 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.fr.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.fr.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.it.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.it.xlf
index fd9e38f7a..d6b3ca3ca 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.it.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.it.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ja.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ja.xlf
index 89904c476..36949f48d 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ja.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ja.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ko.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ko.xlf
index 1e879682f..b5781e2e6 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ko.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ko.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.pl.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.pl.xlf
index 24d8a39b8..cb4c0c981 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.pl.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.pl.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.pt-BR.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.pt-BR.xlf
index 55df48df7..f7c91c76c 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.pt-BR.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.pt-BR.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ru.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ru.xlf
index 084aad81c..2b269e4ec 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ru.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.ru.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.tr.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.tr.xlf
index daa82317b..d39339db9 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.tr.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.tr.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.zh-Hans.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.zh-Hans.xlf
index 0a3631a91..277fcd58e 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.zh-Hans.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.zh-Hans.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.zh-Hant.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.zh-Hant.xlf
index f0e5d9bcb..a23a56120 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.zh-Hant.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.zh-Hant.xlf
@@ -57,13 +57,13 @@ The default is to publish a framework-dependent application without an executabl
The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.The mode to use when publishing the application.
The 'self-contained' mode publishes the application with the .NET Core runtime.
-The 'fx-dependent' mode publishes the application as framework-dependent with an executable if a target runtime is specified.
+The 'fx-dependent' mode publishes the application as framework-dependent. If a target runtime is specified, it is published with an executable.
The 'fx-dependent-no-exe' mode publishes the application as framework-dependent without an executable.
The default is 'fx-dependent-no-exe' when a target runtime is not specified.
The default is 'self-contained' when a target runtime is specified.
@@ -75,8 +75,8 @@ The default is 'self-contained' when a target runtime is specified.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
- The '--mode' and '--self-contained' options conflict. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
+ The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
diff --git a/test/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs b/test/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs
index 9aa9ad4dc..b9da56f11 100644
--- a/test/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs
+++ b/test/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs
@@ -134,10 +134,14 @@ namespace Microsoft.DotNet.Cli.Publish.Tests
var outputProgram = Path.Combine(outputDirectory.FullName, $"{testAppName}{Constants.ExeSuffix}");
- new TestCommand(outputProgram)
- .ExecuteWithCapturedOutput()
- .Should().Pass()
- .And.HaveStdOutContaining("Hello World");
+ var command = new TestCommand(outputProgram);
+ command.Environment["DOTNET_ROOT"]= new RepoDirectoriesProvider().DotnetRoot;
+
+ command.ExecuteWithCapturedOutput()
+ .Should()
+ .Pass()
+ .And
+ .HaveStdOutContaining("Hello World");
}
[Fact]
@@ -186,7 +190,7 @@ namespace Microsoft.DotNet.Cli.Publish.Tests
private DirectoryInfo PublishApp(string testAppName, string rid, string mode, string args = null)
{
var testInstance = TestAssets.Get(testAppName)
- .CreateInstance($"PublishApp_{rid ?? "none"}_{mode ?? "none"}")
+ .CreateInstance($"PublishApp_{rid ?? "none"}_{mode ?? "none"}_{args ?? "none"}")
.WithSourceFiles()
.WithRestoreFiles();