Merge pull request #8996 from nguerrera/publish-no-build
Implement `dotnet publish --no-build`
This commit is contained in:
commit
4956bfea8c
61 changed files with 266 additions and 87 deletions
|
@ -14,7 +14,7 @@
|
||||||
<MicrosoftNETCoreCompilersPackageVersion>$(MicrosoftCodeAnalysisCSharpPackageVersion)</MicrosoftNETCoreCompilersPackageVersion>
|
<MicrosoftNETCoreCompilersPackageVersion>$(MicrosoftCodeAnalysisCSharpPackageVersion)</MicrosoftNETCoreCompilersPackageVersion>
|
||||||
<MicrosoftCodeAnalysisBuildTasksPackageVersion>$(MicrosoftCodeAnalysisCSharpPackageVersion)</MicrosoftCodeAnalysisBuildTasksPackageVersion>
|
<MicrosoftCodeAnalysisBuildTasksPackageVersion>$(MicrosoftCodeAnalysisCSharpPackageVersion)</MicrosoftCodeAnalysisBuildTasksPackageVersion>
|
||||||
<MicrosoftNetCompilersNetcorePackageVersion>$(MicrosoftCodeAnalysisCSharpPackageVersion)</MicrosoftNetCompilersNetcorePackageVersion>
|
<MicrosoftNetCompilersNetcorePackageVersion>$(MicrosoftCodeAnalysisCSharpPackageVersion)</MicrosoftNetCompilersNetcorePackageVersion>
|
||||||
<MicrosoftNETSdkPackageVersion>2.1.300-preview2-62716-01</MicrosoftNETSdkPackageVersion>
|
<MicrosoftNETSdkPackageVersion>2.1.300-preview3-62804-06</MicrosoftNETSdkPackageVersion>
|
||||||
<MicrosoftNETBuildExtensionsPackageVersion>$(MicrosoftNETSdkPackageVersion)</MicrosoftNETBuildExtensionsPackageVersion>
|
<MicrosoftNETBuildExtensionsPackageVersion>$(MicrosoftNETSdkPackageVersion)</MicrosoftNETBuildExtensionsPackageVersion>
|
||||||
<MicrosoftNETSdkRazorPackageVersion>$(MicrosoftAspNetCoreAppPackageVersion)</MicrosoftNETSdkRazorPackageVersion>
|
<MicrosoftNETSdkRazorPackageVersion>$(MicrosoftAspNetCoreAppPackageVersion)</MicrosoftNETSdkRazorPackageVersion>
|
||||||
<MicrosoftNETSdkWebPackageVersion>2.1.300-preview2-20180306-1448279</MicrosoftNETSdkWebPackageVersion>
|
<MicrosoftNETSdkWebPackageVersion>2.1.300-preview2-20180306-1448279</MicrosoftNETSdkWebPackageVersion>
|
||||||
|
|
|
@ -130,7 +130,7 @@
|
||||||
<value>Directory in which to place built packages.</value>
|
<value>Directory in which to place built packages.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="CmdNoBuildOptionDescription" xml:space="preserve">
|
<data name="CmdNoBuildOptionDescription" xml:space="preserve">
|
||||||
<value>Do not build project before packing. Implies --no-restore.</value>
|
<value>Do not build the project before packing. Implies --no-restore.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="CmdIncludeSymbolsDescription" xml:space="preserve">
|
<data name="CmdIncludeSymbolsDescription" xml:space="preserve">
|
||||||
<value>Include packages with symbols in addition to regular packages in output directory.</value>
|
<value>Include packages with symbols in addition to regular packages in output directory.</value>
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">Nesestavujte projekt, dokud ho nezabalíte. Implikuje možnost --no-restore.</target>
|
<target state="needs-review-translation">Nesestavujte projekt, dokud ho nezabalíte. Implikuje možnost --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">Erstellt das Projekt nicht vor dem Packen. Impliziert "--no-restore".</target>
|
<target state="needs-review-translation">Erstellt das Projekt nicht vor dem Packen. Impliziert "--no-restore".</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">No compile el proyecto antes de empaquetarlo. Implica la no restauración.</target>
|
<target state="needs-review-translation">No compile el proyecto antes de empaquetarlo. Implica la no restauración.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">Ne pas générer le projet avant la compression. Implique --no-restore.</target>
|
<target state="needs-review-translation">Ne pas générer le projet avant la compression. Implique --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">Non compila il progetto prima della creazione del pacchetto. Implica --no-restore.</target>
|
<target state="needs-review-translation">Non compila il progetto prima della creazione del pacchetto. Implica --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">パックする前にプロジェクトをビルドしないでください。 暗示 --復元なし。</target>
|
<target state="needs-review-translation">パックする前にプロジェクトをビルドしないでください。 暗示 --復元なし。</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">압축하기 전에 프로젝트를 빌드하지 않습니다. 복원 없음을 의미합니다.</target>
|
<target state="needs-review-translation">압축하기 전에 프로젝트를 빌드하지 않습니다. 복원 없음을 의미합니다.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">Nie kompiluj projektu przed pakowaniem. Powoduje przyjęcie, że podano parametr --no-restore.</target>
|
<target state="needs-review-translation">Nie kompiluj projektu przed pakowaniem. Powoduje przyjęcie, że podano parametr --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">Não compile o projeto antes de empacotar. Implica em --no-restore.</target>
|
<target state="needs-review-translation">Não compile o projeto antes de empacotar. Implica em --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">Не собирать проекты перед упаковкой. Подразумевает --no-restore.</target>
|
<target state="needs-review-translation">Не собирать проекты перед упаковкой. Подразумевает --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">Paketlemeden önce projeyi derlemeyin. --no-restore anlamına gelir.</target>
|
<target state="needs-review-translation">Paketlemeden önce projeyi derlemeyin. --no-restore anlamına gelir.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">打包之前不要生成项目。Implies --no-restore.</target>
|
<target state="needs-review-translation">打包之前不要生成项目。Implies --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildOptionDescription">
|
<trans-unit id="CmdNoBuildOptionDescription">
|
||||||
<source>Do not build project before packing. Implies --no-restore.</source>
|
<source>Do not build the project before packing. Implies --no-restore.</source>
|
||||||
<target state="translated">請勿在封裝前建置專案。 這意味著 --沒有還原。</target>
|
<target state="needs-review-translation">請勿在封裝前建置專案。 這意味著 --沒有還原。</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdIncludeSymbolsDescription">
|
<trans-unit id="CmdIncludeSymbolsDescription">
|
||||||
|
|
|
@ -141,4 +141,7 @@
|
||||||
<data name="SelfContainedOptionDescription" xml:space="preserve">
|
<data name="SelfContainedOptionDescription" xml:space="preserve">
|
||||||
<value>Publish the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. Defaults to 'true' if a runtime identifier is specified.</value>
|
<value>Publish the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. Defaults to 'true' if a runtime identifier is specified.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="NoBuildOptionDescription" xml:space="preserve">
|
||||||
|
<value>Do not build the project before publishing. Implies --no-restore.</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -43,7 +43,8 @@ namespace Microsoft.DotNet.Tools.Publish
|
||||||
|
|
||||||
msbuildArgs.AddRange(appliedPublishOption.Arguments);
|
msbuildArgs.AddRange(appliedPublishOption.Arguments);
|
||||||
|
|
||||||
bool noRestore = appliedPublishOption.HasOption("--no-restore");
|
bool noRestore = appliedPublishOption.HasOption("--no-restore")
|
||||||
|
|| appliedPublishOption.HasOption("--no-build");
|
||||||
|
|
||||||
return new PublishCommand(
|
return new PublishCommand(
|
||||||
msbuildArgs,
|
msbuildArgs,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.DotNet.Cli.CommandLine;
|
using Microsoft.DotNet.Cli.CommandLine;
|
||||||
using Microsoft.DotNet.Tools;
|
using Microsoft.DotNet.Tools;
|
||||||
|
@ -33,6 +32,10 @@ namespace Microsoft.DotNet.Cli
|
||||||
Accept.OneOrMoreArguments()
|
Accept.OneOrMoreArguments()
|
||||||
.With(name: LocalizableStrings.ManifestOption)
|
.With(name: LocalizableStrings.ManifestOption)
|
||||||
.ForwardAsSingle(o => $"-property:TargetManifestFiles={string.Join("%3B", o.Arguments)}")),
|
.ForwardAsSingle(o => $"-property:TargetManifestFiles={string.Join("%3B", o.Arguments)}")),
|
||||||
|
Create.Option(
|
||||||
|
"--no-build",
|
||||||
|
LocalizableStrings.NoBuildOptionDescription,
|
||||||
|
Accept.NoArguments().ForwardAs("-property:NoBuild=true")),
|
||||||
Create.Option(
|
Create.Option(
|
||||||
"--self-contained",
|
"--self-contained",
|
||||||
LocalizableStrings.SelfContainedOptionDescription,
|
LocalizableStrings.SelfContainedOptionDescription,
|
||||||
|
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">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.</target>
|
<target state="translated">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.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">Veröffentlichen Sie die .NET Core-Runtime mit Ihrer Anwendung, damit die Runtime auf dem Zielcomputer nicht installiert werden muss. Der Standardwert ist "true", wenn ein Runtimebezeichner angegeben ist.</target>
|
<target state="translated">Veröffentlichen Sie die .NET Core-Runtime mit Ihrer Anwendung, damit die Runtime auf dem Zielcomputer nicht installiert werden muss. Der Standardwert ist "true", wenn ein Runtimebezeichner angegeben ist.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">Publica el tiempo de ejecución de .NET Core con su aplicación para que no sea necesario instalarlo en la máquina de destino. Si se especifica un identificador de tiempo de ejecución, se toma como predeterminado el valor "true".</target>
|
<target state="translated">Publica el tiempo de ejecución de .NET Core con su aplicación para que no sea necesario instalarlo en la máquina de destino. Si se especifica un identificador de tiempo de ejecución, se toma como predeterminado el valor "true".</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">Publiez le runtime .NET Core avec votre application pour éviter à l'utilisateur de l'installer sur la machine cible. La valeur par défaut est 'true' si un identificateur de runtime est spécifié.</target>
|
<target state="translated">Publiez le runtime .NET Core avec votre application pour éviter à l'utilisateur de l'installer sur la machine cible. La valeur par défaut est 'true' si un identificateur de runtime est spécifié.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">Pubblica il runtime di .NET Core con l'applicazione in modo che non sia necessario installarlo nel computer di destinazione. Se si specifica un identificatore di runtime, l'impostazione predefinita è 'true'.</target>
|
<target state="translated">Pubblica il runtime di .NET Core con l'applicazione in modo che non sia necessario installarlo nel computer di destinazione. Se si specifica un identificatore di runtime, l'impostazione predefinita è 'true'.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">ランタイムをターゲット マシンにインストールしなくてもよいよう、.NET Core ランタイムをアプリケーションと一緒に発行します。ランタイム ID が指定される場合、既定の 'true' になります。</target>
|
<target state="translated">ランタイムをターゲット マシンにインストールしなくてもよいよう、.NET Core ランタイムをアプリケーションと一緒に発行します。ランタイム ID が指定される場合、既定の 'true' になります。</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">런타임은 대상 컴퓨터에 설치할 필요가 없으므로 응용 프로그램과 함께 .NET Core 런타임을 게시합니다. 런타임 식별자가 지정된 경우 기본값은 'true'입니다.</target>
|
<target state="translated">런타임은 대상 컴퓨터에 설치할 필요가 없으므로 응용 프로그램과 함께 .NET Core 런타임을 게시합니다. 런타임 식별자가 지정된 경우 기본값은 'true'입니다.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">Opublikuj środowisko uruchomieniowe programu .NET Core z aplikacją, aby nie trzeba było go instalować na maszynie docelowej. Domyślnie jest ustawiona wartość „true” w przypadku określenia identyfikatora środowiska uruchomieniowego.</target>
|
<target state="translated">Opublikuj środowisko uruchomieniowe programu .NET Core z aplikacją, aby nie trzeba było go instalować na maszynie docelowej. Domyślnie jest ustawiona wartość „true” w przypadku określenia identyfikatora środowiska uruchomieniowego.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">Publique o tempo de execução .NET Core com seu aplicativo para que o tempo de execução não precise ser instalado no computador de destino. Assumirá 'true' como padrão se um identificador de tempo de execução for especificado.</target>
|
<target state="translated">Publique o tempo de execução .NET Core com seu aplicativo para que o tempo de execução não precise ser instalado no computador de destino. Assumirá 'true' como padrão se um identificador de tempo de execução for especificado.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">Опубликуйте среду выполнения .NET Core вместе с приложением, чтобы ее не нужно было устанавливать на целевом компьютере. Если идентификатор среды выполнения указан, значение по умолчанию — true.</target>
|
<target state="translated">Опубликуйте среду выполнения .NET Core вместе с приложением, чтобы ее не нужно было устанавливать на целевом компьютере. Если идентификатор среды выполнения указан, значение по умолчанию — true.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">Çalışma zamanının hedef makineye yüklenmesine gerek kalmaması için, .NET Core çalışma zamanını uygulamanızla birlikte yayımlayın. Bir çalışma zamanı tanımlayıcısı belirtilmişse, varsayılan olarak 'true' değerine ayarlanır.</target>
|
<target state="translated">Çalışma zamanının hedef makineye yüklenmesine gerek kalmaması için, .NET Core çalışma zamanını uygulamanızla birlikte yayımlayın. Bir çalışma zamanı tanımlayıcısı belirtilmişse, varsayılan olarak 'true' değerine ayarlanır.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">随附应用程序发布 .NET Core 运行时,免除在目标计算机上安装运行时的需求。如果指定了运行时标识符,则默认为 “true”。</target>
|
<target state="translated">随附应用程序发布 .NET Core 运行时,免除在目标计算机上安装运行时的需求。如果指定了运行时标识符,则默认为 “true”。</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -42,6 +42,11 @@
|
||||||
<target state="translated">隨著應用程式一併發行 .NET Core 執行階段,因此不需要在目標電腦上安裝此執行階段。若指定了執行階段識別碼,則預設為 'true'。</target>
|
<target state="translated">隨著應用程式一併發行 .NET Core 執行階段,因此不需要在目標電腦上安裝此執行階段。若指定了執行階段識別碼,則預設為 'true'。</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="NoBuildOptionDescription">
|
||||||
|
<source>Do not build the project before publishing. Implies --no-restore.</source>
|
||||||
|
<target state="new">Do not build the project before publishing. Implies --no-restore.</target>
|
||||||
|
<note />
|
||||||
|
</trans-unit>
|
||||||
</body>
|
</body>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
|
@ -124,7 +124,7 @@
|
||||||
<value>Command used to run .NET apps</value>
|
<value>Command used to run .NET apps</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="CommandOptionNoBuildDescription" xml:space="preserve">
|
<data name="CommandOptionNoBuildDescription" xml:space="preserve">
|
||||||
<value>Do not build project before running. Implies --no-restore.</value>
|
<value>Do not build the project before running. Implies --no-restore.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="CommandOptionFrameworkDescription" xml:space="preserve">
|
<data name="CommandOptionFrameworkDescription" xml:space="preserve">
|
||||||
<value>Build and run the app using the specified framework. The framework has to be specified in the project file. </value>
|
<value>Build and run the app using the specified framework. The framework has to be specified in the project file. </value>
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">Nesestavujte projekt, dokud ho nespustíte. Implikuje možnost --no-restore.</target>
|
<target state="needs-review-translation">Nesestavujte projekt, dokud ho nespustíte. Implikuje možnost --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">Erstellt das Projekt nicht vor der Ausführung. Impliziert "--no-restore".</target>
|
<target state="needs-review-translation">Erstellt das Projekt nicht vor der Ausführung. Impliziert "--no-restore".</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">No compile el proyecto antes de ejecutarlo. Implica la no restauración.</target>
|
<target state="needs-review-translation">No compile el proyecto antes de ejecutarlo. Implica la no restauración.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">Ne pas générer le projet avant l’exécution. Implique --no-restore.</target>
|
<target state="needs-review-translation">Ne pas générer le projet avant l’exécution. Implique --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">Non compila il progetto prima dell'esecuzione. Implica --no-restore.</target>
|
<target state="needs-review-translation">Non compila il progetto prima dell'esecuzione. Implica --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">実行する前にプロジェクトをビルドしないでください。 暗示 --復元なし。</target>
|
<target state="needs-review-translation">実行する前にプロジェクトをビルドしないでください。 暗示 --復元なし。</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">실행하기 전에 프로젝트를 빌드하지 않습니다. 복원 없음을 의미합니다.</target>
|
<target state="needs-review-translation">실행하기 전에 프로젝트를 빌드하지 않습니다. 복원 없음을 의미합니다.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">Nie kompiluj projektu przed uruchomieniem. Powoduje przyjęcie, że podano parametr --no-restore.</target>
|
<target state="needs-review-translation">Nie kompiluj projektu przed uruchomieniem. Powoduje przyjęcie, że podano parametr --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">Não compile o projeto antes de executar. Implica em --no-restore.</target>
|
<target state="needs-review-translation">Não compile o projeto antes de executar. Implica em --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">Не собирать проекты перед запуском. Подразумевает --no-restore.</target>
|
<target state="needs-review-translation">Не собирать проекты перед запуском. Подразумевает --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">Çalıştırmadan önce projeyi derlemeyin. --no-restore anlamına gelir.</target>
|
<target state="needs-review-translation">Çalıştırmadan önce projeyi derlemeyin. --no-restore anlamına gelir.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">运行之前不要生成项目。Implies --no-restore.</target>
|
<target state="needs-review-translation">运行之前不要生成项目。Implies --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CommandOptionNoBuildDescription">
|
<trans-unit id="CommandOptionNoBuildDescription">
|
||||||
<source>Do not build project before running. Implies --no-restore.</source>
|
<source>Do not build the project before running. Implies --no-restore.</source>
|
||||||
<target state="translated">請勿在執行前建置專案。 這意味著 --沒有還原。</target>
|
<target state="needs-review-translation">請勿在執行前建置專案。 這意味著 --沒有還原。</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
<trans-unit id="RunCommandExceptionUnableToRunSpecifyFramework">
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
Logs are written to the provided file.</value>
|
Logs are written to the provided file.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="CmdNoBuildDescription" xml:space="preserve">
|
<data name="CmdNoBuildDescription" xml:space="preserve">
|
||||||
<value>Do not build project before testing. Implies --no-restore.</value>
|
<value>Do not build the project before testing. Implies --no-restore.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="CmdResultsDirectoryDescription" xml:space="preserve">
|
<data name="CmdResultsDirectoryDescription" xml:space="preserve">
|
||||||
<value>The directory where the test results are going to be placed. The specified directory will be created if it does not exist.
|
<value>The directory where the test results are going to be placed. The specified directory will be created if it does not exist.
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">Nesestavujte projekt, dokud ho neotestujete. Implikuje možnost --no-restore.</target>
|
<target state="needs-review-translation">Nesestavujte projekt, dokud ho neotestujete. Implikuje možnost --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">Erstellt das Projekt nicht vor dem Testen. Impliziert "--no-restore".</target>
|
<target state="needs-review-translation">Erstellt das Projekt nicht vor dem Testen. Impliziert "--no-restore".</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">No compile el proyecto antes de probarlo. Implica la no restauración.</target>
|
<target state="needs-review-translation">No compile el proyecto antes de probarlo. Implica la no restauración.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">Ne pas générer le projet avant le test. Implique --no-restore.</target>
|
<target state="needs-review-translation">Ne pas générer le projet avant le test. Implique --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">Non compila il progetto prima del test. Implica --no-restore.</target>
|
<target state="needs-review-translation">Non compila il progetto prima del test. Implica --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">テストする前にプロジェクトをビルドしないでください。 暗示 --復元なし。</target>
|
<target state="needs-review-translation">テストする前にプロジェクトをビルドしないでください。 暗示 --復元なし。</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">테스트하기 전에 프로젝트를 빌드하지 않습니다. 복원 없음을 의미합니다.</target>
|
<target state="needs-review-translation">테스트하기 전에 프로젝트를 빌드하지 않습니다. 복원 없음을 의미합니다.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">Nie kompiluj projektu przed testowaniem. Powoduje przyjęcie, że podano parametr --no-restore.</target>
|
<target state="needs-review-translation">Nie kompiluj projektu przed testowaniem. Powoduje przyjęcie, że podano parametr --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">Não compile o projeto antes de testar. Implica em --no-restore.</target>
|
<target state="needs-review-translation">Não compile o projeto antes de testar. Implica em --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">Не собирать проекты перед тестированием. Подразумевает --no-restore.</target>
|
<target state="needs-review-translation">Не собирать проекты перед тестированием. Подразумевает --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">Test etmeden önce projeyi derlemeyin. --no-restore anlamına gelir.</target>
|
<target state="needs-review-translation">Test etmeden önce projeyi derlemeyin. --no-restore anlamına gelir.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">测试之前不要生成项目。Implies --no-restore.</target>
|
<target state="needs-review-translation">测试之前不要生成项目。Implies --no-restore.</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdNoBuildDescription">
|
<trans-unit id="CmdNoBuildDescription">
|
||||||
<source>Do not build project before testing. Implies --no-restore.</source>
|
<source>Do not build the project before testing. Implies --no-restore.</source>
|
||||||
<target state="translated">請勿在測試前建置專案。 這意味著 --沒有還原。</target>
|
<target state="needs-review-translation">請勿在測試前建置專案。 這意味著 --沒有還原。</target>
|
||||||
<note />
|
<note />
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="CmdTestAdapterPath">
|
<trans-unit id="CmdTestAdapterPath">
|
||||||
|
|
|
@ -72,6 +72,23 @@ namespace Microsoft.DotNet.Cli.MSBuild.Tests
|
||||||
.Be($"{ExpectedPrefix} -nologo -target:Publish{expectedAdditionalArgs}");
|
.Be($"{ExpectedPrefix} -nologo -target:Publish{expectedAdditionalArgs}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void MsbuildInvocationIsCorrectForNoBuild()
|
||||||
|
{
|
||||||
|
var msbuildPath = "<msbuildpath>";
|
||||||
|
var command = PublishCommand.FromArgs(new[] { "--no-build" }, msbuildPath);
|
||||||
|
|
||||||
|
command.SeparateRestoreCommand
|
||||||
|
.Should()
|
||||||
|
.BeNull();
|
||||||
|
|
||||||
|
// NOTE --no-build implies no-restore hence no -restore argument to msbuild below.
|
||||||
|
command.GetProcessStartInfo()
|
||||||
|
.Arguments
|
||||||
|
.Should()
|
||||||
|
.Be($"{ExpectedPrefix} -target:Publish -property:NoBuild=true");
|
||||||
|
}
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
[InlineData(new string[] { }, "")]
|
[InlineData(new string[] { }, "")]
|
||||||
[InlineData(new string[] { "-f", "<tfm>" }, "-property:TargetFramework=<tfm>")]
|
[InlineData(new string[] { "-f", "<tfm>" }, "-property:TargetFramework=<tfm>")]
|
||||||
|
@ -86,6 +103,7 @@ namespace Microsoft.DotNet.Cli.MSBuild.Tests
|
||||||
[InlineData(new string[] { "--manifest", "<manifestfiles>" }, "-property:TargetManifestFiles=<manifestfiles>")]
|
[InlineData(new string[] { "--manifest", "<manifestfiles>" }, "-property:TargetManifestFiles=<manifestfiles>")]
|
||||||
[InlineData(new string[] { "-v", "minimal" }, "-verbosity:minimal")]
|
[InlineData(new string[] { "-v", "minimal" }, "-verbosity:minimal")]
|
||||||
[InlineData(new string[] { "--verbosity", "minimal" }, "-verbosity:minimal")]
|
[InlineData(new string[] { "--verbosity", "minimal" }, "-verbosity:minimal")]
|
||||||
|
[InlineData(new string[] { "--no-build" }, "-property:NoBuild=true")]
|
||||||
public void OptionForwardingIsCorrect(string[] args, string expectedAdditionalArgs)
|
public void OptionForwardingIsCorrect(string[] args, string expectedAdditionalArgs)
|
||||||
{
|
{
|
||||||
var expectedArgs = expectedAdditionalArgs.Split(' ', StringSplitOptions.RemoveEmptyEntries);
|
var expectedArgs = expectedAdditionalArgs.Split(' ', StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
|
|
@ -235,5 +235,94 @@ namespace Microsoft.DotNet.Cli.Publish.Tests
|
||||||
.Should().Pass()
|
.Should().Pass()
|
||||||
.And.HaveStdOutContaining("Hello World");
|
.And.HaveStdOutContaining("Hello World");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void ItFailsToPublishWithNoBuildIfNotPreviouslyBuilt()
|
||||||
|
{
|
||||||
|
var rootPath = TestAssets.CreateTestDirectory().FullName;
|
||||||
|
|
||||||
|
string newArgs = $"console -o \"{rootPath}\"";
|
||||||
|
new NewCommandShim() // note implicit restore here
|
||||||
|
.WithWorkingDirectory(rootPath)
|
||||||
|
.Execute(newArgs)
|
||||||
|
.Should()
|
||||||
|
.Pass();
|
||||||
|
|
||||||
|
new PublishCommand()
|
||||||
|
.WithWorkingDirectory(rootPath)
|
||||||
|
.ExecuteWithCapturedOutput("--no-build")
|
||||||
|
.Should()
|
||||||
|
.Fail()
|
||||||
|
.And.HaveStdOutContaining("MSB3030"); // "Could not copy ___ because it was not found."
|
||||||
|
}
|
||||||
|
|
||||||
|
[Theory]
|
||||||
|
[InlineData(false)]
|
||||||
|
[InlineData(true)]
|
||||||
|
public void ItPublishesSuccessfullyWithNoBuildIfPreviouslyBuilt(bool selfContained)
|
||||||
|
{
|
||||||
|
var rootPath = TestAssets.CreateTestDirectory(identifier: selfContained ? "_sc" : "").FullName;
|
||||||
|
var rootDir = new DirectoryInfo(rootPath);
|
||||||
|
|
||||||
|
string newArgs = $"console -o \"{rootPath}\" --no-restore";
|
||||||
|
new NewCommandShim()
|
||||||
|
.WithWorkingDirectory(rootPath)
|
||||||
|
.Execute(newArgs)
|
||||||
|
.Should()
|
||||||
|
.Pass();
|
||||||
|
|
||||||
|
var rid = selfContained ? DotnetLegacyRuntimeIdentifiers.InferLegacyRestoreRuntimeIdentifier() : "";
|
||||||
|
var ridArg = selfContained ? $"-r {rid}" : "";
|
||||||
|
|
||||||
|
new BuildCommand()
|
||||||
|
.WithWorkingDirectory(rootPath)
|
||||||
|
.ExecuteWithCapturedOutput(ridArg)
|
||||||
|
.Should()
|
||||||
|
.Pass();
|
||||||
|
|
||||||
|
new PublishCommand()
|
||||||
|
.WithWorkingDirectory(rootPath)
|
||||||
|
.ExecuteWithCapturedOutput($"{ridArg} --no-build")
|
||||||
|
.Should()
|
||||||
|
.Pass();
|
||||||
|
|
||||||
|
var configuration = Environment.GetEnvironmentVariable("CONFIGURATION") ?? "Debug";
|
||||||
|
|
||||||
|
var outputProgram = rootDir
|
||||||
|
.GetDirectory("bin", configuration, "netcoreapp2.1", rid, "publish", $"{rootDir.Name}.dll")
|
||||||
|
.FullName;
|
||||||
|
|
||||||
|
new TestCommand(outputProgram)
|
||||||
|
.ExecuteWithCapturedOutput()
|
||||||
|
.Should()
|
||||||
|
.Pass()
|
||||||
|
.And.HaveStdOutContaining("Hello World");
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void ItFailsToPublishWithNoBuildIfPreviouslyBuiltWithoutRid()
|
||||||
|
{
|
||||||
|
var rootPath = TestAssets.CreateTestDirectory().FullName;
|
||||||
|
var rootDir = new DirectoryInfo(rootPath);
|
||||||
|
|
||||||
|
string newArgs = $"console -o \"{rootPath}\" --no-restore";
|
||||||
|
new NewCommandShim()
|
||||||
|
.WithWorkingDirectory(rootPath)
|
||||||
|
.Execute(newArgs)
|
||||||
|
.Should()
|
||||||
|
.Pass();
|
||||||
|
|
||||||
|
new BuildCommand()
|
||||||
|
.WithWorkingDirectory(rootPath)
|
||||||
|
.ExecuteWithCapturedOutput()
|
||||||
|
.Should()
|
||||||
|
.Pass();
|
||||||
|
|
||||||
|
new PublishCommand()
|
||||||
|
.WithWorkingDirectory(rootPath)
|
||||||
|
.ExecuteWithCapturedOutput("-r win-x64 --no-build")
|
||||||
|
.Should()
|
||||||
|
.Fail();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue