diff --git a/src/Assets/TestProjects/BlazorHosted/blazorhosted/blazorhosted.csproj b/src/Assets/TestProjects/BlazorHosted/blazorhosted/blazorhosted.csproj
index 5099648fae48..e51ae38e412d 100644
--- a/src/Assets/TestProjects/BlazorHosted/blazorhosted/blazorhosted.csproj
+++ b/src/Assets/TestProjects/BlazorHosted/blazorhosted/blazorhosted.csproj
@@ -8,6 +8,11 @@
+
+
+ true
+
+
diff --git a/src/Assets/TestProjects/BlazorHosted/blazorwasm/blazorwasm.csproj b/src/Assets/TestProjects/BlazorHosted/blazorwasm/blazorwasm.csproj
index 4f8114d59e1f..63d4c8a12b37 100644
--- a/src/Assets/TestProjects/BlazorHosted/blazorwasm/blazorwasm.csproj
+++ b/src/Assets/TestProjects/BlazorHosted/blazorwasm/blazorwasm.csproj
@@ -37,4 +37,9 @@
<_BlazorBrotliCompressionLevel>NoCompression
+
+
+ true
+
+
diff --git a/src/Assets/TestProjects/BlazorHostedRID/blazorhosted/blazorhosted-rid.csproj b/src/Assets/TestProjects/BlazorHostedRID/blazorhosted/blazorhosted-rid.csproj
index ec4b53947305..6c4cb4a0e814 100644
--- a/src/Assets/TestProjects/BlazorHostedRID/blazorhosted/blazorhosted-rid.csproj
+++ b/src/Assets/TestProjects/BlazorHostedRID/blazorhosted/blazorhosted-rid.csproj
@@ -14,6 +14,11 @@
+
+
+ true
+
+
diff --git a/src/Assets/TestProjects/BlazorWasmMinimal/blazorwasm-minimal.csproj b/src/Assets/TestProjects/BlazorWasmMinimal/blazorwasm-minimal.csproj
index 4cbb5bd7234f..a3d5164664ef 100644
--- a/src/Assets/TestProjects/BlazorWasmMinimal/blazorwasm-minimal.csproj
+++ b/src/Assets/TestProjects/BlazorWasmMinimal/blazorwasm-minimal.csproj
@@ -10,6 +10,11 @@
+
+
+ true
+
+
diff --git a/src/Assets/TestProjects/BlazorWasmWithLibrary/blazorwasm/blazorwasm.csproj b/src/Assets/TestProjects/BlazorWasmWithLibrary/blazorwasm/blazorwasm.csproj
index 49b8c0e4c310..dc34774033dc 100644
--- a/src/Assets/TestProjects/BlazorWasmWithLibrary/blazorwasm/blazorwasm.csproj
+++ b/src/Assets/TestProjects/BlazorWasmWithLibrary/blazorwasm/blazorwasm.csproj
@@ -36,4 +36,8 @@
<_BlazorBrotliCompressionLevel>NoCompression
+
+
+ true
+
diff --git a/src/Assets/TestProjects/TrimmedAppWithReferences/App/App.csproj b/src/Assets/TestProjects/TrimmedAppWithReferences/App/App.csproj
index cc105f746d4f..41c2eaa9f450 100644
--- a/src/Assets/TestProjects/TrimmedAppWithReferences/App/App.csproj
+++ b/src/Assets/TestProjects/TrimmedAppWithReferences/App/App.csproj
@@ -5,6 +5,7 @@
$(CurrentTargetFramework)truefalse
+ True
diff --git a/src/Tasks/Common/Resources/Strings.resx b/src/Tasks/Common/Resources/Strings.resx
index 76c8d1f6541e..abf1d0db2a50 100644
--- a/src/Tasks/Common/Resources/Strings.resx
+++ b/src/Tasks/Common/Resources/Strings.resx
@@ -904,5 +904,8 @@ You may need to build the project on another operating system or architecture, o
NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.{StrBegin="NETSDK1200: "}
-
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+
diff --git a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf
index 471ebf984601..0760472cb169 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: Zadejte parametr RuntimeIdentifier.{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: Soubor seznamu modulu runtime {0} nebyl nalezen. Tady můžete tuto chybu nahlásit týmu .NET: https://aka.ms/dotnet-sdk-issue.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.de.xlf b/src/Tasks/Common/Resources/xlf/Strings.de.xlf
index 923b1b1577b9..5216ecf94353 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.de.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.de.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: Geben Sie einen RuntimeIdentifier an.{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: Die Runtimelistendatei "{0}" wurde nicht gefunden. Melden Sie diesen Fehler hier dem .NET-Team: https://aka.ms/dotnet-sdk-issue.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.es.xlf b/src/Tasks/Common/Resources/xlf/Strings.es.xlf
index cc89be9c8d9f..fd3c6f0c28e2 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.es.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.es.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: Especificar un valor para RuntimeIdentifier{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: No se encontró el archivo de lista del entorno de ejecución "{0}". Notifique este error al equipo de .NET aquí: https://aka.ms/dotnet-sdk-issue.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf
index d9bc777746b7..af5f432fcfd0 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: Spécifiez un RuntimeIdentifier{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: Le fichier de liste de runtime '{0}' est introuvable. Signalez cette erreur à l'équipe .NET ici : https://aka.ms/dotnet-sdk-issue.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.it.xlf b/src/Tasks/Common/Resources/xlf/Strings.it.xlf
index 689c3d60868f..4e6cc7e78c4a 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.it.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.it.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: specificare un elemento RuntimeIdentifier{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: il file di elenco di runtime '{0}' non è stato trovato. Segnalare questo errore al team di .NET all'indirizzo: https://aka.ms/dotnet-sdk-issue.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf
index 8d759e61f5a1..4e8985251af8 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf
@@ -4,52 +4,52 @@
NETSDK1076: AddResource can only be used with integer resource types.
- NETSDK1076: AddResource は、整数のリソースの種類でのみ使用できます。
+ NETSDK1076: AddResource can only be used with integer resource types.{StrBegin="NETSDK1076: "}NETSDK1183: Unable to optimize assemblies for ahead-of-time compilation: a valid runtime package was not found. Either set the PublishAot property to false, or use a supported runtime identifier when publishing. When targeting .NET 7 or higher, make sure to restore packages with the PublishAot property set to true.
- NETSDK1183: Ahead Of Time コンパイル用にアセンブリを最適化できません: 有効なランタイム パッケージが見つかりませんでした。PublishAot プロパティを false に設定するか、公開時に、サポートされているランタイム識別子を使用してください。.NET 7 以降を対象とする場合は、必ず PublishAot プロパティを true に設定してパッケージを復元してください。
+ NETSDK1183: Unable to optimize assemblies for ahead-of-time compilation: a valid runtime package was not found. Either set the PublishAot property to false, or use a supported runtime identifier when publishing. When targeting .NET 7 or higher, make sure to restore packages with the PublishAot property set to true.{StrBegin="NETSDK1183: "}NETSDK1196: The SDK does not support ahead-of-time compilation. Set the PublishAot property to false.
- NETSDK1195: SDK は Ahead Of Time コンパイルをサポートしていません。PublishAot プロパティを false に設定してください。
+ NETSDK1196: The SDK does not support ahead-of-time compilation. Set the PublishAot property to false.{StrBegin="NETSDK1196: "}NETSDK1070: The application configuration file must have root configuration element.
- NETSDK1070: アプリケーション構成ファイルには、ルート構成要素が必要です。
+ NETSDK1070: The application configuration file must have root configuration element.{StrBegin="NETSDK1070: "}NETSDK1113: Failed to create apphost (attempt {0} out of {1}): {2}
- NETSDK1113: apphost を作成できませんでした ({1} 回中 {0} 回目の試行): {2}
+ NETSDK1113: Failed to create apphost (attempt {0} out of {1}): {2}{StrBegin="NETSDK1113: "}NETSDK1074: The application host executable will not be customized because adding resources requires that the build be performed on Windows (excluding Nano Server).
- NETSDK1074: リソースの追加ではビルドが Windows 上で実行される必要があるため、アプリケーション ホストの実行可能ファイルはカスタマイズされません (Nano Server を除く)。
+ NETSDK1074: The application host executable will not be customized because adding resources requires that the build be performed on Windows (excluding Nano Server).{StrBegin="NETSDK1074: "}NETSDK1029: Unable to use '{0}' as application host executable as it does not contain the expected placeholder byte sequence '{1}' that would mark where the application name would be written.
- NETSDK1029: '{0}' は、本来アプリケーション名が書き込まれる場所を示す、必要なプレースホルダー バイト シーケンス '{1}' が含まれていないため、実行可能アプリケーション ホストとして使用できません。
+ NETSDK1029: Unable to use '{0}' as application host executable as it does not contain the expected placeholder byte sequence '{1}' that would mark where the application name would be written.{StrBegin="NETSDK1029: "}NETSDK1078: Unable to use '{0}' as application host executable because it's not a Windows PE file.
- NETSDK1078: Windows PE ファイルではないため、'{0}' をアプリケーション ホストの実行可能ファイルとして使用することはできません。
+ NETSDK1078: Unable to use '{0}' as application host executable because it's not a Windows PE file.{StrBegin="NETSDK1078: "}NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.
- NETSDK1072: CUI (コンソール) サブシステム用の Windows 実行可能ファイルではないため、'{0}' をアプリケーション ホストの実行可能ファイルとして使用することはできません。
+ NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.{StrBegin="NETSDK1072: "}NETSDK1177: Failed to sign apphost with error code {1}: {0}
- NETSDK1177: エラー コード {1} が発生して AppHost に署名できませんでした: {0}
+ NETSDK1177: Failed to sign apphost with error code {1}: {0}{StrBegin="NETSDK1177: "}
@@ -59,99 +59,104 @@
NETSDK1079: The Microsoft.AspNetCore.All package is not supported when targeting .NET Core 3.0 or higher. A FrameworkReference to Microsoft.AspNetCore.App should be used instead, and will be implicitly included by Microsoft.NET.Sdk.Web.
- NETSDK1079: .NET Core 3.0 以上がターゲットの場合、Microsoft.AspNetCore.All パッケージはサポートされていません。代わりに Microsoft.AspNetCore.App への FrameworkReference を使用する必要があり、これは Microsoft.NET.Sdk.Web によって暗黙的に含まれます。
+ NETSDK1079: The Microsoft.AspNetCore.All package is not supported when targeting .NET Core 3.0 or higher. A FrameworkReference to Microsoft.AspNetCore.App should be used instead, and will be implicitly included by Microsoft.NET.Sdk.Web.{StrBegin="NETSDK1079: "}NETSDK1080: A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting .NET Core 3.0 or higher. If Microsoft.NET.Sdk.Web is used, the shared framework will be referenced automatically. Otherwise, the PackageReference should be replaced with a FrameworkReference.
- NETSDK1080: .NET Core 3.0 以上がターゲットの場合、Microsoft.AspNetCore.App への PackageReference は必要ありません。Microsoft.NET.Sdk.Web が使用される場合、この共有フレームワークは自動的に参照されます。そうでない場合、PackageReference を FrameworkReference で置き換える必要があります。
+ NETSDK1080: A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting .NET Core 3.0 or higher. If Microsoft.NET.Sdk.Web is used, the shared framework will be referenced automatically. Otherwise, the PackageReference should be replaced with a FrameworkReference.{StrBegin="NETSDK1080: "}NETSDK1017: Asset preprocessor must be configured before assets are processed.
- NETSDK1017: 資産を処理する前に、資産プリプロセッサを構成する必要があります。
+ NETSDK1017: Asset preprocessor must be configured before assets are processed.{StrBegin="NETSDK1017: "}NETSDK1047: Assets file '{0}' doesn't have a target for '{1}'. Ensure that restore has run and that you have included '{2}' in the TargetFrameworks for your project. You may also need to include '{3}' in your project's RuntimeIdentifiers.
- NETSDK1047: 資産ファイル '{0}' に '{1}' のターゲットがありません。復元が実行されたこと、および '{2}' がプロジェクトの TargetFrameworks に含まれていることを確認してください。プロジェクトの RuntimeIdentifiers に '{3}' を組み込む必要が生じる可能性もあります。
+ NETSDK1047: Assets file '{0}' doesn't have a target for '{1}'. Ensure that restore has run and that you have included '{2}' in the TargetFrameworks for your project. You may also need to include '{3}' in your project's RuntimeIdentifiers.{StrBegin="NETSDK1047: "}NETSDK1005: Assets file '{0}' doesn't have a target for '{1}'. Ensure that restore has run and that you have included '{2}' in the TargetFrameworks for your project.
- NETSDK1005: 資産ファイル '{0}' に '{1}' のターゲットがありません。復元が実行されたことと、'{2}' がプロジェクトの TargetFrameworks に含まれていることを確認してください。
+ NETSDK1005: Assets file '{0}' doesn't have a target for '{1}'. Ensure that restore has run and that you have included '{2}' in the TargetFrameworks for your project.{StrBegin="NETSDK1005: "}NETSDK1004: Assets file '{0}' not found. Run a NuGet package restore to generate this file.
- NETSDK1004: 資産ファイル '{0}' が見つかりません。NuGet パッケージの復元を実行して、このファイルを生成してください。
+ NETSDK1004: Assets file '{0}' not found. Run a NuGet package restore to generate this file.{StrBegin="NETSDK1004: "}NETSDK1063: The path to the project assets file was not set. Run a NuGet package restore to generate this file.
- NETSDK1063: プロジェクト資産ファイルのパスが設定されていません。NuGet パッケージの復元を実行して、このファイルを生成してください。
+ NETSDK1063: The path to the project assets file was not set. Run a NuGet package restore to generate this file.{StrBegin="NETSDK1063: "}NETSDK1006: Assets file path '{0}' is not rooted. Only full paths are supported.
- NETSDK1006: 資産ファイル パス '{0}' にルートが指定されていません。完全パスのみがサポートされます。
+ NETSDK1006: Assets file path '{0}' is not rooted. Only full paths are supported.{StrBegin="NETSDK1006: "}NETSDK1001: At least one possible target framework must be specified.
- NETSDK1001: 可能性のあるターゲット フレームワークを少なくとも 1 つ指定する必要があります。
+ NETSDK1001: At least one possible target framework must be specified.{StrBegin="NETSDK1001: "}
+
+ NETSDK1125: Publishing to a single-file is only supported for netcoreapp target.
+ NETSDK1125: Publishing to a single-file is only supported for netcoreapp target.
+ {StrBegin="NETSDK1125: "}
+ NETSDK1092: The CLSIDMap cannot be embedded on the COM host because adding resources requires that the build be performed on Windows (excluding Nano Server).
- NETSDK1092: リソースの追加にはビルドが Windows 上で実行されることが要求されるため、CLSIDMap を COM ホストに埋め込むことはできません (Nano Server を除く)。
+ NETSDK1092: The CLSIDMap cannot be embedded on the COM host because adding resources requires that the build be performed on Windows (excluding Nano Server).{StrBegin="NETSDK1092: "}NETSDK1065: Cannot find app host for {0}. {0} could be an invalid runtime identifier (RID). For more information about RID, see https://aka.ms/rid-catalog.
- NETSDK1065: {0} のアプリ ホストが見つかりません。{0} は無効なランタイム識別子 (RID) である可能性があります。RID の詳細については、https://aka.ms/rid-catalog をご覧ください。
+ NETSDK1065: Cannot find app host for {0}. {0} could be an invalid runtime identifier (RID). For more information about RID, see https://aka.ms/rid-catalog.{StrBegin="NETSDK1065: "}NETSDK1091: Unable to find a .NET Core COM host. The .NET Core COM host is only available on .NET Core 3.0 or higher when targeting Windows.
- NETSDK1091: .NET Core COM ホストが見つかりません。Windows がターゲットの場合、.NET Core COM ホストを利用できるのは .NET Core 3.0 以上の場合のみです。
+ NETSDK1091: Unable to find a .NET Core COM host. The .NET Core COM host is only available on .NET Core 3.0 or higher when targeting Windows.{StrBegin="NETSDK1091: "}NETSDK1114: Unable to find a .NET Core IJW host. The .NET Core IJW host is only available on .NET Core 3.1 or higher when targeting Windows.
- NETSDK1114: .NET Core IJW ホストが見つかりません。Windows がターゲットの場合、.NET Core IJW ホストを利用できるのは .NET Core 3.1 以上の場合のみです。
+ NETSDK1114: Unable to find a .NET Core IJW host. The .NET Core IJW host is only available on .NET Core 3.1 or higher when targeting Windows.{StrBegin="NETSDK1114: "}NETSDK1007: Cannot find project info for '{0}'. This can indicate a missing project reference.
- NETSDK1007: '{0}' のプロジェクト情報が見つかりません。これは、プロジェクト参照がないことを示している可能性があります。
+ NETSDK1007: Cannot find project info for '{0}'. This can indicate a missing project reference.{StrBegin="NETSDK1007: "}NETSDK1032: The RuntimeIdentifier platform '{0}' and the PlatformTarget '{1}' must be compatible.
- NETSDK1032: RuntimeIdentifier プラットフォーム '{0}' と PlatformTarget '{1}' には互換性が必要です。
+ NETSDK1032: The RuntimeIdentifier platform '{0}' and the PlatformTarget '{1}' must be compatible.{StrBegin="NETSDK1032: "}NETSDK1031: It is not supported to build or publish a self-contained application without specifying a RuntimeIdentifier. You must either specify a RuntimeIdentifier or set SelfContained to false.
- NETSDK1031: RuntimeIdentifier を指定せずに自己完結型アプリケーションをビルドおよび公開することはサポートされていません。RuntimeIdentifier を指定するか SelfContained を false に設定する必要があります。
+ NETSDK1031: It is not supported to build or publish a self-contained application without specifying a RuntimeIdentifier. You must either specify a RuntimeIdentifier or set SelfContained to false.{StrBegin="NETSDK1031: "}
-
- NETSDK1097: It is not supported to publish an application to a single-file without specifying a RuntimeIdentifier. You must either specify a RuntimeIdentifier or set PublishSingleFile to false.
- NETSDK1097: RuntimeIdentifier を指定せずにアプリケーションを単一ファイルに公開することはサポートされていません。RuntimeIdentifier を指定するか、PublishSingleFile を false に設定する必要があります。
- {StrBegin="NETSDK1097: "}
- NETSDK1098: Applications published to a single-file are required to use the application host. You must either set PublishSingleFile to false or set UseAppHost to true.
- NETSDK1098: 単一ファイルに公開されたアプリケーションでは、アプリケーション ホストを使用する必要があります。PublishSingleFile を false に設定するか、UseAppHost を true に設定する必要があります。
+ NETSDK1098: Applications published to a single-file are required to use the application host. You must either set PublishSingleFile to false or set UseAppHost to true.{StrBegin="NETSDK1098: "}NETSDK1099: Publishing to a single-file is only supported for executable applications.
- NETSDK1099: 単一ファイルへの公開は実行可能アプリケーションに対してのみサポートされています。
+ NETSDK1099: Publishing to a single-file is only supported for executable applications.{StrBegin="NETSDK1099: "}
+
+ NETSDK1097: It is not supported to publish an application to a single-file without specifying a RuntimeIdentifier. You must either specify a RuntimeIdentifier or set PublishSingleFile to false.
+ NETSDK1097: It is not supported to publish an application to a single-file without specifying a RuntimeIdentifier. You must either specify a RuntimeIdentifier or set PublishSingleFile to false.
+ {StrBegin="NETSDK1097: "}
+ NETSDK1194: The "--output" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds.NETSDK1194: ソリューションのビルド時に "--output" オプションはサポートされていません。ソリューション レベルの出力パスを指定すると、すべてのプロジェクトで出力が同じディレクトリにコピーされ、ビルドの一貫性が失われる可能性があります。
@@ -159,67 +164,62 @@
NETSDK1134: Building a solution with a specific RuntimeIdentifier is not supported. If you would like to publish for a single RID, specify the RID at the individual project level instead.
- NETSDK1134: 特定の RuntimeIdentifier を使用したソリューションのビルドはサポートされていません。単一の RID に対して発行する場合は、個々のプロジェクト レベルで RID を指定してください。
+ NETSDK1134: Building a solution with a specific RuntimeIdentifier is not supported. If you would like to publish for a single RID, specify the RID at the individual project level instead.{StrBegin="NETSDK1134: "}NETSDK1135: SupportedOSPlatformVersion {0} cannot be higher than TargetPlatformVersion {1}.
- NETSDK1135: SupportedOSPlatformVersion {0} を TargetPlatformVersion {1} より大きくすることはできません。
+ NETSDK1135: SupportedOSPlatformVersion {0} cannot be higher than TargetPlatformVersion {1}.{StrBegin="NETSDK1135: "}NETSDK1143: Including all content in a single file bundle also includes native libraries. If IncludeAllContentForSelfExtract is true, IncludeNativeLibrariesForSelfExtract must not be false.
- NETSDK1143: 単一のファイル バンドルにすべてのコンテンツを含めると、ネイティブ ライブラリも含まれます。IncludeAllContentForSelfExtract が true の場合、IncludeNativeLibrariesForSelfExtract を false にすることはできません。
+ NETSDK1143: Including all content in a single file bundle also includes native libraries. If IncludeAllContentForSelfExtract is true, IncludeNativeLibrariesForSelfExtract must not be false.{StrBegin="NETSDK1143: "}NETSDK1142: Including symbols in a single file bundle is not supported when publishing for .NET5 or higher.
- NETSDK1142: .NET5 以降に対してパブリッシュする場合、単一のファイル バンドルにシンボルを含めることはサポートされていません。
+ NETSDK1142: Including symbols in a single file bundle is not supported when publishing for .NET5 or higher.{StrBegin="NETSDK1142: "}NETSDK1013: The TargetFramework value '{0}' was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly.
- NETSDK1013: TargetFramework 値 '{0}' が認識されませんでした。つづりが間違っている可能性があります。間違っていない場合は、TargetFrameworkIdentifier または TargetFrameworkVersion プロパティ (あるいはその両方) を明示的に指定する必要があります。
+ NETSDK1013: The TargetFramework value '{0}' was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly.{StrBegin="NETSDK1013: "}NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.
- NETSDK1067: アプリケーション ホストを使用するには、自己完結型のアプリケーションが必要です。SelfContained を false に設定するか、UseAppHost を true に設定してください。
+ NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.{StrBegin="NETSDK1067: "}
-
- NETSDK1125: Publishing to a single-file is only supported for netcoreapp target.
- NETSDK1125: 1 つのファイルへの発行は netcoreapp ターゲットでのみサポートされています。
- {StrBegin="NETSDK1125: "}
- Choosing '{0}' because AssemblyVersion '{1}' is greater than '{2}'.
- AssemblyVersion '{1}' が '{2}' より大きいため、'{0}' を選択しています。
+ Choosing '{0}' because AssemblyVersion '{1}' is greater than '{2}'.Choosing '{0}' arbitrarily as both items are copy-local and have equal file and assembly versions.
- 両方の項目がローカル コピーであり、ファイルとアセンブリのバージョンが等しいため、'{0}' を任意に選択しています。
+ Choosing '{0}' arbitrarily as both items are copy-local and have equal file and assembly versions.Choosing '{0}' because file version '{1}' is greater than '{2}'.
- ファイルのバージョン '{1}' が '{2}' より大きいため、'{0}' を選択しています。
+ Choosing '{0}' because file version '{1}' is greater than '{2}'.Choosing '{0}' because it is a platform item.
- '{0}' はプラットフォーム項目であるため、これを選択しています。
+ Choosing '{0}' because it is a platform item.Choosing '{0}' because it comes from a package that is preferred.
- '{0}' は優先されるパッケージからのものであるため、これを選択しています。
+ Choosing '{0}' because it comes from a package that is preferred.NETSDK1089: The '{0}' and '{1}' types have the same CLSID '{2}' set in their GuidAttribute. Each COMVisible class needs to have a distinct guid for their CLSID.
- NETSDK1089: 型 '{0}' および '{1}' では、GuidAttribute で同じ CLSID '{2}' が設定されています。各 COMVisible クラスでは、CLSID に異なる guid が設定されている必要があります。
+ NETSDK1089: The '{0}' and '{1}' types have the same CLSID '{2}' set in their GuidAttribute. Each COMVisible class needs to have a distinct guid for their CLSID.{StrBegin="NETSDK1089: "}
{0} - The first type with the conflicting guid.
{1} - The second type with the conflicting guid.
@@ -227,241 +227,241 @@
NETSDK1088: The COMVisible class '{0}' must have a GuidAttribute with the CLSID of the class to be made visible to COM in .NET Core.
- NETSDK1088: COMVisible クラス '{0}' を .NET Core 内の COM に対して参照可能にするには、クラスの CLSID を持つ GuidAttribute を含める必要があります。
+ NETSDK1088: The COMVisible class '{0}' must have a GuidAttribute with the CLSID of the class to be made visible to COM in .NET Core.{StrBegin="NETSDK1088: "}
{0} - The ComVisible class that doesn't have a GuidAttribute on it.NETSDK1090: The supplied assembly '{0}' is not valid. Cannot generate a CLSIDMap from it.
- NETSDK1090: 指定されたアセンブリ '{0}' が無効です。CLSIDMap を生成できません。
+ NETSDK1090: The supplied assembly '{0}' is not valid. Cannot generate a CLSIDMap from it.{StrBegin="NETSDK1090: "}
{0} - The path to the invalid assembly.NETSDK1167: Compression in a single file bundle is only supported when publishing for .NET6 or higher.
- NETSDK1167: 単一ファイル バンドルの圧縮は、.NET6 またはそれ以降の発行時にのみサポートされます。
+ NETSDK1167: Compression in a single file bundle is only supported when publishing for .NET6 or higher.{StrBegin="NETSDK1167: "}NETSDK1176: Compression in a single file bundle is only supported when publishing a self-contained application.
- NETSDK1176: 単一ファイル バンドルの圧縮は、内蔵アプリケーションの発行時にのみサポートされます。
+ NETSDK1176: Compression in a single file bundle is only supported when publishing a self-contained application.{StrBegin="NETSDK1176: "}NETSDK1133: There was conflicting information about runtime packs available for {0}:
{1}
- NETSDK1133: {0} で使用可能なランタイム パックの情報が競合しています:
+ NETSDK1133: There was conflicting information about runtime packs available for {0}:
{1}{StrBegin="NETSDK1133: "}NETSDK1014: Content item for '{0}' sets '{1}', but does not provide '{2}' or '{3}'.
- NETSDK1014: '{0}' のコンテンツ項目で '{1}' が設定されていますが、'{2}' または '{3}' は指定されていません。
+ NETSDK1014: Content item for '{0}' sets '{1}', but does not provide '{2}' or '{3}'.{StrBegin="NETSDK1014: "}NETSDK1010: The '{0}' task must be given a value for parameter '{1}' in order to consume preprocessed content.
- NETSDK1010: 前処理されたコンテンツを使用するためには、パラメーター '{1}' の値を '{0}' タスクに指定する必要があります。
+ NETSDK1010: The '{0}' task must be given a value for parameter '{1}' in order to consume preprocessed content.{StrBegin="NETSDK1010: "}Could not determine winner because '{0}' does not exist.
- '{0}' が存在しないため勝者を判別できませんでした。
+ Could not determine winner because '{0}' does not exist.Could not determine winner due to equal file and assembly versions.
- ファイルとアセンブリのバージョンが等しいため、勝者を判別できませんでした。
+ Could not determine winner due to equal file and assembly versions.Could not determine a winner because '{0}' has no file version.
- '{0}' にファイルのバージョンがないため勝者を判別できませんでした。
+ Could not determine a winner because '{0}' has no file version.Could not determine a winner because '{0}' is not an assembly.
- '{0}' がアセンブリでないため勝者を判別できませんでした。
+ Could not determine a winner because '{0}' is not an assembly.NETSDK1181: Error getting pack version: Pack '{0}' was not present in workload manifests.
- NETSDK1181: パックバージョンの取得エラー。パック '{0}' がワークロード マニフェストに存在しませんでした。
+ NETSDK1181: Error getting pack version: Pack '{0}' was not present in workload manifests.{StrBegin="NETSDK1181: "}NETSDK1042: Could not load PlatformManifest from '{0}' because it did not exist.
- NETSDK1042: 存在しなかったため、'{0}' から PlatformManifest を読み込めませんでした。
+ NETSDK1042: Could not load PlatformManifest from '{0}' because it did not exist.{StrBegin="NETSDK1042: "}NETSDK1120: C++/CLI projects targeting .NET Core require a target framework of at least 'netcoreapp3.1'.
- NETSDK1120: .NET Core をターゲットとする C++/CLI プロジェクトには、少なくとも 'netcoreapp 3.1' のターゲット フレームワークが必要です。
+ NETSDK1120: C++/CLI projects targeting .NET Core require a target framework of at least 'netcoreapp3.1'.{StrBegin="NETSDK1120: "}NETSDK1158: Required '{0}' metadata missing on Crossgen2Tool item.
- NETSDK1158: 必要な '{0}' メタデータが Crossgen2Tool 項目にありません。
+ NETSDK1158: Required '{0}' metadata missing on Crossgen2Tool item.{StrBegin="NETSDK1158: "}NETSDK1126: Publishing ReadyToRun using Crossgen2 is only supported for self-contained applications.
- NETSDK1126: Crossgen2 を使用した ReadyToRun の公開は、自己完結型アプリケーションでのみサポートされています。
+ NETSDK1126: Publishing ReadyToRun using Crossgen2 is only supported for self-contained applications.{StrBegin="NETSDK1126: "}NETSDK1155: Crossgen2Tool executable '{0}' not found.
- NETSDK1155: Crossgen2Tool 実行可能ファイル '{0}' が見つかりません。
+ NETSDK1155: Crossgen2Tool executable '{0}' not found.{StrBegin="NETSDK1155: "}NETSDK1154: Crossgen2Tool must be specified when UseCrossgen2 is set to true.
- NETSDK1154: UseCrossgen2 が true に設定されている場合は Crossgen2Tool を指定する必要があります。
+ NETSDK1154: Crossgen2Tool must be specified when UseCrossgen2 is set to true.{StrBegin="NETSDK1154: "}NETSDK1166: Cannot emit symbols when publishing for .NET 5 with Crossgen2 using composite mode.
- NETSDK1166: 複合モードを使用して Crossgen2 で .NET 5 を対象に発行する場合、シンボルを生成できません。
+ NETSDK1166: Cannot emit symbols when publishing for .NET 5 with Crossgen2 using composite mode.{StrBegin="NETSDK1166: "}NETSDK1160: CrossgenTool executable '{0}' not found.
- NETSDK1160: CrossgenTool 実行可能ファイル '{0}' が見つかりません。
+ NETSDK1160: CrossgenTool executable '{0}' not found.{StrBegin="NETSDK1160: "}NETSDK1153: CrossgenTool not specified in PDB compilation mode.
- NETSDK1153: PDB コンパイル モードで CrossgenTool が指定されていません。
+ NETSDK1153: CrossgenTool not specified in PDB compilation mode.{StrBegin="NETSDK1153: "}NETSDK1159: CrossgenTool must be specified when UseCrossgen2 is set to false.
- NETSDK1159: UseCrossgen2 が false に設定されている場合は CrossgenTool を指定する必要があります。
+ NETSDK1159: CrossgenTool must be specified when UseCrossgen2 is set to false.{StrBegin="NETSDK1159: "}NETSDK1161: DiaSymReader library '{0}' not found.
- NETSDK1161: DiaSymReader ライブラリ '{0}' が見つかりません。
+ NETSDK1161: DiaSymReader library '{0}' not found.{StrBegin="NETSDK1161: "}NETSDK1156: .NET host executable '{0}' not found.
- NETSDK1156: .NET ホストの実行可能ファイル '{0}' が見つかりません。
+ NETSDK1156: .NET host executable '{0}' not found.{StrBegin="NETSDK1156: "}NETSDK1055: DotnetTool does not support target framework lower than netcoreapp2.1.
- NETSDK1055: DotnetTool は、netcoreapp2.1 未満のターゲット フレームワークをサポートしていません。
+ NETSDK1055: DotnetTool does not support target framework lower than netcoreapp2.1.{StrBegin="NETSDK1055: "}NETSDK1054: only supports .NET Core.
- NETSDK1054: .NET Core のみがサポートされています。
+ NETSDK1054: only supports .NET Core.{StrBegin="NETSDK1054: "}NETSDK1022: Duplicate '{0}' items were included. The .NET SDK includes '{0}' items from your project directory by default. You can either remove these items from your project file, or set the '{1}' property to '{2}' if you want to explicitly include them in your project file. For more information, see {4}. The duplicate items were: {3}
- NETSDK1022: 重複する '{0}' 個のアイテムが含められました。.NET SDK には、既定でプロジェクト ディレクトリからのアイテムが '{0}' 個含まれています。これらのアイテムをプロジェクト ファイルから削除するか、'{1}' プロパティを '{2}' に設定してプロジェクト ファイルに明示的に含めることができます。詳細については、{4} をご覧ください。重複するアイテムは、{3} でした。
+ NETSDK1022: Duplicate '{0}' items were included. The .NET SDK includes '{0}' items from your project directory by default. You can either remove these items from your project file, or set the '{1}' property to '{2}' if you want to explicitly include them in your project file. For more information, see {4}. The duplicate items were: {3}{StrBegin="NETSDK1022: "}NETSDK1015: The preprocessor token '{0}' has been given more than one value. Choosing '{1}' as the value.
- NETSDK1015: プリプロセッサ トークン '{0}' に複数の値が指定されています。値として '{1}' を選択します。
+ NETSDK1015: The preprocessor token '{0}' has been given more than one value. Choosing '{1}' as the value.{StrBegin="NETSDK1015: "}NETSDK1152: Found multiple publish output files with the same relative path: {0}.
- NETSDK1152: 同じ相対パスの発行出力ファイルが複数見つかりました: {0}。
+ NETSDK1152: Found multiple publish output files with the same relative path: {0}.{StrBegin="NETSDK1152: "}NETSDK1110: More than one asset in the runtime pack has the same destination sub-path of '{0}'. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.
- NETSDK1110: ランタイム パック内の複数のアセットに同じターゲット サブパス '{0}' が指定されています。https://aka.ms/dotnet-sdk-issue で、このエラーを .NET チームに報告してください。
+ NETSDK1110: More than one asset in the runtime pack has the same destination sub-path of '{0}'. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.{StrBegin="NETSDK1110: "}NETSDK1169: The same resource ID {0} was specified for two type libraries '{1}' and '{2}'. Duplicate type library IDs are not allowed.
- NETSDK1169: 同じリソース ID {0} が2つのタイプ ライブラリ '{1}' と '{2}' に指定されました。タイプ ライブラリ ID の重複は許可されていません。
+ NETSDK1169: The same resource ID {0} was specified for two type libraries '{1}' and '{2}'. Duplicate type library IDs are not allowed.{StrBegin="NETSDK1169: "}Encountered conflict between '{0}' and '{1}'.
- '{0}' と '{1}' の間で競合が発生しました。
+ Encountered conflict between '{0}' and '{1}'.NETSDK1051: Error parsing FrameworkList from '{0}'. {1} '{2}' was invalid.
- NETSDK1051: '{0}' からの FrameworkList の解析でエラーが発生しました。{1} '{2}' が無効でした。
+ NETSDK1051: Error parsing FrameworkList from '{0}'. {1} '{2}' was invalid.{StrBegin="NETSDK1051: "}NETSDK1043: Error parsing PlatformManifest from '{0}' line {1}. Lines must have the format {2}.
- NETSDK1043: '{0}' 行 {1} からの PlatformManifest の解析でエラーが発生しました。行の形式は {2} である必要があります。
+ NETSDK1043: Error parsing PlatformManifest from '{0}' line {1}. Lines must have the format {2}.{StrBegin="NETSDK1043: "}NETSDK1044: Error parsing PlatformManifest from '{0}' line {1}. {2} '{3}' was invalid.
- NETSDK1044: '{0}' 行 {1} からの PlatformManifest の解析でエラーが発生しました。{2} '{3}' は無効でした。
+ NETSDK1044: Error parsing PlatformManifest from '{0}' line {1}. {2} '{3}' was invalid.{StrBegin="NETSDK1044: "}NETSDK1060: Error reading assets file: {0}
- NETSDK1060: アセット ファイルの読み取りでエラーが発生しました: {0}
+ NETSDK1060: Error reading assets file: {0}{StrBegin="NETSDK1060: "}NETSDK1111: Failed to delete output apphost: {0}
- NETSDK1111: 出力 apphost を削除できませんでした: {0}
+ NETSDK1111: Failed to delete output apphost: {0}{StrBegin="NETSDK1111: "}NETSDK1077: Failed to lock resource.
- NETSDK1077: リソースをロックできませんでした。
+ NETSDK1077: Failed to lock resource.{StrBegin="NETSDK1077: "}NETSDK1030: Given file name '{0}' is longer than 1024 bytes
- NETSDK1030: 指定されたファイル名 '{0}' の長さが 1024 バイトを超えています。
+ NETSDK1030: Given file name '{0}' is longer than 1024 bytes{StrBegin="NETSDK1030: "}NETSDK1024: Folder '{0}' already exists either delete it or provide a different ComposeWorkingDir
- NETSDK1024: フォルダー '{0}' が既に存在します。そのフォルダーを削除するか、別の ComposeWorkingDir を指定してください。
+ NETSDK1024: Folder '{0}' already exists either delete it or provide a different ComposeWorkingDir{StrBegin="NETSDK1024: "}NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.
- NETSDK1068: フレームワークに依存するアプリケーション ホストには、最低でも 'netcoreapp2.1' のターゲット フレームワークが必要です。
+ NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.{StrBegin="NETSDK1068: "}NETSDK1052: Framework list file path '{0}' is not rooted. Only full paths are supported.
- NETSDK1052: フレームワーク リスト ファイル パス '{0}' にルートが指定されていません。完全パスのみがサポートされています。
+ NETSDK1052: Framework list file path '{0}' is not rooted. Only full paths are supported.{StrBegin="NETSDK1052: "}NETSDK1087: Multiple FrameworkReference items for '{0}' were included in the project.
- NETSDK1087: '{0}' に対する複数の FrameworkReference 項目がプロジェクトに含められました。
+ NETSDK1087: Multiple FrameworkReference items for '{0}' were included in the project.{StrBegin="NETSDK1087: "}NETSDK1086: A FrameworkReference for '{0}' was included in the project. This is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see {1}
- NETSDK1086: '{0}' の FrameworkReference がプロジェクトに含められました。これは .NET SDK によって暗黙的に参照されるため、通常はプロジェクトから参照する必要はありません。詳細については、{1} をご覧ください
+ NETSDK1086: A FrameworkReference for '{0}' was included in the project. This is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see {1}{StrBegin="NETSDK1086: "}NETSDK1049: Resolved file has a bad image, no metadata, or is otherwise inaccessible. {0} {1}
- NETSDK1049: 解決されたファイルは、無効なイメージが含まれているか、メタデータが存在しないか、またはアクセスできません。{0} {1}
+ NETSDK1049: Resolved file has a bad image, no metadata, or is otherwise inaccessible. {0} {1}{StrBegin="NETSDK1049: "}NETSDK1141: Unable to resolve the .NET SDK version as specified in the global.json located at {0}.
- NETSDK1141: {0} にある global.json で指定されている .NET SDK のバージョンを解決できません。
+ NETSDK1141: Unable to resolve the .NET SDK version as specified in the global.json located at {0}.{StrBegin="NETSDK1141: "}NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false.
- NETSDK1144: アセンブリのサイズを最適化できませんでした。PublishTrimmed プロパティを false に設定することにより、最適化を無効にすることができます。
+ NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false.{StrBegin="NETSDK1144: "}
@@ -471,90 +471,90 @@
NETSDK1102: Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.
- NETSDK1102: アセンブリのサイズの最適化は、選択された公開構成に対してはサポートされていません。自己完結型のアプリを公開していることをご確認ください。
+ NETSDK1102: Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.{StrBegin="NETSDK1102: "}Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
- アセンブリのサイズを最適化すると、アプリの動作が変わる可能性があります。公開した後に必ずテストしてください。https://aka.ms/dotnet-illink を参照してください
+ Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illinkOptimizing assemblies for size. This process might take a while.
- アセンブリのサイズを最適化しています。このプロセスには時間がかかる場合があります。
+ Optimizing assemblies for size. This process might take a while.NETSDK1191: A runtime identifier for the property '{0}' couldn't be inferred. Specify a rid explicitly.
- NETSDK1191: プロパティ '{0}' のランタイム識別子を推論できませんでした。RID を明示的に指定してください。
+ NETSDK1191: A runtime identifier for the property '{0}' couldn't be inferred. Specify a rid explicitly.{StrBegin="NETSDK1191: "}NETSDK1020: Package Root {0} was incorrectly given for Resolved library {1}
- NETSDK1020: 解決されたライブラリ {1} に対して指定されたパッケージ ルート {0} が正しくありません。
+ NETSDK1020: Package Root {0} was incorrectly given for Resolved library {1}{StrBegin="NETSDK1020: "}NETSDK1025: The target manifest {0} provided is of not the correct format
- NETSDK1025: 指定されたターゲット マニフェスト {0} の形式が正しくありません
+ NETSDK1025: The target manifest {0} provided is of not the correct format{StrBegin="NETSDK1025: "}NETSDK1163: Input assembly '{0}' not found.
- NETSDK1163: 入力アセンブリ '{0}' が見つかりません。
+ NETSDK1163: Input assembly '{0}' not found.{StrBegin="NETSDK1163: "}NETSDK1003: Invalid framework name: '{0}'.
- NETSDK1003: 無効なフレームワーク名: '{0}'。
+ NETSDK1003: Invalid framework name: '{0}'.{StrBegin="NETSDK1003: "}NETSDK1058: Invalid value for ItemSpecToUse parameter: '{0}'. This property must be blank or set to 'Left' or 'Right'
- NETSDK1058: ItemSpecToUse パラメーターの値が無効です: '{0}'。このプロパティは空白にするか、'Left' または 'Right' に設定する必要があります
+ NETSDK1058: Invalid value for ItemSpecToUse parameter: '{0}'. This property must be blank or set to 'Left' or 'Right'{StrBegin="NETSDK1058: "}
The following are names of parameters or literal values and should not be translated: ItemSpecToUse, Left, RightNETSDK1018: Invalid NuGet version string: '{0}'.
- NETSDK1018: 無効な NuGet バージョン文字列: '{0}'。
+ NETSDK1018: Invalid NuGet version string: '{0}'.{StrBegin="NETSDK1018: "}NETSDK1075: Update handle is invalid. This instance may not be used for further updates.
- NETSDK1075: 更新ハンドルが無効です。このインスタンスは、今後の更新には使用できない可能性があります。
+ NETSDK1075: Update handle is invalid. This instance may not be used for further updates.{StrBegin="NETSDK1075: "}NETSDK1104: RollForward value '{0}' is invalid. Allowed values are {1}.
- NETSDK1104: ロールフォワード値 '{0}' が無効です。許可されている値は {1} です。
+ NETSDK1104: RollForward value '{0}' is invalid. Allowed values are {1}.{StrBegin="NETSDK1104: "}NETSDK1140: {0} is not a valid TargetPlatformVersion for {1}. Valid versions include:
{2}
- NETSDK1140: {0} は {1} に対して有効な TargetPlatformVersion ではありません。有効なバージョン:
+ NETSDK1140: {0} is not a valid TargetPlatformVersion for {1}. Valid versions include:
{2}{StrBegin="NETSDK1140: "}NETSDK1173: The provided type library '{0}' is in an invalid format.
- NETSDK1173: 指定済みのタイプ ライブラリ '{0}' の形式が無効です。
+ NETSDK1173: The provided type library '{0}' is in an invalid format.{StrBegin="NETSDK1173: "}NETSDK1170: The provided type library ID '{0}' for type library '{1}' is invalid. The ID must be a positive integer less than 65536.
- NETSDK1170: タイプ ライブラリ '{1}' の指定されたタイプ ライブラリ ID '{0}' が無効です。ID は 65536 未満の正の整数である必要があります。
+ NETSDK1170: The provided type library ID '{0}' for type library '{1}' is invalid. The ID must be a positive integer less than 65536.{StrBegin="NETSDK1170: "}NETSDK1157: JIT library '{0}' not found.
- NETSDK1157: JIT ライブラリ '{0}' が見つかりません。
+ NETSDK1157: JIT library '{0}' not found.{StrBegin="NETSDK1157: "}NETSDK1061: The project was restored using {0} version {1}, but with current settings, version {2} would be used instead. To resolve this issue, make sure the same settings are used for restore and for subsequent operations such as build or publish. Typically this issue can occur if the RuntimeIdentifier property is set during build or publish but not during restore. For more information, see https://aka.ms/dotnet-runtime-patch-selection.
- NETSDK1061: プロジェクトは {0} バージョン {1} を使用して復元されましたが、現在の設定では、バージョン {2} が代わりに使用されます。この問題を解決するには、復元およびこれ以降の操作 (ビルドや公開など) で同じ設定を使用していることをご確認ください。通常この問題は、ビルドや公開の実行時に RuntimeIdentifier プロパティを設定したが、復元時には設定していない場合に発生することがあります。詳しくは、https://aka.ms/dotnet-runtime-patch-selection を参照してください。
+ NETSDK1061: The project was restored using {0} version {1}, but with current settings, version {2} would be used instead. To resolve this issue, make sure the same settings are used for restore and for subsequent operations such as build or publish. Typically this issue can occur if the RuntimeIdentifier property is set during build or publish but not during restore. For more information, see https://aka.ms/dotnet-runtime-patch-selection.{StrBegin="NETSDK1061: "}
{0} - Package Identifier for platform package
{1} - Restored version of platform package
@@ -562,257 +562,262 @@ The following are names of parameters or literal values and should not be transl
NETSDK1008: Missing '{0}' metadata on '{1}' item '{2}'.
- NETSDK1008: '{1}' 項目 '{2}' の '{0}' メタデータがありません。
+ NETSDK1008: Missing '{0}' metadata on '{1}' item '{2}'.{StrBegin="NETSDK1008: "}NETSDK1164: Missing output PDB path in PDB generation mode (OutputPDBImage metadata).
- NETSDK1164: PDB 生成モードの出力 PDB パス (OutputPDBImage メタデータ) がありません。
+ NETSDK1164: Missing output PDB path in PDB generation mode (OutputPDBImage metadata).{StrBegin="NETSDK1164: "}NETSDK1165: Missing output R2R image path (OutputR2RImage metadata).
- NETSDK1165: 出力 R2R イメージ パス (OutputR2RImage メタデータ) がありません。
+ NETSDK1165: Missing output R2R image path (OutputR2RImage metadata).{StrBegin="NETSDK1165: "}NETSDK1171: An integer ID less than 65536 must be provided for type library '{0}' because more than one type library is specified.
- NETSDK1171: タイプ ライブラリ '{0}' に複数のタイプ ライブラリが指定されているため、65536 未満の整数の ID を指定する必要があります。
+ NETSDK1171: An integer ID less than 65536 must be provided for type library '{0}' because more than one type library is specified.{StrBegin="NETSDK1171: "}NETSDK1021: More than one file found for {0}
- NETSDK1021: {0} で複数のファイルが見つかりました。
+ NETSDK1021: More than one file found for {0}{StrBegin="NETSDK1021: "}NETSDK1069: This project uses a library that targets .NET Standard 1.5 or higher, and the project targets a version of .NET Framework that doesn't have built-in support for that version of .NET Standard. Visit https://aka.ms/net-standard-known-issues for a set of known issues. Consider retargeting to .NET Framework 4.7.2.
- NETSDK1069: このプロジェクトは .NET Standard 1.5 以上をターゲットとするライブラリを使用します。また、このプロジェクトは、そのバージョンの .NET Standard に対するサポートが組み込まれていない .NET Framework のバージョンをターゲットとしています。一連の既知の問題について、https://aka.ms/net-standard-known-issues をご覧ください。.NET Framework 4.7.2 への再ターゲットを検討してください。
+ NETSDK1069: This project uses a library that targets .NET Standard 1.5 or higher, and the project targets a version of .NET Framework that doesn't have built-in support for that version of .NET Standard. Visit https://aka.ms/net-standard-known-issues for a set of known issues. Consider retargeting to .NET Framework 4.7.2.{StrBegin="NETSDK1069: "}NETSDK1115: The current .NET SDK does not support .NET Framework without using .NET SDK Defaults. It is likely due to a mismatch between C++/CLI project CLRSupport property and TargetFramework.
- NETSDK1115: 現在の .NET SDK では、.NET SDK の既定値を使用せずに .NET Framework をサポートすることはできません。これは、C++/CLI プロジェクトの CLRSupport プロパティと TargetFramework の間の不一致が原因と考えられます。
+ NETSDK1115: The current .NET SDK does not support .NET Framework without using .NET SDK Defaults. It is likely due to a mismatch between C++/CLI project CLRSupport property and TargetFramework.{StrBegin="NETSDK1115: "}NETSDK1182: Targeting .NET 6.0 or higher in Visual Studio 2019 is not supported.
- NETSDK1182: Visual Studio 2019 では .NET 6.0 以降をターゲットにすることはできません。
+ NETSDK1182: Targeting .NET 6.0 or higher in Visual Studio 2019 is not supported.{StrBegin="NETSDK1182: "}NETSDK1192: Targeting .NET 7.0 or higher in Visual Studio 2022 17.3 is not supported.
- NETSDK1192: Visual Studio 2022 17.3 では .NET 7.0 以上をターゲットにすることはできません。
+ NETSDK1192: Targeting .NET 7.0 or higher in Visual Studio 2022 17.3 is not supported.{StrBegin="NETSDK1192: "}NETSDK1084: There is no application host available for the specified RuntimeIdentifier '{0}'.
- NETSDK1084: 指定された RuntimeIdentifier '{0}' で利用できるアプリケーション ホストはありません。
+ NETSDK1084: There is no application host available for the specified RuntimeIdentifier '{0}'.{StrBegin="NETSDK1084: "}NETSDK1085: The 'NoBuild' property was set to true but the 'Build' target was invoked.
- NETSDK1085: 'NoBuild' プロパティが true に設定されていますが、'Build' ターゲットが呼び出されました。
+ NETSDK1085: The 'NoBuild' property was set to true but the 'Build' target was invoked.{StrBegin="NETSDK1085: "}NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.
- NETSDK1002: プロジェクト '{0}' は、'{2}' を対象としています。'{1}' を対象とするプロジェクトは、これを参照できません。
+ NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.{StrBegin="NETSDK1002: "}NETSDK1082: There was no runtime pack for {0} available for the specified RuntimeIdentifier '{1}'.
- NETSDK1082: 指定された RuntimeIdentifier '{1}' で利用できる {0} のランタイム パックがありませんでした。
+ NETSDK1082: There was no runtime pack for {0} available for the specified RuntimeIdentifier '{1}'.{StrBegin="NETSDK1082: "}NETSDK1132: No runtime pack information was available for {0}.
- NETSDK1132: {0} で使用可能なランタイム パックの情報がありません。
+ NETSDK1132: No runtime pack information was available for {0}.{StrBegin="NETSDK1132: "}NETSDK1128: COM hosting does not support self-contained deployments.
- NETSDK1128: COM ホスティングは自己完結型の配置をサポートしていません。
+ NETSDK1128: COM hosting does not support self-contained deployments.{StrBegin="NETSDK1128: "}NETSDK1119: C++/CLI projects targeting .NET Core cannot use EnableComHosting=true.
- NETSDK1119: .NET Core をターゲットとする C++/CLI プロジェクトでは EnableComHosting=true を使用できません。
+ NETSDK1119: C++/CLI projects targeting .NET Core cannot use EnableComHosting=true.{StrBegin="NETSDK1119: "}NETSDK1116: C++/CLI projects targeting .NET Core must be dynamic libraries.
- NETSDK1116: .NET Core をターゲットとする C++/CLI プロジェクトは、ダイナミック ライブラリである必要があります。
+ NETSDK1116: C++/CLI projects targeting .NET Core must be dynamic libraries.{StrBegin="NETSDK1116: "}NETSDK1118: C++/CLI projects targeting .NET Core cannot be packed.
- NETSDK1118: .NET Core をターゲットとする C++/CLI プロジェクトはパックできません。
+ NETSDK1118: C++/CLI projects targeting .NET Core cannot be packed.{StrBegin="NETSDK1118: "}NETSDK1117: Does not support publish of C++/CLI project targeting dotnet core.
- NETSDK1117: .NET Core をターゲットとする C++/CLI プロジェクトの発行をサポートしていません。
+ NETSDK1117: Does not support publish of C++/CLI project targeting dotnet core.{StrBegin="NETSDK1117: "}NETSDK1121: C++/CLI projects targeting .NET Core cannot use SelfContained=true.
- NETSDK1121: .NET Core をターゲットとする C++/CLI プロジェクトでは SelfContained=true を使用できません。
+ NETSDK1121: C++/CLI projects targeting .NET Core cannot use SelfContained=true.{StrBegin="NETSDK1121: "}NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. For more information, see https://aka.ms/netsdk1151
- NETSDK1151: 参照先プロジェクト '{0}' は自己完結型実行可能ファイルです。 自己完結型の実行可能ファイルは、自己完結型以外の実行可能ファイルでは参照できません。詳細については、「https://aka.ms/netsdk1151」を参照してください
+ NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. For more information, see https://aka.ms/netsdk1151{StrBegin="NETSDK1151: "}NETSDK1162: PDB generation: R2R executable '{0}' not found.
- NETSDK1162: PDB 生成: R2R 実行可能ファイル '{0}' が見つかりません。
+ NETSDK1162: PDB generation: R2R executable '{0}' not found.{StrBegin="NETSDK1162: "}NETSDK1053: Pack as tool does not support self contained.
- NETSDK1053: Pack As ツールは自己完結型をサポートしていません。
+ NETSDK1053: Pack as tool does not support self contained.{StrBegin="NETSDK1053: "}NETSDK1146: PackAsTool does not support TargetPlatformIdentifier being set. For example, TargetFramework cannot be net5.0-windows, only net5.0. PackAsTool also does not support UseWPF or UseWindowsForms when targeting .NET 5 and higher.
- NETSDK1146: PackAsTool は、設定されている TargetPlatformIdentifier をサポートしていません。たとえば、TargetFramework には net5.0-windows は指定できず、net 5.0 のみ使用できます。また PackAsTool は、.NET 5 以降を対象としている場合には、UseWPF や UseWindowsForms もサポートしていません。
+ NETSDK1146: PackAsTool does not support TargetPlatformIdentifier being set. For example, TargetFramework cannot be net5.0-windows, only net5.0. PackAsTool also does not support UseWPF or UseWindowsForms when targeting .NET 5 and higher.{StrBegin="NETSDK1146: "}NETSDK1187: Package {0} {1} has a resource with the locale '{2}'. This locale has been normalized to the standard format '{3}' to prevent casing issues in the build. Consider notifying the package author about this casing issue.
- NETSDK1187: パッケージ {0} {1} にロケール '{2}' のリソースがあります。大文字と小文字の区別に関する問題を防ぐために、このロケールはビルド内では標準形式 '{3}' に正規化されています。大文字と小文字の区別に関する問題があることをパッケージの作成者に通知するようお勧めします。
+ NETSDK1187: Package {0} {1} has a resource with the locale '{2}'. This locale has been normalized to the standard format '{3}' to prevent casing issues in the build. Consider notifying the package author about this casing issue.Error code is NETSDK1187. 0 is a package name, 1 is a package version, 2 is the incorrect locale string, and 3 is the correct locale string.NETSDK1188: Package {0} {1} has a resource with the locale '{2}'. This locale is not recognized by .NET. Consider notifying the package author that it appears to be using an invalid locale.
- NETSDK1188: パッケージ {0} {1} にロケール '{2}' のリソースがあります。このロケールは .NET では認識されません。無効なロケールを使用していると思われることをパッケージ作成者に通知するようお勧めします。
+ NETSDK1188: Package {0} {1} has a resource with the locale '{2}'. This locale is not recognized by .NET. Consider notifying the package author that it appears to be using an invalid locale.Error code is NETSDK1188. 0 is a package name, 1 is a package version, and 2 is the incorrect locale stringNETSDK1064: Package {0}, version {1} was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.
- NETSDK1064: パッケージ {0}、バージョン {1} が見つかりませんでした。NuGet の復元により、削除された可能性があります。それ以外の場合、NuGet の復元が最大パス長の制限のために一部分しか完了していない可能性があります。
+ NETSDK1064: Package {0}, version {1} was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.{StrBegin="NETSDK1064: "}NETSDK1023: A PackageReference for '{0}' was included in your project. This package is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see {1}
- NETSDK1023: '{0}' の PackageReference がプロジェクトに含められました。このパッケージは .NET SDK によって暗黙的に参照されるため、通常はプロジェクトから参照する必要がありません。詳細については、{1} をご覧ください。
+ NETSDK1023: A PackageReference for '{0}' was included in your project. This package is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see {1}{StrBegin="NETSDK1023: "}NETSDK1071: A PackageReference to '{0}' specified a Version of `{1}`. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs
- NETSDK1071: '{0}' への PackageReference は '{1}' のバージョンを指定しました。このパッケージのバージョンを指定することは推奨されません。詳細については、https://aka.ms/sdkimplicitrefs を参照してください
+ NETSDK1071: A PackageReference to '{0}' specified a Version of `{1}`. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs{StrBegin="NETSDK1071: "}NETSDK1174: Placeholder
- NETSDK1174: プレースホルダー
+ NETSDK1174: Placeholder{StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.NETSDK1189: Prefer32Bit is not supported and has no effect for netcoreapp target.
- NETSDK1189: Prefer32Bit はサポートされておらず、netcoreapp ターゲットには影響しません。
+ NETSDK1189: Prefer32Bit is not supported and has no effect for netcoreapp target.{StrBegin="NETSDK1189: "}NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.
- NETSDK1011: プロジェクト '{0}' の資産が使用されますが、対応する MSBuild プロジェクト パスが '{1}' で見つかりませんでした。
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.{StrBegin="NETSDK1011: "}NETSDK1059: The tool '{0}' is now included in the .NET SDK. Information on resolving this warning is available at (https://aka.ms/dotnetclitools-in-box).
- NETSDK1059: ツール '{0}' は .NET SDK に含まれるようになりました。この警告の解決に関する情報は、(https://aka.ms/dotnetclitools-in-box) で入手できます。
+ NETSDK1059: The tool '{0}' is now included in the .NET SDK. Information on resolving this warning is available at (https://aka.ms/dotnetclitools-in-box).{StrBegin="NETSDK1059: "}NETSDK1093: Project tools (DotnetCliTool) only support targeting .NET Core 2.2 and lower.
- NETSDK1093: プロジェクト ツール (DotnetCliTool) は、ターゲットが .NET Core 2.2 以下の場合のみサポートされます。
+ NETSDK1093: Project tools (DotnetCliTool) only support targeting .NET Core 2.2 and lower.{StrBegin="NETSDK1093: "}NETSDK1198: A publish profile with the name '{0}' was not found in the project. Set the PublishProfile property to a valid file name.
- NETSDK1198: '{0}' という名前の発行プロファイルがプロジェクトに見つかりませんでした。PublishProfile プロパティを有効なファイル名に設定してください。
+ NETSDK1198: A publish profile with the name '{0}' was not found in the project. Set the PublishProfile property to a valid file name.{StrBegin="NETSDK1198: "}NETSDK1122: ReadyToRun compilation will be skipped because it is only supported for .NET Core 3.0 or higher.
- NETSDK1122: ReadyToRun コンパイルは、.NET Core 3.0 以降でのみサポートされているため、スキップされます。
+ NETSDK1122: ReadyToRun compilation will be skipped because it is only supported for .NET Core 3.0 or higher.{StrBegin="NETSDK1122: "}NETSDK1193: If PublishSelfContained is set, it must be either true or false. The value given was '{0}'.
- NETSDK1193: PublishSelfContained が設定されている場合、true または false のいずれかにする必要があります。指定された値は '{0}' でした。
+ NETSDK1193: If PublishSelfContained is set, it must be either true or false. The value given was '{0}'.{StrBegin="NETSDK1193: "}NETSDK1123: Publishing an application to a single-file requires .NET Core 3.0 or higher.
- NETSDK1123: アプリケーションを 1 つのファイルに発行するには、.NET Core 3.0 以降が必要です。
+ NETSDK1123: Publishing an application to a single-file requires .NET Core 3.0 or higher.{StrBegin="NETSDK1123: "}NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher.
- NETSDK1124: アセンブリをトリミングするには、.NET Core 3.0 以降が必要です。
+ NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher.{StrBegin="NETSDK1124: "}NETSDK1129: The 'Publish' target is not supported without specifying a target framework. The current project targets multiple frameworks, you must specify the framework for the published application.
- NETSDK1129: ターゲット フレームワークを指定しないと、'Publish' ターゲットはサポートされません。現在のプロジェクトは複数のフレームワークを対象としています。発行するアプリケーションのフレームワークを指定する必要があります。
+ NETSDK1129: The 'Publish' target is not supported without specifying a target framework. The current project targets multiple frameworks, you must specify the framework for the published application.{StrBegin="NETSDK1129: "}NETSDK1096: Optimizing assemblies for performance failed. You can either exclude the failing assemblies from being optimized, or set the PublishReadyToRun property to false.
- NETSDK1096: アセンブリのパフォーマンスの最適化が失敗しました。失敗したアセンブリを最適化の対象から除外するか、PublishReadyToRun プロパティを false に設定してください。
+ NETSDK1096: Optimizing assemblies for performance failed. You can either exclude the failing assemblies from being optimized, or set the PublishReadyToRun property to false.{StrBegin="NETSDK1096: "}Some ReadyToRun compilations emitted warnings, indicating potential missing dependencies. Missing dependencies could potentially cause runtime failures. To show the warnings, set the PublishReadyToRunShowWarnings property to true.
- 一部の ReadyToRun コンパイルで警告が発生しました。これは、依存関係が見つからないことを示している可能性があります。依存関係が見つからないと、ランタイム エラーが発生する場合があります。警告を表示するには、PublishReadyToRunShowWarnings プロパティを true に設定します。
+ Some ReadyToRun compilations emitted warnings, indicating potential missing dependencies. Missing dependencies could potentially cause runtime failures. To show the warnings, set the PublishReadyToRunShowWarnings property to true.NETSDK1094: Unable to optimize assemblies for performance: a valid runtime package was not found. Either set the PublishReadyToRun property to false, or use a supported runtime identifier when publishing and make sure to restore packages with the PublishReadyToRun property set to true.
- NETSDK1094: アセンブリのパフォーマンスを最適化できません: 有効なランタイム パッケージが見つかりませんでした。PublishReadyToRun プロパティを false に設定するか、公開時に、サポートされているランタイム識別子を使用してください。.NET 6 以降を対象とする場合は、必ず PublishReadyToRun プロパティを true に設定してパッケージを復元してください。
+ NETSDK1094: Unable to optimize assemblies for performance: a valid runtime package was not found. Either set the PublishReadyToRun property to false, or use a supported runtime identifier when publishing and make sure to restore packages with the PublishReadyToRun property set to true.{StrBegin="NETSDK1094: "}NETSDK1095: Optimizing assemblies for performance is not supported for the selected target platform or architecture. Please verify you are using a supported runtime identifier, or set the PublishReadyToRun property to false.
- NETSDK1095: アセンブリのパフォーマンスの最適化は、選択されたターゲット プラットフォームまたはアーキテクチャに対してはサポートされていません。サポートされているランタイム識別子を使用していることを確認するか、PublishReadyToRun プロパティを false に設定してください。
+ NETSDK1095: Optimizing assemblies for performance is not supported for the selected target platform or architecture. Please verify you are using a supported runtime identifier, or set the PublishReadyToRun property to false.{StrBegin="NETSDK1095: "}NETSDK1103: RollForward setting is only supported on .NET Core 3.0 or higher.
- NETSDK1103: ロールフォワードの設定は、.NET Core 3.0 以降でのみサポートされています。
+ NETSDK1103: RollForward setting is only supported on .NET Core 3.0 or higher.{StrBegin="NETSDK1103: "}NETSDK1083: The specified RuntimeIdentifier '{0}' is not recognized.
- NETSDK1083: 指定された RuntimeIdentifier '{0}' は認識されていません。
+ NETSDK1083: The specified RuntimeIdentifier '{0}' is not recognized.{StrBegin="NETSDK1083: "}NETSDK1028: Specify a RuntimeIdentifier
- NETSDK1028: RuntimeIdentifier の指定
+ NETSDK1028: Specify a RuntimeIdentifier{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.
- NETSDK1109: ランタイム リスト ファイル '{0}' が見つかりませんでした。https://aka.ms/dotnet-sdk-issue で、このエラーを .NET チームに報告してください。
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.{StrBegin="NETSDK1109: "}NETSDK1112: The runtime pack for {0} was not downloaded. Try running a NuGet restore with the RuntimeIdentifier '{1}'.
- NETSDK1112: {0} のランタイム パックがダウンロードされませんでした。RuntimeIdentifier '{1}' で NuGet 復元を実行してみてください。
+ NETSDK1112: The runtime pack for {0} was not downloaded. Try running a NuGet restore with the RuntimeIdentifier '{1}'.{StrBegin="NETSDK1112: "}NETSDK1185: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true.
- NETSDK1185: FrameworkReference '{0}' のランタイム パックは使用できませんでした。DisableTransitiveFrameworkReferenceDownloads が true に設定されたことが原因である可能性があります。
+ NETSDK1185: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true.{StrBegin="NETSDK1185: "}NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. For more information, see https://aka.ms/netsdk1150
- NETSDK1150: 参照先プロジェクト '{0}' は自己完結型以外の実行可能ファイルです。 自己完結型以外の実行可能ファイルは、自己完結型の実行可能ファイルでは参照できません。詳細については、「https://aka.ms/netsdk1150」を参照してください
+ NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. For more information, see https://aka.ms/netsdk1150{StrBegin="NETSDK1150: "}
@@ -822,7 +827,7 @@ The following are names of parameters or literal values and should not be transl
NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty.
- NETSDK1048: 'AdditionalProbingPaths' が GenerateRuntimeConfigurationFiles に指定されましたが、'RuntimeConfigDevPath' が空であるためスキップされます。
+ NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty.{StrBegin="NETSDK1048: "}
@@ -834,107 +839,107 @@ The following are names of parameters or literal values and should not be transl
NETSDK1138: The target framework '{0}' is out of support and will not receive security updates in the future. Please refer to {1} for more information about the support policy.
- NETSDK1138: ターゲット フレームワーク '{0}' はサポートされていません。今後、セキュリティ更新プログラムを受け取ることはありません。サポート ポリシーの詳細については、{1} をご覧ください。
+ NETSDK1138: The target framework '{0}' is out of support and will not receive security updates in the future. Please refer to {1} for more information about the support policy.{StrBegin="NETSDK1138: "}NETSDK1046: The TargetFramework value '{0}' is not valid. To multi-target, use the 'TargetFrameworks' property instead.
- NETSDK1046: TargetFramework 値 '{0}' が無効です。複数をターゲットとするには、代わりに 'TargetFrameworks' プロパティを使用してください。
+ NETSDK1046: The TargetFramework value '{0}' is not valid. To multi-target, use the 'TargetFrameworks' property instead.{StrBegin="NETSDK1046: "}NETSDK1145: The {0} pack is not installed and NuGet package restore is not supported. Upgrade Visual Studio, remove global.json if it specifies a certain SDK version, and uninstall the newer SDK. For more options visit https://aka.ms/targeting-apphost-pack-missing Pack Type:{0}, Pack directory: {1}, targetframework: {2}, Pack PackageId: {3}, Pack Package Version: {4}
- NETSDK1145: {0} パックはインストールされておらず、NuGet パッケージの復元はサポートされていません。Visual Studio をアップグレードして、global.json を削除し (特定の SDK バージョンがそれに指定されている場合)、より新しい SDK をアンインストールします。その他のオプションについては、https://aka.ms/targeting-apphost-pack-missing にアクセスしてください。パックの種類: {0}、パック ディレクトリ: {1}、targetframework: {2}、パックの PackageId: {3}、パック パッケージ バージョン: {4}
+ NETSDK1145: The {0} pack is not installed and NuGet package restore is not supported. Upgrade Visual Studio, remove global.json if it specifies a certain SDK version, and uninstall the newer SDK. For more options visit https://aka.ms/targeting-apphost-pack-missing Pack Type:{0}, Pack directory: {1}, targetframework: {2}, Pack PackageId: {3}, Pack Package Version: {4}{StrBegin="NETSDK1145: "}NETSDK1127: The targeting pack {0} is not installed. Please restore and try again.
- NETSDK1127: ターゲット パック {0} がインストールされていません。復元して、もう一度お試しください。
+ NETSDK1127: The targeting pack {0} is not installed. Please restore and try again.{StrBegin="NETSDK1127: "}NETSDK1184: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true.
- NETSDK1184: FrameworkReference '{0}' の Targeting Pack は使用できませんでした。DisableTransitiveFrameworkReferenceDownloads が true に設定されたことが原因である可能性があります。
+ NETSDK1184: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true.{StrBegin="NETSDK1184: "}NETSDK1175: Windows Forms is not supported or recommended with trimming enabled. Please go to https://aka.ms/dotnet-illink/windows-forms for more details.
- NETSDK1175: Windows フォームに関して、トリミングの有効化はサポートおよび推奨されていません。詳細については、https://aka.ms/dotnet-illink/windows-forms を参照してください。
+ NETSDK1175: Windows Forms is not supported or recommended with trimming enabled. Please go to https://aka.ms/dotnet-illink/windows-forms for more details.{StrBegin="NETSDK1175: "}NETSDK1168: WPF is not supported or recommended with trimming enabled. Please go to https://aka.ms/dotnet-illink/wpf for more details.
- NETSDK1168: WPF に関して、トリミングの有効化はサポートおよび推奨されていません。詳細については、https://aka.ms/dotnet-illink/wpf を参照してください。
+ NETSDK1168: WPF is not supported or recommended with trimming enabled. Please go to https://aka.ms/dotnet-illink/wpf for more details.{StrBegin="NETSDK1168: "}NETSDK1172: The provided type library '{0}' does not exist.
- NETSDK1172: 指定済みのタイプ ライブラリ '{0}' は存在しません。
+ NETSDK1172: The provided type library '{0}' does not exist.{StrBegin="NETSDK1172: "}NETSDK1016: Unable to find resolved path for '{0}'.
- NETSDK1016: 解決された '{0}' のパスが見つかりません。
+ NETSDK1016: Unable to find resolved path for '{0}'.{StrBegin="NETSDK1016: "}Unable to use package assets cache due to I/O error. This can occur when the same project is built more than once in parallel. Performance may be degraded, but the build result will not be impacted.
- I/O エラーのため、パッケージ資産のキャッシュを使用できません。これは、同じプロジェクトが同時に複数回ビルドされるときに発生することがあります。パフォーマンスが低下する可能性がありますが、ビルドの結果には影響はありません。
+ Unable to use package assets cache due to I/O error. This can occur when the same project is built more than once in parallel. Performance may be degraded, but the build result will not be impacted.NETSDK1012: Unexpected file type for '{0}'. Type is both '{1}' and '{2}'.
- NETSDK1012: '{0}' のファイルの種類が正しくありません。種類は '{1}' と '{2}' の両方です。
+ NETSDK1012: Unexpected file type for '{0}'. Type is both '{1}' and '{2}'.{StrBegin="NETSDK1012: "}NETSDK1073: The FrameworkReference '{0}' was not recognized
- NETSDK1073: FrameworkReference '{0}' は認識されませんでした
+ NETSDK1073: The FrameworkReference '{0}' was not recognized{StrBegin="NETSDK1073: "}NETSDK1186: This project depends on Maui Essentials through a project or NuGet package reference, but doesn't declare that dependency explicitly. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary).
- NETSDK1186: このプロジェクトでは、プロジェクトまたは NuGet パッケージ参照を介して Maui Essentials に依存していますが、その依存関係が明示的に宣言されていません。このプロジェクトをビルドするには、UseMauiEssentials プロパティを true に設定する必要があります (必要に応じて、Maui ワークロードをインストールしてください)。
+ NETSDK1186: This project depends on Maui Essentials through a project or NuGet package reference, but doesn't declare that dependency explicitly. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary).{StrBegin="NETSDK1186: "}NETSDK1137: It is no longer necessary to use the Microsoft.NET.Sdk.WindowsDesktop SDK. Consider changing the Sdk attribute of the root Project element to 'Microsoft.NET.Sdk'.
- NETSDK1137: Microsoft.NET.Sdk.WindowsDesktop SDK を使用する必要はなくなりました。ルート プロジェクト要素の SDK 属性を 'Microsoft.NET.Sdk' に変更することをご検討ください。
+ NETSDK1137: It is no longer necessary to use the Microsoft.NET.Sdk.WindowsDesktop SDK. Consider changing the Sdk attribute of the root Project element to 'Microsoft.NET.Sdk'.{StrBegin="NETSDK1137: "}NETSDK1009: Unrecognized preprocessor token '{0}' in '{1}'.
- NETSDK1009: 認識されないプリプロセッサ トークン '{0}' が '{1}' に存在します。
+ NETSDK1009: Unrecognized preprocessor token '{0}' in '{1}'.{StrBegin="NETSDK1009: "}NETSDK1081: The targeting pack for {0} was not found. You may be able to resolve this by running a NuGet restore on the project.
- NETSDK1081: {0} の Targeting Pack が見つかりませんでした。プロジェクトで NuGet の復元を実行することにより、この問題を解決できる場合があります。
+ NETSDK1081: The targeting pack for {0} was not found. You may be able to resolve this by running a NuGet restore on the project.{StrBegin="NETSDK1081: "}NETSDK1019: {0} is an unsupported framework.
- NETSDK1019: {0} は、サポートされていないフレームワークです。
+ NETSDK1019: {0} is an unsupported framework.{StrBegin="NETSDK1019: "}NETSDK1056: Project is targeting runtime '{0}' but did not resolve any runtime-specific packages. This runtime may not be supported by the target framework.
- NETSDK1056: プロジェクトはランタイム '{0}' をターゲットとしていますが、ランタイム固有のパッケージを解決しませんでした。このランタイムはターゲットのフレームワークでサポートされていない可能性があります。
+ NETSDK1056: Project is targeting runtime '{0}' but did not resolve any runtime-specific packages. This runtime may not be supported by the target framework.{StrBegin="NETSDK1056: "}NETSDK1050: The version of Microsoft.NET.Sdk used by this project is insufficient to support references to libraries targeting .NET Standard 1.5 or higher. Please install version 2.0 or higher of the .NET Core SDK.
- NETSDK1050: このプロジェクトで使用される Microsoft.NET.Sdk のバージョンは、.NET Standard 1.5 以上を対象とするライブラリへの参照をサポートするには不十分です。.NET Core SDK のバージョン 2.0 以上をインストールしてください。
+ NETSDK1050: The version of Microsoft.NET.Sdk used by this project is insufficient to support references to libraries targeting .NET Standard 1.5 or higher. Please install version 2.0 or higher of the .NET Core SDK.{StrBegin="NETSDK1050: "}NETSDK1045: The current .NET SDK does not support targeting {0} {1}. Either target {0} {2} or lower, or use a version of the .NET SDK that supports {0} {1}.
- NETSDK1045: 現在の .NET SDK は、ターゲットとする {0} {1} をサポートしていません。{0} {2} 以下をターゲットとするか、{0} {1} をサポートする .NET SDK のバージョンを使用してください。
+ NETSDK1045: The current .NET SDK does not support targeting {0} {1}. Either target {0} {2} or lower, or use a version of the .NET SDK that supports {0} {1}.{StrBegin="NETSDK1045: "}NETSDK1139: The target platform identifier {0} was not recognized.
- NETSDK1139: ターゲット プラットフォーム識別子 {0} は認識されませんでした。
+ NETSDK1139: The target platform identifier {0} was not recognized.{StrBegin="NETSDK1139: "}
@@ -944,66 +949,66 @@ The following are names of parameters or literal values and should not be transl
NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.
- NETSDK1107: Windows デスクトップ アプリケーションを作成するには、Microsoft.NET.Sdk.WindowsDesktop が必要です。現在の SDK では、'UseWpf' と 'UseWindowsForms' はサポートされていません。
+ NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.{StrBegin="NETSDK1107: "}NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
- NETSDK1057: プレビュー版の .NET を使用しています。https://aka.ms/dotnet-support-policy をご覧ください
+ NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policyNETSDK1131: Producing a managed Windows Metadata component with WinMDExp is not supported when targeting {0}.
- NETSDK1131: {0} をターゲットにする場合、WinMDExp を使用したマネージド Windows メタデータ コンポーネント生成はサポートされていません。
+ NETSDK1131: Producing a managed Windows Metadata component with WinMDExp is not supported when targeting {0}.{StrBegin="NETSDK1131: "}NETSDK1130: {1} cannot be referenced. Referencing a Windows Metadata component directly when targeting .NET 5 or higher is not supported. For more information, see https://aka.ms/netsdk1130
- NETSDK1130: {1} 参照できません。.NET 5 以上のターゲットを設定する場合、Windows Metadata コンポーネントを直接参照することはできません。詳細については、 「https://aka.ms/netsdk1130」をご参照ください。
+ NETSDK1130: {1} cannot be referenced. Referencing a Windows Metadata component directly when targeting .NET 5 or higher is not supported. For more information, see https://aka.ms/netsdk1130{StrBegin="NETSDK1130: "}NETSDK1149: {0} cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed. For more information, see https://aka.ms/netsdk1149
- NETSDK1149: NET 5 以上でサポートされなくなった WinRT に組み込みのサポートが使用されている可能性があり、{0}は参照できません。.NET 5 をサポートしているコンポーネントの更新バージョンが必要です。詳細については、「 https://aka.ms/netsdk1149」をご参照ください。
+ NETSDK1149: {0} cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed. For more information, see https://aka.ms/netsdk1149{StrBegin="NETSDK1149: "}NETSDK1106: Microsoft.NET.Sdk.WindowsDesktop requires 'UseWpf' or 'UseWindowsForms' to be set to 'true'
- NETSDK1106: Microsoft.NET.Sdk.WindowsDesktop では、'UseWpf' または 'UseWindowsForms' を 'true' に設定する必要があります
+ NETSDK1106: Microsoft.NET.Sdk.WindowsDesktop requires 'UseWpf' or 'UseWindowsForms' to be set to 'true'{StrBegin="NETSDK1106: "}NETSDK1105: Windows desktop applications are only supported on .NET Core 3.0 or higher.
- NETSDK1105: Windows デスクトップ アプリケーションは、.NET Core 3.0 以降でのみサポートされています。
+ NETSDK1105: Windows desktop applications are only supported on .NET Core 3.0 or higher.{StrBegin="NETSDK1105: "}NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true.
- NETSDK1100: このオペレーティング システムで Windows を対象とするプロジェクトをビルドするには、EnableWindowsTargeting プロパティを true に設定します。
+ NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true.{StrBegin="NETSDK1100: "}NETSDK1136: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF, or referencing projects or packages that do so.
- NETSDK1136: Windows フォームまたは WPF を使用しているとき、またはそのようなプロジェクトまたはパッケージを参照しているときには、ターゲット プラットフォームを Windows に設定する必要があります (通常は TargetFramework プロパティに '-windows' を含めることによる)。
+ NETSDK1136: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF, or referencing projects or packages that do so.{StrBegin="NETSDK1136: "}NETSDK1148: A referenced assembly was compiled using a newer version of Microsoft.Windows.SDK.NET.dll. Please update to a newer .NET SDK in order to reference this assembly.
- NETSDK1148: 参照アセンブリは、より新しいバージョンの Microsoft.Windows.SDK.NET.dll を使用してコンパイルされています。このアセンブリを参照するには、より新しい .NET SDK に更新してください。
+ NETSDK1148: A referenced assembly was compiled using a newer version of Microsoft.Windows.SDK.NET.dll. Please update to a newer .NET SDK in order to reference this assembly.{StrBegin="NETSDK1148: "}NETSDK1178: The project depends on the following workload packs that do not exist in any of the workloads available in this installation: {0}
You may need to build the project on another operating system or architecture, or update the .NET SDK.
- NETSDK1178: プロジェクトは、このインストールで使用可能なワークロードのいずれにも存在しない次のワークロード パックに依存しています。{0}
-別のオペレーティング システムまたはアーキテクチャでプロジェクトをビルドするか、.NET SDK を更新することが必要な場合があります。
+ NETSDK1178: The project depends on the following workload packs that do not exist in any of the workloads available in this installation: {0}
+You may need to build the project on another operating system or architecture, or update the .NET SDK.{StrBegin="NETSDK1178: "}NETSDK1147: To build this project, the following workloads must be installed: {0}
To install these workloads, run the following command: dotnet workload restore
- NETSDK1147: このプロジェクトをビルドするには、次のワークロードをインストールする必要があります: {0}
-これらのワークロードをインストールするには、次のコマンドを実行します: dotnet workload restore
+ NETSDK1147: To build this project, the following workloads must be installed: {0}
+To install these workloads, run the following command: dotnet workload restore{StrBegin="NETSDK1147: "} LOCALIZATION: Do not localize "dotnet workload restore"
diff --git a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf
index ca92ee1eb2c4..90a577921457 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: RuntimeIdentifier 지정{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: 런타임 목록 파일 '{0}'을(를) 찾을 수 없습니다. https://aka.ms/dotnet-sdk-issue에서 .NET 팀에 이 오류를 보고하세요.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf
index eaeeedb2b515..dfb78b16fd25 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: Określ element RuntimeIdentifier{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: Nie odnaleziono pliku listy środowiska uruchomieniowego „{0}”. Zgłoś ten błąd zespołowi platformy .NET tutaj: https://aka.ms/dotnet-sdk-issue.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf
index cf57d2ddefb1..997b8e460d14 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: Especifique um RuntimeIdentifier{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: o arquivo da lista de runtime '{0}' não foi encontrado. Relate esse erro à equipe do .NET aqui: https://aka.ms/dotnet-sdk-issue.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf
index 102bfba0286a..887d94b3ad27 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: укажите RuntimeIdentifier{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: не найден файл списка среды выполнения "{0}". Сообщите об этой ошибке группе разработчиков .NET по следующему адресу: https://aka.ms/dotnet-sdk-issue.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf
index d2e4ff9d0263..a873cba13a7f 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: Bir RuntimeIdentifier belirtin{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: '{0}' çalışma zamanı listesi dosyası bulunamadı. Bu hatayı https://aka.ms/dotnet-sdk-issue adresinden .NET ekibine bildirin.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf
index 0fe05f1970f1..175c73e5e84f 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: 指定一个 RuntimeIdentifier{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: 找不到运行时列表文件“{0}”。请在此处将此错误报告给 .NET 团队: https://aka.ms/dotnet-sdk-issue。
diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf
index e68177e22aa1..37cba2a2639a 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf
@@ -795,6 +795,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1028: 指定 RuntimeIdentifier{StrBegin="NETSDK1028: "}
+
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
+ {StrBegin="NETSDK1201: "}
+ NETSDK1109: Runtime list file '{0}' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue.NETSDK1109: 找不到執行階段清單檔案 '{0}'。請將此錯誤回報給 .NET 小組: https://aka.ms/dotnet-sdk-issue。
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs
index 6de7b5d7cc8e..2c97ab43bcd5 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs
+++ b/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs
@@ -4,8 +4,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Runtime.Versioning;
using System.Xml.Linq;
using Microsoft.Build.Framework;
+using NuGet.Frameworks;
namespace Microsoft.NET.Build.Tasks
{
@@ -53,6 +55,20 @@ protected override void ExecuteCore()
bool referencedProjectIsSelfContained = MSBuildUtilities.ConvertStringToBool(projectAdditionalProperties["SelfContained"]);
bool referencedProjectHadSelfContainedSpecified = MSBuildUtilities.ConvertStringToBool(projectAdditionalProperties["_SelfContainedWasSpecified"]);
+ // We can only access TargetFrameworks and NearestTargetFramework to find the referenced project "TargetFramework".
+ // We rely on the nearest one because it will pick the lowest 'most-compatible' tfm for the referencer and referencee projects.
+ // Since 'younger' TFMs are the ones that would error and are generally also what gets picked as 'most-copmaptible,' we can use it.
+ FrameworkName? referencedProjectTargetFramework = null;
+ var targetFrameworkMonikerIndex = Array.FindIndex(project.GetMetadata("TargetFrameworks").Split(';'), targetFramework => targetFramework == nearestTargetFramework);
+
+ // Since TargetFrameworks can have aliases that aren't the real TFM, we need to uncover the potential alias to the raw TargetFramework in the TFMs by using its index
+ var targetFrameworkMonikers = project.GetMetadata("TargetFrameworkMonikers").Split(';');
+ if (targetFrameworkMonikerIndex != -1 && targetFrameworkMonikerIndex < targetFrameworkMonikers.Length)
+ {
+ // we never expect this if statement to not go through, but if there is a bug with targetframeworks we need to be careful not to fail here.
+ referencedProjectTargetFramework = new FrameworkName(targetFrameworkMonikers[targetFrameworkMonikerIndex]);
+ }
+
var globalProperties = BuildEngine6.GetGlobalProperties();
bool selfContainedIsGlobalProperty = globalProperties.ContainsKey("SelfContained");
@@ -75,10 +91,13 @@ protected override void ExecuteCore()
referencedProjectIsSelfContained = true;
}
+ // We need to check if referenced project will become SelfContained because of its RuntimeIdentifier. This only happens on TargetFrameworks less than net8.0.
+ bool runtimeIdentifierInfersSelfContained = referencedProjectTargetFramework != null && referencedProjectTargetFramework.Identifier == ".NETCoreApp" && referencedProjectTargetFramework.Version.Major < 8;
+
// If the project is NOT RID agnostic, then a global RuntimeIdentifier will flow to it.
// If the project didn't explicitly specify a value for SelfContained, then this will
// set SelfContained to true
- if (runtimeIdentifierIsGlobalProperty && !referencedProjectHadSelfContainedSpecified)
+ if (runtimeIdentifierInfersSelfContained && runtimeIdentifierIsGlobalProperty && !referencedProjectHadSelfContainedSpecified)
{
referencedProjectIsSelfContained = true;
}
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets
index 07d07e979990..c76f66362028 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets
+++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets
@@ -61,6 +61,21 @@ Copyright (c) .NET Foundation. All rights reserved.
win7-x86
+
+
+ true
+
+
+
@@ -149,7 +164,14 @@ Copyright (c) .NET Foundation. All rights reserved.
<_SelfContainedWasSpecified Condition="'$(SelfContained)' != ''">true
- true
+
+
+ true
+
false
<_RuntimeIdentifierUsesAppHost Condition="$(RuntimeIdentifier.StartsWith('ios')) or $(RuntimeIdentifier.StartsWith('tvos')) or $(RuntimeIdentifier.StartsWith('maccatalyst')) or $(RuntimeIdentifier.StartsWith('android')) or $(RuntimeIdentifier.StartsWith('browser'))">false
<_RuntimeIdentifierUsesAppHost Condition="'$(_RuntimeIdentifierUsesAppHost)' == ''">true
@@ -222,10 +244,15 @@ Copyright (c) .NET Foundation. All rights reserved.
because we do not want the behavior to be a breaking change compared to version 3.0 -->
+ ResourceName="PublishReadyToRunRequiresVersion30" />
+ ResourceName="PublishTrimmedRequiresVersion30" />
+
+
+
-
+
false
@@ -1164,7 +1164,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<_UseAttributeForTargetFrameworkInfoPropertyNames Condition="$([MSBuild]::VersionGreaterThanOrEquals($(MSBuildVersion), '17.0'))">true
-
+
@@ -1173,9 +1173,7 @@ Copyright (c) .NET Foundation. All rights reserved.
SelfContained="$(SelfContained)"
IsExecutable="$(_IsExecutable)"
ReferencedProjects="@(_MSBuildProjectReferenceExistent)"
- UseAttributeForTargetFrameworkInfoPropertyNames="$(_UseAttributeForTargetFrameworkInfoPropertyNames)"
- />
-
+ UseAttributeForTargetFrameworkInfoPropertyNames="$(_UseAttributeForTargetFrameworkInfoPropertyNames)"/>
+
+ true
+
+
@@ -23,7 +28,7 @@
<_Parameter1>AspNetTestTfm
<_Parameter2>$(SdkTargetFramework)
-
@@ -42,7 +47,7 @@
-
+
diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmStaticWebAssetsIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmStaticWebAssetsIntegrationTest.cs
index 725bdace52a9..a4f919cc6f2f 100644
--- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmStaticWebAssetsIntegrationTest.cs
+++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmStaticWebAssetsIntegrationTest.cs
@@ -30,7 +30,7 @@ public void StaticWebAssets_BuildMinimal_Works()
var build = new BuildCommand(ProjectDirectory);
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
buildResult.Should().Pass();
var outputPath = build.GetOutputDirectory(DefaultTfm).ToString();
@@ -64,7 +64,7 @@ public void StaticWebAssets_PublishMinimal_Works()
var publish = new PublishCommand(ProjectDirectory);
publish.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var publishResult = publish.Execute("/bl");
+ var publishResult = publish.Execute();
publishResult.Should().Pass();
var publishPath = publish.GetOutputDirectory(DefaultTfm).ToString();
@@ -91,7 +91,7 @@ public void StaticWebAssets_Build_Hosted_Works()
var build = new BuildCommand(ProjectDirectory, "blazorhosted");
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
buildResult.Should().Pass();
var outputPath = build.GetOutputDirectory(DefaultTfm).ToString();
@@ -126,7 +126,7 @@ public void StaticWebAssets_Publish_Hosted_Works()
var publish = new PublishCommand(ProjectDirectory, "blazorhosted");
publish.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var publishResult = publish.Execute("/bl");
+ var publishResult = publish.Execute();
publishResult.Should().Pass();
var publishPath = publish.GetOutputDirectory(DefaultTfm).ToString();
@@ -157,7 +157,7 @@ public void StaticWebAssets_Publish_DoesNotIncludeXmlDocumentationFiles_AsAssets
var publish = new PublishCommand(ProjectDirectory, "blazorhosted");
publish.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var publishResult = publish.Execute("/p:GenerateDocumentationFile=true", "/bl");
+ var publishResult = publish.Execute("/p:GenerateDocumentationFile=true");
publishResult.Should().Pass();
var publishPath = publish.GetOutputDirectory(DefaultTfm).ToString();
@@ -202,7 +202,7 @@ public void StaticWebAssets_HostedApp_ReferencingNetStandardLibrary_Works()
var build = new BuildCommand(ProjectDirectory, "blazorhosted");
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
buildResult.Should().Pass();
var outputPath = build.GetOutputDirectory(DefaultTfm).ToString();
@@ -256,7 +256,7 @@ public void StaticWebAssets_BackCompatibilityPublish_Hosted_Works()
var publish = new PublishCommand(ProjectDirectory, "blazorhosted");
publish.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var publishResult = publish.Execute("/bl");
+ var publishResult = publish.Execute();
publishResult.Should().Pass();
var publishPath = publish.GetOutputDirectory(DefaultTfm).ToString();
diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIncrementalismTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIncrementalismTest.cs
index 0480c6fb5bc7..c7a553e3a0fd 100644
--- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIncrementalismTest.cs
+++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIncrementalismTest.cs
@@ -73,7 +73,7 @@ public void Build_GzipCompression_IsIncremental()
var build = new BuildCommand(projectDirectory, "blazorwasm");
build.WithWorkingDirectory(projectDirectory.TestRoot);
- build.Execute("/bl")
+ build.Execute()
.Should()
.Pass();
diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs
index d47b18e8a8ae..7de007459866 100644
--- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs
+++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs
@@ -104,12 +104,12 @@ public void Build_Works_WithLibraryUsingHintPath()
var buildLibraryCommand = new BuildCommand(testInstance, "razorclasslibrary");
buildLibraryCommand.WithWorkingDirectory(testInstance.TestRoot);
- buildLibraryCommand.Execute("/bl")
+ buildLibraryCommand.Execute()
.Should().Pass();
var buildCommand = new BuildCommand(testInstance, "blazorwasm");
buildCommand.WithWorkingDirectory(testInstance.TestRoot);
- buildCommand.Execute("/bl")
+ buildCommand.Execute()
.Should().Pass();
var buildOutputDirectory = buildCommand.GetOutputDirectory(DefaultTfm).ToString();
@@ -170,7 +170,7 @@ public void Build_ProducesBootJsonDataWithExpectedContent()
var buildCommand = new BuildCommand(testInstance, "blazorwasm");
buildCommand.WithWorkingDirectory(testInstance.TestRoot);
- buildCommand.Execute("/bl")
+ buildCommand.Execute()
.Should().Pass();
var buildOutputDirectory = buildCommand.GetOutputDirectory(DefaultTfm).ToString();
@@ -209,7 +209,7 @@ public void Build_InRelease_ProducesBootJsonDataWithExpectedContent()
var buildCommand = new BuildCommand(testInstance, "blazorwasm");
buildCommand.WithWorkingDirectory(testInstance.TestRoot);
- buildCommand.Execute("/p:Configuration=Release", "/bl")
+ buildCommand.Execute("/p:Configuration=Release")
.Should().Pass();
var buildOutputDirectory = buildCommand.GetOutputDirectory(DefaultTfm, "Release").ToString();
@@ -320,7 +320,7 @@ public void Publish_WithInvariantGlobalizationEnabled_DoesNotCopyGlobalizationDa
var publishCommand = new PublishCommand(testInstance, "blazorhosted");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/bl")
+ publishCommand.Execute()
.Should().Pass();
var publishOutputDirectory = publishCommand.GetOutputDirectory(DefaultTfm).ToString();
@@ -400,7 +400,7 @@ public void Publish_WithBlazorWebAssemblyLoadCustomGlobalizationData_SetsICUData
var publishCommand = new PublishCommand(testInstance, "blazorhosted");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/bl")
+ publishCommand.Execute()
.Should().Pass();
var publishDirectory = publishCommand.GetOutputDirectory(DefaultTfm).ToString();
@@ -481,7 +481,7 @@ public void Publish_WithBlazorWebAssemblyLoadAllGlobalizationData_SetsICUDataMod
var publishCommand = new PublishCommand(testInstance, "blazorhosted");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/bl")
+ publishCommand.Execute()
.Should().Pass();
var publishDirectory = publishCommand.GetOutputDirectory(DefaultTfm).ToString();
@@ -512,7 +512,7 @@ public void Build_Hosted_Works()
var buildCommand = new BuildCommand(testInstance, "blazorhosted");
buildCommand.WithWorkingDirectory(testInstance.TestRoot);
- buildCommand.Execute("/bl").Should().Pass();
+ buildCommand.Execute().Should().Pass();
var buildOutputDirectory = buildCommand.GetOutputDirectory(DefaultTfm).ToString();
@@ -545,7 +545,7 @@ public void Build_SatelliteAssembliesAreCopiedToBuildOutput()
var buildCommand = new BuildCommand(ProjectDirectory, "blazorwasm");
buildCommand.WithWorkingDirectory(ProjectDirectory.TestRoot);
- buildCommand.Execute("/bl").Should().Pass();
+ buildCommand.Execute().Should().Pass();
var outputPath = buildCommand.GetOutputDirectory(DefaultTfm).ToString();
var intermediateOutputPath = buildCommand.GetIntermediateDirectory(DefaultTfm).ToString();
diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildLazyLoadTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildLazyLoadTest.cs
index 870ddd6cdcb8..ced1c3abd458 100644
--- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildLazyLoadTest.cs
+++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildLazyLoadTest.cs
@@ -41,7 +41,7 @@ public void Build_LazyLoadExplicitAssembly_Debug_Works()
// Act
var buildCommand = new BuildCommand(testInstance, "blazorwasm");
buildCommand.WithWorkingDirectory(testInstance.TestRoot);
- buildCommand.Execute("/bl")
+ buildCommand.Execute()
.Should().Pass();
var outputDirectory = buildCommand.GetOutputDirectory(DefaultTfm);
@@ -138,7 +138,7 @@ public void Publish_LazyLoadExplicitAssembly_Debug_Works()
// Act
var publishCommand = new PublishCommand(testInstance, "blazorwasm");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/bl")
+ publishCommand.Execute()
.Should().Pass();
var outputDirectory = publishCommand.GetOutputDirectory(DefaultTfm);
diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmCompressionTests.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmCompressionTests.cs
index 637b416d7f01..b03c51ba4310 100644
--- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmCompressionTests.cs
+++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmCompressionTests.cs
@@ -100,7 +100,7 @@ public void Publish_WithLinkerAndCompression_IsIncremental()
var publishCommand = new PublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorhosted"));
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/bl").Should().Pass();
+ publishCommand.Execute().Should().Pass();
var buildOutputDirectory = publishCommand.GetOutputDirectory(DefaultTfm);
@@ -164,7 +164,7 @@ public void Publish_CompressesAllFrameworkFiles()
var publishCommand = new PublishCommand(testInstance, "blazorwasm");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/bl").Should().Pass();
+ publishCommand.Execute().Should().Pass();
var extensions = new[] { ".dll", ".js", ".pdb", ".wasm", ".map", ".json", ".dat" };
diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmJsModulesIntegrationTests.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmJsModulesIntegrationTests.cs
index d4aff4ff23ec..7743a9951169 100644
--- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmJsModulesIntegrationTests.cs
+++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmJsModulesIntegrationTests.cs
@@ -31,7 +31,7 @@ public void Build_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonM
var build = new BuildCommand(ProjectDirectory);
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
buildResult.Should().Pass();
var outputPath = build.GetOutputDirectory(DefaultTfm).ToString();
@@ -63,7 +63,7 @@ public void JSModules_ManifestIncludesModuleTargetPaths()
var build = new BuildCommand(ProjectDirectory, "blazorhosted");
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
buildResult.Should().Pass();
var outputPath = build.GetOutputDirectory(DefaultTfm).ToString();
@@ -98,7 +98,7 @@ public void Publish_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJso
var publish = new PublishCommand(ProjectDirectory);
publish.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var publishResult = publish.Execute("/bl");
+ var publishResult = publish.Execute();
publishResult.Should().Pass();
var outputPath = publish.GetOutputDirectory(DefaultTfm).ToString();
@@ -150,7 +150,7 @@ public void JsModules_CanHaveDifferentBuildAndPublishModules()
var publish = new PublishCommand(ProjectDirectory);
publish.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var publishResult = publish.Execute("/bl");
+ var publishResult = publish.Execute();
publishResult.Should().Pass();
var outputPath = publish.GetOutputDirectory(DefaultTfm).ToString();
@@ -224,7 +224,7 @@ public void JsModules_CanCustomizeBlazorInitialization()
var publish = new PublishCommand(ProjectDirectory);
publish.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var publishResult = publish.Execute("/bl");
+ var publishResult = publish.Execute();
publishResult.Should().Pass();
var outputPath = publish.GetOutputDirectory(DefaultTfm).ToString();
@@ -291,7 +291,7 @@ public void JsModules_Hosted_CanCustomizeBlazorInitialization()
var publish = new PublishCommand(ProjectDirectory, "blazorhosted");
publish.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var publishResult = publish.Execute("/bl");
+ var publishResult = publish.Execute();
publishResult.Should().Pass();
var outputPath = publish.GetOutputDirectory(DefaultTfm).ToString();
diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs
index 99526b62124c..656725b20a7f 100644
--- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs
+++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs
@@ -126,12 +126,12 @@ public void Publish_Works_WithLibraryUsingHintPath()
var buildLibraryCommand = new BuildCommand(testInstance, "razorclasslibrary");
buildLibraryCommand.WithWorkingDirectory(testInstance.TestRoot);
- buildLibraryCommand.Execute("/bl")
+ buildLibraryCommand.Execute()
.Should().Pass();
var publishCommand = new PublishCommand(testInstance, "blazorwasm");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/bl").Should().Pass();
+ publishCommand.Execute().Should().Pass();
var publishOutputDirectory = publishCommand.GetOutputDirectory(DefaultTfm).ToString();
@@ -259,7 +259,7 @@ public void Publish_WithNoBuild_Works()
var publishCommand = new PublishCommand(testInstance, "blazorwasm");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/p:NoBuild=true", "/bl").Should().Pass();
+ publishCommand.Execute("/p:NoBuild=true").Should().Pass();
var publishDirectory = publishCommand.GetOutputDirectory(DefaultTfm);
var blazorPublishDirectory = Path.Combine(publishDirectory.ToString(), "wwwroot");
@@ -539,7 +539,7 @@ public void Publish_HostedApp_DefaultSettings_Works()
var publishCommand = new PublishCommand(testInstance, "blazorhosted");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/bl").Should().Pass();
+ publishCommand.Execute().Should().Pass();
var publishOutputDirectory = publishCommand.GetOutputDirectory(DefaultTfm);
@@ -677,7 +677,7 @@ public void Publish_HostedApp_WithSatelliteAssemblies()
var publishCommand = new PublishCommand(testInstance, "blazorhosted");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/bl").Should().Pass();
+ publishCommand.Execute().Should().Pass();
var publishOutputDirectory = publishCommand.GetOutputDirectory(DefaultTfm);
@@ -808,7 +808,7 @@ public void Publish_HostedApp_WithNoBuild_Works()
var publishCommand = new PublishCommand(testInstance, "blazorhosted");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/p:NoBuild=true", "/bl").Should().Pass();
+ publishCommand.Execute("/p:NoBuild=true").Should().Pass();
var publishDirectory = publishCommand.GetOutputDirectory(DefaultTfm);
// Make sure the main project exists
@@ -1083,7 +1083,7 @@ public void Publish_HostedApp_WithRidSpecifiedInCLI_Works()
var publishCommand = new PublishCommand(testInstance, "blazorhosted");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/p:RuntimeIdentifier=linux-x64", "/bl").Should().Pass();
+ publishCommand.Execute("/p:RuntimeIdentifier=linux-x64").Should().Pass();
AssertRIDPublishOuput(publishCommand, testInstance, hosted: true);
}
@@ -1111,7 +1111,7 @@ public void Publish_HostedApp_WithRidSpecifiedAsArgument_NoSelfContained_Works()
var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorhosted"));
publishCommand.WithRuntime("linux-x64");
publishCommand.WithWorkingDirectory(Path.Combine(testInstance.TestRoot, "blazorhosted"));
- var result = publishCommand.Execute("--no-self-contained", "/bl");
+ var result = publishCommand.Execute("--no-self-contained");
result.Should().Pass();
AssertRIDPublishOuput(publishCommand, testInstance, hosted: true, selfContained: false);
}
@@ -1126,7 +1126,7 @@ public void Publish_HostedApp_WithRidSpecifiedAsArgument_Works()
var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorhosted"));
publishCommand.WithWorkingDirectory(Path.Combine(testInstance.TestRoot, "blazorhosted"));
publishCommand.WithRuntime("linux-x64");
- var result = publishCommand.Execute("--self-contained", "/bl");
+ var result = publishCommand.Execute("--self-contained");
result.Should().Pass();
AssertRIDPublishOuput(publishCommand, testInstance, hosted: true);
@@ -1141,7 +1141,7 @@ public void Publish_HostedApp_WithRid_Works()
var publishCommand = new PublishCommand(testInstance, "blazorhosted");
publishCommand.WithWorkingDirectory(testInstance.TestRoot);
- publishCommand.Execute("/bl").Should().Pass();
+ publishCommand.Execute().Should().Pass();
AssertRIDPublishOuput(publishCommand, testInstance, hosted: true);
}
diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPwaManifestTests.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPwaManifestTests.cs
index 92df7be4439e..53a67291a14e 100644
--- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPwaManifestTests.cs
+++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPwaManifestTests.cs
@@ -32,7 +32,7 @@ public void Build_ServiceWorkerAssetsManifest_Works()
var buildCommand = new BuildCommand(testInstance, "blazorwasm");
buildCommand.WithWorkingDirectory(testInstance.TestRoot);
- buildCommand.Execute("/p:ServiceWorkerAssetsManifest=service-worker-assets.js", "/bl")
+ buildCommand.Execute("/p:ServiceWorkerAssetsManifest=service-worker-assets.js")
.Should().Pass();
var buildOutputDirectory = buildCommand.GetOutputDirectory(DefaultTfm).ToString();
diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/JsModulesIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/JsModulesIntegrationTest.cs
index d07149aca0ab..59849a7edb8e 100644
--- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/JsModulesIntegrationTest.cs
+++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/JsModulesIntegrationTest.cs
@@ -50,7 +50,7 @@ public void Build_GeneratesManifestWhenItFindsALibrary()
var build = new BuildCommand(projectDirectory);
build.WithWorkingDirectory(projectDirectory.TestRoot);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = Path.Combine(build.GetBaseIntermediateDirectory().ToString(), "Debug", DefaultTfm);
@@ -74,7 +74,7 @@ public void Build_DiscoversJsModulesBasedOnPatterns()
var build = new BuildCommand(ProjectDirectory);
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = build.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = build.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -104,7 +104,7 @@ public void Publish_PublishesBundleToTheRightLocation()
var publish = new PublishCommand(ProjectDirectory);
publish.WithWorkingDirectory(ProjectDirectory.TestRoot);
- var publishResult = publish.Execute("/bl");
+ var publishResult = publish.Execute();
publishResult.Should().Pass();
var outputPath = publish.GetOutputDirectory(DefaultTfm).ToString();
@@ -144,7 +144,7 @@ public void Does_Nothing_WhenThereAreNoJsModulesFiles()
var build = new BuildCommand(projectDirectory);
build.WithWorkingDirectory(projectDirectory.TestRoot);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = Path.Combine(build.GetBaseIntermediateDirectory().ToString(), "Debug", DefaultTfm);
@@ -206,7 +206,7 @@ public void BuildProjectWithReferences_IncorporatesInitializersFromClassLibrarie
var build = new BuildCommand(Log, Path.Combine(ProjectDirectory.TestRoot, "AppWithPackageAndP2PReference"));
build.WithWorkingDirectory(ProjectDirectory.Path);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = build.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = build.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -244,7 +244,7 @@ public void PublishProjectWithReferences_IncorporatesInitializersFromClassLibrar
var publish = new PublishCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
publish.WithWorkingDirectory(ProjectDirectory.Path);
- publish.Execute("/bl").Should().Pass();
+ publish.Execute().Should().Pass();
var intermediateOutputPath = publish.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = publish.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -296,7 +296,7 @@ public void PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitial
});
var publish = new PublishCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
publish.WithWorkingDirectory(ProjectDirectory.Path);
- publish.Execute("/bl").Should().Pass();
+ publish.Execute().Should().Pass();
var intermediateOutputPath = publish.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = publish.GetOutputDirectory(DefaultTfm, "Debug").ToString();
diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ScopedCssIntegrationTests.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ScopedCssIntegrationTests.cs
index 57cac54402e4..9286eac8621f 100644
--- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ScopedCssIntegrationTests.cs
+++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ScopedCssIntegrationTests.cs
@@ -249,7 +249,7 @@ public void Publish_PublishesBundleToTheRightLocation()
var publish = new PublishCommand(projectDirectory);
publish.WithWorkingDirectory(projectDirectory.TestRoot);
- publish.Execute("/bl").Should().Pass();
+ publish.Execute().Should().Pass();
var publishOutputPath = publish.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -266,7 +266,7 @@ public void Publish_NoBuild_PublishesBundleToTheRightLocation()
var build = new BuildCommand(projectDirectory);
build.WithWorkingDirectory(projectDirectory.Path);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
buildResult.Should().Pass();
var publish = new PublishCommand(projectDirectory);
@@ -304,7 +304,7 @@ public void Publish_Publishes_IndividualScopedCssFiles_WhenNoBundlingIsEnabled()
var publish = new PublishCommand(projectDirectory);
publish.WithWorkingDirectory(projectDirectory.TestRoot);
- publish.Execute("/p:DisableScopedCssBundling=true", "/bl").Should().Pass();
+ publish.Execute("/p:DisableScopedCssBundling=true").Should().Pass();
var publishOutputPath = publish.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -415,7 +415,7 @@ public void BuildProjectWithReferences_CorrectlyBundlesScopedCssFiles()
var build = new BuildCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = build.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = build.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -459,7 +459,7 @@ public void ScopedCss_IsBackwardsCompatible_WithPreviousVersions()
var build = new BuildCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = build.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = build.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -502,7 +502,7 @@ public void ScopedCss_PublishIsBackwardsCompatible_WithPreviousVersions()
var build = new PublishCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = build.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = build.GetOutputDirectory(DefaultTfm, "Debug").ToString();
diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsIntegrationTest.cs
index 30fa571bf0b4..48941e8ec596 100644
--- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsIntegrationTest.cs
+++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsIntegrationTest.cs
@@ -32,7 +32,7 @@ public void Build_GeneratesJsonManifestAndCopiesItToOutputFolder()
var build = new BuildCommand(ProjectDirectory);
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = build.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = build.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -175,7 +175,7 @@ public void BuildProjectWithReferences_GeneratesJsonManifestAndCopiesItToOutputF
var build = new BuildCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = build.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = build.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -227,7 +227,7 @@ public void BuildProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries(
var build = new BuildCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = build.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = build.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -285,7 +285,7 @@ public void PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibrarie
var publish = new PublishCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
publish.WithWorkingDirectory(ProjectDirectory.Path);
- publish.Execute("/bl").Should().Pass();
+ publish.Execute().Should().Pass();
var intermediateOutputPath = publish.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var publishPath = publish.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -618,7 +618,7 @@ public void PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPu
var publish = new PublishCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
publish.WithWorkingDirectory(ProjectDirectory.Path);
- publish.Execute("/bl").Should().Pass();
+ publish.Execute().Should().Pass();
var intermediateOutputPath = publish.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var publishPath = publish.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -691,7 +691,7 @@ public void PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAnd
var build = new BuildCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
build.WithWorkingDirectory(ProjectDirectory.TestRoot);
- build.Execute("/bl").Should().Pass();
+ build.Execute().Should().Pass();
var intermediateOutputPath = build.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = build.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -760,7 +760,7 @@ public void PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_
var publish = new PublishCommand(ProjectDirectory, "AppWithPackageAndP2PReference");
publish.WithWorkingDirectory(ProjectDirectory.Path);
- publish.Execute("/p:AppendTargetFrameworkToOutputPath=false", "/bl").Should().Pass();
+ publish.Execute("/p:AppendTargetFrameworkToOutputPath=false").Should().Pass();
// Hard code output paths here to account for AppendTargetFrameworkToOutputPath=false
var intermediateOutputPath = Path.Combine(ProjectDirectory.Path, "AppWithPackageAndP2PReference", "obj", "Debug");
@@ -913,7 +913,7 @@ public void Pack_IncludesStaticWebAssets()
var pack = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -943,7 +943,7 @@ public void Pack_NoAssets_DoesNothing()
var pack = new MSBuildCommand(projectDirectory, "Pack");
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -978,7 +978,7 @@ public void Pack_NoAssets_Multitargeting_DoesNothing()
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -1006,13 +1006,13 @@ public void Pack_Incremental_IncludesStaticWebAssets()
var pack = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
var pack2 = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack2.WithWorkingDirectory(projectDirectory.Path);
- var result2 = pack2.Execute("/bl");
+ var result2 = pack2.Execute();
result2.Should().Pass();
@@ -1044,7 +1044,7 @@ public void Pack_StaticWebAssets_WithoutFileExtension_AreCorrectlyPacked()
var pack = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -1077,7 +1077,7 @@ public void Build_StaticWebAssets_GeneratePackageOnBuild_PacksStaticWebAssets()
var buildCommand = new BuildCommand(projectDirectory, "PackageLibraryDirectDependency");
buildCommand.WithWorkingDirectory(projectDirectory.Path);
- var result = buildCommand.Execute("/p:GeneratePackageOnBuild=true", "/bl");
+ var result = buildCommand.Execute("/p:GeneratePackageOnBuild=true");
result.Should().Pass();
@@ -1109,7 +1109,7 @@ public void Build_StaticWebAssets_GeneratePackageOnBuild_DoesNotIncludeAssetsAsC
var buildCommand = new BuildCommand(projectDirectory, "PackageLibraryDirectDependency");
buildCommand.WithWorkingDirectory(projectDirectory.Path);
- var result = buildCommand.Execute("/p:GeneratePackageOnBuild=true", "/bl");
+ var result = buildCommand.Execute("/p:GeneratePackageOnBuild=true");
result.Should().Pass();
@@ -1150,7 +1150,7 @@ public void Pack_MultipleTargetFrameworks_Works()
var pack = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -1191,11 +1191,11 @@ public void Pack_MultipleTargetFrameworks_NoBuild_IncludesStaticWebAssets()
var build = new BuildCommand(projectDirectory, "PackageLibraryDirectDependency");
build.WithWorkingDirectory(projectDirectory.Path);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
var pack = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/p:NoBuild=true", "/bl");
+ var result = pack.Execute("/p:NoBuild=true");
result.Should().Pass();
@@ -1236,11 +1236,11 @@ public void Pack_MultipleTargetFrameworks_NoBuild_DoesNotIncludeAssetsAsContent(
var build = new BuildCommand(Log, projectDirectory.Path, "PackageLibraryDirectDependency");
build.WithWorkingDirectory(projectDirectory.Path);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
var pack = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/p:NoBuild=true", "/bl");
+ var result = pack.Execute("/p:NoBuild=true");
result.Should().Pass();
@@ -1279,7 +1279,7 @@ public void Pack_MultipleTargetFrameworks_GeneratePackageOnBuild_IncludesStaticW
var build = new BuildCommand(projectDirectory, "PackageLibraryDirectDependency");
build.WithWorkingDirectory(projectDirectory.Path);
- var result = build.Execute("/p:GeneratePackageOnBuild=true", "/bl");
+ var result = build.Execute("/p:GeneratePackageOnBuild=true");
result.Should().Pass();
@@ -1320,7 +1320,7 @@ public void Pack_MultipleTargetFrameworks_GeneratePackageOnBuild_DoesNotIncludeA
var build = new BuildCommand(projectDirectory, "PackageLibraryDirectDependency");
build.WithWorkingDirectory(projectDirectory.Path);
- var result = build.Execute("/p:GeneratePackageOnBuild=true", "/bl");
+ var result = build.Execute("/p:GeneratePackageOnBuild=true");
result.Should().Pass();
@@ -1381,7 +1381,7 @@ This component is defined in the razorclasslibrarypack library.
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -1451,7 +1451,7 @@ This component is defined in the razorclasslibrarypack library.
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -1520,13 +1520,13 @@ This component is defined in the razorclasslibrarypack library.
var build = new BuildCommand(Log, projectDirectory.Path);
build.WithWorkingDirectory(projectDirectory.Path);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
buildResult.Should().Pass();
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/p:NoBuild=true", "/bl");
+ var result = pack.Execute("/p:NoBuild=true");
result.Should().Pass();
@@ -1596,13 +1596,13 @@ This component is defined in the razorclasslibrarypack library.
var build = new BuildCommand(Log, projectDirectory.Path);
build.WithWorkingDirectory(projectDirectory.Path);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
buildResult.Should().Pass();
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/p:NoBuild=true", "/bl");
+ var result = pack.Execute("/p:NoBuild=true");
result.Should().Pass();
@@ -1671,7 +1671,7 @@ This component is defined in the razorclasslibrarypack library.
var build = new BuildCommand(Log, projectDirectory.Path);
build.WithWorkingDirectory(projectDirectory.Path);
- var result = build.Execute("/p:GeneratePackageOnBuild=true", "/bl");
+ var result = build.Execute("/p:GeneratePackageOnBuild=true");
result.Should().Pass();
@@ -1741,7 +1741,7 @@ This component is defined in the razorclasslibrarypack library.
var build = new BuildCommand(Log, projectDirectory.Path);
build.WithWorkingDirectory(projectDirectory.Path);
- var result = build.Execute("/p:GeneratePackageOnBuild=true", "/bl");
+ var result = build.Execute("/p:GeneratePackageOnBuild=true");
result.Should().Pass();
@@ -1808,7 +1808,7 @@ This component is defined in the razorclasslibrarypack library.
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -1876,7 +1876,7 @@ This component is defined in the razorclasslibrarypack library.
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -1943,13 +1943,13 @@ This component is defined in the razorclasslibrarypack library.
var build = new BuildCommand(Log, projectDirectory.Path);
build.WithWorkingDirectory(projectDirectory.Path);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
buildResult.Should().Pass();
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/p:NoBuild=true", "/bl");
+ var result = pack.Execute("/p:NoBuild=true");
result.Should().Pass();
@@ -2017,13 +2017,13 @@ This component is defined in the razorclasslibrarypack library.
var build = new BuildCommand(Log, projectDirectory.Path);
build.WithWorkingDirectory(projectDirectory.Path);
- var buildResult = build.Execute("/bl");
+ var buildResult = build.Execute();
buildResult.Should().Pass();
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/p:NoBuild=true", "/bl");
+ var result = pack.Execute("/p:NoBuild=true");
result.Should().Pass();
@@ -2090,7 +2090,7 @@ This component is defined in the razorclasslibrarypack library.
var build = new BuildCommand(Log, projectDirectory.Path);
build.WithWorkingDirectory(projectDirectory.Path);
- var result = build.Execute("/p:GeneratePackageOnBuild=true", "/bl");
+ var result = build.Execute("/p:GeneratePackageOnBuild=true");
result.Should().Pass();
@@ -2158,7 +2158,7 @@ This component is defined in the razorclasslibrarypack library.
var build = new BuildCommand(Log, projectDirectory.Path);
build.WithWorkingDirectory(projectDirectory.Path);
- var result = build.Execute("/p:GeneratePackageOnBuild=true", "/bl");
+ var result = build.Execute("/p:GeneratePackageOnBuild=true");
result.Should().Pass();
@@ -2232,7 +2232,7 @@ This component is defined in the razorclasslibrarypack library.
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -2311,7 +2311,7 @@ This component is defined in the razorclasslibrarypack library.
var pack2 = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack2.WithWorkingDirectory(projectDirectory.Path);
- var result2 = pack2.Execute("/bl");
+ var result2 = pack2.Execute();
result2.Should().Pass();
@@ -2386,7 +2386,7 @@ This component is defined in the razorclasslibrarypack library.
var pack = new MSBuildCommand(Log, "Pack", projectDirectory.Path);
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -2429,7 +2429,7 @@ public void Pack_MultipleTargetFrameworks_DoesNotIncludeAssetsAsContent()
var pack = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack.WithWorkingDirectory(projectDirectory.Path);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -2456,7 +2456,7 @@ public void Pack_DoesNotInclude_TransitiveBundleOrScopedCssAsStaticWebAsset()
var pack = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack.WithWorkingDirectory(projectDirectory.TestRoot);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
result.Should().Pass();
@@ -2517,7 +2517,7 @@ public void Pack_NoBuild_IncludesStaticWebAssets()
var pack = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack.WithWorkingDirectory(projectDirectory.TestRoot);
- var result = pack.Execute("/p:NoBuild=true", "/bl");
+ var result = pack.Execute("/p:NoBuild=true");
var outputPath = pack.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -2548,7 +2548,7 @@ public void Pack_NoBuild_DoesNotIncludeFilesAsContent()
var pack = new MSBuildCommand(projectDirectory, "Pack", "PackageLibraryDirectDependency");
pack.WithWorkingDirectory(projectDirectory.TestRoot);
- var result = pack.Execute("/p:NoBuild=true", "/bl");
+ var result = pack.Execute("/p:NoBuild=true");
var outputPath = pack.GetOutputDirectory(DefaultTfm, "Debug").ToString();
@@ -2601,7 +2601,7 @@ public void Pack_Incremental_DoesNotRegenerateCacheAndPropsFiles()
var pack = new MSBuildCommand(projectDirectory, "Pack");
pack.WithWorkingDirectory(projectDirectory.TestRoot);
- var result = pack.Execute("/bl");
+ var result = pack.Execute();
var intermediateOutputPath = pack.GetIntermediateDirectory(DefaultTfm, "Debug").ToString();
var outputPath = pack.GetOutputDirectory(DefaultTfm, "Debug").ToString();
diff --git a/src/Tests/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs b/src/Tests/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs
index 6ea0ebb569ae..3135a0a162fa 100644
--- a/src/Tests/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs
+++ b/src/Tests/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs
@@ -30,6 +30,7 @@ public void TrimmingOptions_Are_Defaulted_Correctly_On_Trimmed_Apps(string targe
var testProject = CreateTestProjectForILLinkTesting(targetFramework, projectName);
testProject.AdditionalProperties["PublishTrimmed"] = "true";
testProject.AdditionalProperties["RuntimeIdentifier"] = rid;
+ testProject.SelfContained = "true";
testProject.PropertiesToRecord.Add("TrimMode");
var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: projectName + targetFramework);
diff --git a/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs b/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs
index 2a1e63a2b17c..9e99f7780bcb 100644
--- a/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs
+++ b/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs
@@ -38,6 +38,7 @@ public TestProject([CallerMemberName] string name = null)
///
public bool IsWinExe { get; set; }
+
public string ProjectSdk { get; set; }
///
@@ -50,6 +51,9 @@ public TestProject([CallerMemberName] string name = null)
public string RuntimeIdentifier { get; set; }
+ // Set to either true, false, or empty string "". The empty string does not undefine SelfContained, it just doesn't specify it.
+ public string SelfContained { get; set; } = "";
+
// TargetFrameworkVersion applies to non-SDK projects
public string TargetFrameworkVersion { get; set; }
@@ -278,6 +282,11 @@ internal void Create(TestAsset targetTestAsset, string testProjectsSourceFolder,
propertyGroup.Element(ns + "OutputType").SetValue("WinExe");
}
+ if(this.SelfContained != "")
+ {
+ propertyGroup.Add(new XElement(ns + "SelfContained", String.Equals(this.SelfContained, "true", StringComparison.OrdinalIgnoreCase) ? "true" : "false"));
+ }
+
if (this.ReferencedProjects.Any())
{
var projectReferenceItemGroup = projectXml.Root.Elements(ns + "ItemGroup")
diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs
index 63abf73c0bfa..303a26079bf1 100644
--- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs
+++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs
@@ -31,7 +31,7 @@ public void It_should_fail_with_error_message()
var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot);
- CommandResult result = packCommand.Execute();
+ CommandResult result = packCommand.Execute("--property:SelfContained=true");
result.ExitCode.Should().NotBe(0);
result.StdOut.Should().Contain(Strings.PackAsToolCannotSupportSelfContained);
}
@@ -44,7 +44,7 @@ public void It_should_not_fail_on_build()
var packCommand = new BuildCommand(helloWorldAsset);
- CommandResult result = packCommand.Execute();
+ CommandResult result = packCommand.Execute("--property:SelfContained=true");
result.ExitCode.Should().Be(0);
}
diff --git a/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs b/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs
index c83b0ef69cd2..8f6dc49201e3 100644
--- a/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs
+++ b/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs
@@ -181,7 +181,7 @@ public void DotnetBuildDoesNotPrintCopyrightInfo()
}
[Fact]
- public void It_warns_on_rid_without_self_contained_options()
+ public void It_no_longer_warns_on_rid_without_self_contained_options()
{
var testInstance = _testAssetsManager.CopyTestAsset("HelloWorld")
.WithSource()
@@ -194,7 +194,7 @@ public void It_warns_on_rid_without_self_contained_options()
.Should()
.Pass()
.And
- .HaveStdOutContaining("NETSDK1179");
+ .NotHaveStdOutContaining("NETSDK1179");
}
[Fact]
@@ -204,8 +204,8 @@ public void It_does_not_warn_on_rid_with_self_contained_set_in_project()
{
IsExe = true,
TargetFrameworks = ToolsetInfo.CurrentTargetFramework,
+ SelfContained = "true"
};
- testProject.AdditionalProperties["SelfContained"] = "true";
var testInstance = _testAssetsManager.CreateTestProject(testProject);