diff --git a/build/DependencyVersions.props b/build/DependencyVersions.props
index d4227b341..4da59168b 100644
--- a/build/DependencyVersions.props
+++ b/build/DependencyVersions.props
@@ -23,7 +23,7 @@
$(MicrosoftCodeAnalysisCSharpPackageVersion)$(MicrosoftCodeAnalysisCSharpPackageVersion)$(MicrosoftCodeAnalysisCSharpPackageVersion)
- 2.1.400-preview-63027-01
+ 2.1.400-preview-63109-04$(MicrosoftNETSdkPackageVersion)$(MicrosoftAspNetCoreAppPackageVersion)2.1.400-preview1-20180614-1774926
diff --git a/src/dotnet/commands/dotnet-publish/LocalizableStrings.resx b/src/dotnet/commands/dotnet-publish/LocalizableStrings.resx
index 59c01c3af..1537472b5 100644
--- a/src/dotnet/commands/dotnet-publish/LocalizableStrings.resx
+++ b/src/dotnet/commands/dotnet-publish/LocalizableStrings.resx
@@ -135,16 +135,9 @@
The path to a target manifest file that contains the list of packages to be excluded from the publish step.
-
- 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. 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.
-
-
- MODE
+
+ Publish the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine.
+The default is 'true' if a runtime identifier is specified.Do not build the project before publishing. Implies --no-restore.
@@ -153,16 +146,10 @@ The default is 'self-contained' when a target runtime is specified.
The target framework to publish for. The target framework has to be specified in the project file.
- The target runtime to publish the application for.
-The default is to publish a framework-dependent application without an executable.
+ The target runtime to publish for. This is used when creating a self-contained deployment.
+The default is to publish a framework-dependent application.The configuration to publish for. The default for most projects is 'Debug'.
-
- The '--mode' and '--self-contained' options cannot be used together. Specify only one of the options.
-
-
- The specified publish mode '{0}' is not supported.
-
\ No newline at end of file
diff --git a/src/dotnet/commands/dotnet-publish/Program.cs b/src/dotnet/commands/dotnet-publish/Program.cs
index 631416b82..ed8f3260c 100644
--- a/src/dotnet/commands/dotnet-publish/Program.cs
+++ b/src/dotnet/commands/dotnet-publish/Program.cs
@@ -39,37 +39,6 @@ namespace Microsoft.DotNet.Tools.Publish
var appliedPublishOption = result["dotnet"]["publish"];
- if (appliedPublishOption.HasOption("mode") && appliedPublishOption.HasOption("self-contained"))
- {
- throw new GracefulException(LocalizableStrings.PublishModeAndSelfContainedOptionsConflict);
- }
-
- var mode = appliedPublishOption.ValueOrDefault("mode");
- switch (mode)
- {
- case null:
- break;
-
- case PublishCommandParser.SelfContainedMode:
- msbuildArgs.Add("-p:SelfContained=true");
- break;
-
- case PublishCommandParser.FxDependentMode:
- msbuildArgs.Add("-p:SelfContained=false");
- break;
-
- case PublishCommandParser.FxDependentNoExeMode:
- msbuildArgs.Add("-p:SelfContained=false");
- msbuildArgs.Add("-p:UseAppHost=false");
- break;
-
- default:
- throw new GracefulException(
- string.Format(
- LocalizableStrings.UnsupportedPublishMode,
- mode));
- }
-
msbuildArgs.AddRange(appliedPublishOption.OptionValuesToBeForwarded());
msbuildArgs.AddRange(appliedPublishOption.Arguments);
diff --git a/src/dotnet/commands/dotnet-publish/PublishCommandParser.cs b/src/dotnet/commands/dotnet-publish/PublishCommandParser.cs
index 96519680f..19ee3ec12 100644
--- a/src/dotnet/commands/dotnet-publish/PublishCommandParser.cs
+++ b/src/dotnet/commands/dotnet-publish/PublishCommandParser.cs
@@ -10,10 +10,6 @@ namespace Microsoft.DotNet.Cli
{
internal static class PublishCommandParser
{
- public const string SelfContainedMode = "self-contained";
- public const string FxDependentMode = "fx-dependent";
- public const string FxDependentNoExeMode = "fx-dependent-no-exe";
-
public static Command Publish() =>
CreateWithRestoreOptions.Command(
"publish",
@@ -44,7 +40,7 @@ namespace Microsoft.DotNet.Cli
Accept.NoArguments().ForwardAs("-property:NoBuild=true")),
Create.Option(
"--self-contained",
- "", // Hidden option for backwards-compatibility (now '--mode self-contained').
+ LocalizableStrings.SelfContainedOptionDescription,
Accept.ZeroOrOneArgument()
.WithSuggestionsFrom("true", "false")
.ForwardAsSingle(o =>
@@ -52,14 +48,6 @@ namespace Microsoft.DotNet.Cli
string value = o.Arguments.Any() ? o.Arguments.Single() : "true";
return $"-property:SelfContained={value}";
})),
- Create.Option(
- "--mode",
- LocalizableStrings.ModeOptionDescription,
- Accept.AnyOneOf(
- SelfContainedMode,
- FxDependentMode,
- FxDependentNoExeMode)
- .With(name: LocalizableStrings.ModeOptionName)),
CommonOptions.NoRestoreOption(),
CommonOptions.VerbosityOption());
}
diff --git a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.cs.xlf b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.cs.xlf
index 65cdf77c0..99f4af0de 100644
--- a/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.cs.xlf
+++ b/src/dotnet/commands/dotnet-publish/xlf/LocalizableStrings.cs.xlf
@@ -37,16 +37,22 @@
Cesta k cílovému souboru manifestu obsahujícímu seznam balíčků, které se mají vyloučit z kroku publikování
+
+ Publish the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine.
+The default is 'true' if a runtime identifier is specified.
+ Publikuje spolu s aplikací modul runtime .NET Core, aby se tento modul nemusel instalovat na cílový počítač. Standardně se nastaví na True, pokud je zadaný identifikátor modulu runtime.
+
+ Do not build the project before publishing. Implies --no-restore.Nesestavujte projekt, dokud ho nepublikujete. Implikuje možnost --no-restore.
- The target runtime to publish the application for.
-The default is to publish a framework-dependent application without an executable.
- The target runtime to publish the application for.
-The default is to publish a framework-dependent application without an executable.
+ The target runtime to publish for. This is used when creating a self-contained deployment.
+The default is to publish a framework-dependent application.
+ The target runtime to publish for. This is used when creating a self-contained deployment.
+The default is to publish a framework-dependent application.
@@ -54,36 +60,6 @@ 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 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. 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. 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.
-
-
-
- MODE
- MODE
-
-
-
- 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.
-
-
-
- The specified publish mode '{0}' is not supported.
- The specified publish mode '{0}' is not supported.
-
-