diff --git a/eng/Versions.props b/eng/Versions.props index 8c1838afc2c6..9345876cdf54 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -1,9 +1,6 @@ - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true diff --git a/src/Tasks/Common/Resources/Strings.resx b/src/Tasks/Common/Resources/Strings.resx index 573ad65eb6e0..734ab46be012 100644 --- a/src/Tasks/Common/Resources/Strings.resx +++ b/src/Tasks/Common/Resources/Strings.resx @@ -698,4 +698,12 @@ The following are names of parameters or literal values and should not be transl 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: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + + + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + diff --git a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf index fc741c34c8d1..eac358cc1147 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: Projekty C++/CLI cílené na rozhraní .NET Core nemůžou používat 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: Zabalit jako nástroj nepodporuje nezávislost. @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: Balíček modulu runtime pro {0} se nestáhl. Zkuste spustit obnovení NuGet s identifikátorem RuntimeIdentifier {1}. {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: Cesty AdditionalProbingPaths byly zadány pro GenerateRuntimeConfigurationFiles, ale vynechávají se, protože RuntimeConfigDevPath je prázdné. diff --git a/src/Tasks/Common/Resources/xlf/Strings.de.xlf b/src/Tasks/Common/Resources/xlf/Strings.de.xlf index adb3b909c189..9a22ac65a762 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.de.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.de.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: C++-/CLI-Projekte für .NET Core können "SelfContained=true" nicht verwenden. {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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: Die Paketierung als Tool unterstützt keine eigenständige Bereitstellung. @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: Das Laufzeitpaket für "{0}" wurde nicht heruntergeladen. Führen Sie eine NuGet-Wiederherstellung mit RuntimeIdentifier "{1}" aus. {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: Für GenerateRuntimeConfigurationFiles wurden "AdditionalProbingPaths" angegeben, sie werden jedoch übersprungen, weil "RuntimeConfigDevPath" leer ist. diff --git a/src/Tasks/Common/Resources/xlf/Strings.es.xlf b/src/Tasks/Common/Resources/xlf/Strings.es.xlf index 790b799cc9f6..4943b3412f8d 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.es.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.es.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: Los proyectos de C++/CLI destinados a .NET Core no pueden usar 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: El paquete como herramienta no admite la autocontención. @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: no se descargó el paquete de tiempo de ejecución de {0}. Pruebe a ejecutar una restauración de NuGet con RuntimeIdentifier "{1}". {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: Se especificaron valores adicionales de "AdditionalProbingPaths" para GenerateRuntimeConfigurationFiles, pero se van a omitir porque el valor de "RuntimeConfigDevPath" está vacío. diff --git a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf index 664479eb6334..7bff12d6f499 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: les projets C++/CLI qui ciblent le .NET Core ne peuvent pas utiliser 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: L'outil de compression ne prend pas en charge l'autonomie. @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: le pack de runtime pour {0} n'a pas été téléchargé. Essayez d'exécuter une restauration NuGet avec le RuntimeIdentifier '{1}'. {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: Des 'AdditionalProbingPaths' ont été spécifiés pour GenerateRuntimeConfigurationFiles, mais ils sont ignorés, car 'RuntimeConfigDevPath' est vide. diff --git a/src/Tasks/Common/Resources/xlf/Strings.it.xlf b/src/Tasks/Common/Resources/xlf/Strings.it.xlf index 072aa6645a88..2edd448f6fd5 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.it.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.it.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: i progetti C++/CLI destinati a .NET Core non possono usare 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: la creazione di pacchetti come strumenti non prevede elementi autonomi. @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: il pacchetto di runtime per {0} non è stato scaricato. Provare a eseguire un ripristino NuGet con RuntimeIdentifier '{1}'. {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: per GenerateRuntimeConfigurationFiles è stato specificato 'AdditionalProbingPaths', ma questo valore verrà ignorato perché 'RuntimeConfigDevPath' è vuoto. diff --git a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf index 29cc89752af1..b2afe86c1646 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: .NET Core をターゲットとする C++/CLI プロジェクトでは 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: Pack As ツールは自己完結型をサポートしていません。 @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: {0} のランタイム パックがダウンロードされませんでした。RuntimeIdentifier '{1}' で NuGet 復元を実行してみてください。 {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: 'AdditionalProbingPaths' が GenerateRuntimeConfigurationFiles に指定されましたが、'RuntimeConfigDevPath' が空であるためスキップされます。 diff --git a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf index 67b4d7e11134..0717b17fe81d 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: .NET Core를 대상으로 하는 C++/CLI 프로젝트는 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: 도구로서 팩은 자체 포함을 지원하지 않습니다. @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: {0}용 런타임 팩이 다운로드되지 않았습니다. RuntimeIdentifier '{1}'을(를) 사용하여 NuGet 복원을 실행해 보세요. {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: GenerateRuntimeConfigurationFiles에 대해 'AdditionalProbingPaths'가 지정되었지만 'RuntimeConfigDevPath'가 비어 있어서 건너뜁니다. diff --git a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf index 7f82c0dacd41..432207de427a 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: Projekty C++/CLI przeznaczone dla platformy .NET Core nie mogą używać elementu 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: Funkcja pakowania jako narzędzie nie obsługuje elementów autonomicznych. @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: Nie pobrano pakietu wykonawczego dla: {0}. Spróbuj uruchomić przywracanie NuGet z użyciem wartości RuntimeIdentifier „{1}”. {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: Dla elementu GenerateRuntimeConfigurationFiles określono ścieżki AdditionalProbingPaths, ale są one pomijane, ponieważ element „RuntimeConfigDevPath” jest pusty. diff --git a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf index fe8a3d5023c6..68974275e4da 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: os projetos C++/CLI direcionados ao .NET Core não podem usar 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: O pacote como ferramenta não é compatível com a opção autossuficiente. @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: o pacote de tempo de execução para {0} não foi baixado. Tente executar uma restauração do NuGet com o RuntimeIdentifier '{1}'. {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: Os 'AdditionalProbingPaths' foram especificados para os GenerateRuntimeConfigurationFiles, mas estão sendo ignorados porque 'RuntimeConfigDevPath' está vazio. diff --git a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf index aca54f000669..0283ed12b0d3 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: проекты C++/CLI для .NET Core не могут использовать значение параметра 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: упаковка в качестве инструмента не поддерживает автономное использование. @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: пакет среды выполнения для {0} не был скачан. Попробуйте выполнить восстановление NuGet с помощью RuntimeIdentifier "{1}". {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: для GenerateRuntimeConfigurationFiles были указаны пути "AdditionalProbingPaths", но они будут пропущены, так как "RuntimeConfigDevPath" пуст. diff --git a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf index 8c4d0a9a72d5..fc1dfd4e1e38 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: .NET Core'u hedefleyen C++/CLI projelerinde SelfContained=true kullanılamaz. {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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: Araç olarak paketleme kendi kendini kapsamayı desteklemiyor. @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: {0} için çalışma zamanı paketi indirilmedi. '{1}' RuntimeIdentifier ile bir NuGet geri yüklemesi çalıştırmayı deneyin. {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: GenerateRuntimeConfigurationFiles için 'AdditionalProbingPaths' belirtildi ancak 'RuntimeConfigDevPath' boş olduğundan atlanıyor. diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf index 53c78890fa0a..923bcd5191a5 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: 面向 .NET Core 的 C++/CLI 项目不能使用 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: 打包为工具不支持自包含。 @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: 未下载 {0} 的运行时包。请尝试使用 RuntimeIdentifier“{1}”运行 NuGet 还原。 {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: "AdditionalProbingPaths" 被指定给 GenerateRuntimeConfigurationFiles,但被跳过,因为 "RuntimeConfigDevPath" 为空。 diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf index 8a067b3ae39d..032cfc3cd306 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf @@ -505,6 +505,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1121: 以 .NET Core 為目標的 C++/CLI 專案無法使用 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. + NETSDK1151: The referenced project '{0}' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. + {StrBegin="NETSDK1151: "} + NETSDK1053: Pack as tool does not support self contained. NETSDK1053: 封裝為工具不支援包含本身。 @@ -610,6 +615,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: 未下載 {0} 的執行階段套件。請嘗試使用 RuntimeIdentifier '{1}' 執行 NuGet 還原。 {StrBegin="NETSDK1112: "} + + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + NETSDK1150: The referenced project '{0}' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. + {StrBegin="NETSDK1150: "} + NETSDK1048: 'AdditionalProbingPaths' were specified for GenerateRuntimeConfigurationFiles, but are being skipped because 'RuntimeConfigDevPath' is empty. NETSDK1048: 已為 GenerateRuntimeConfigurationFiles 指定了 'AdditionalProbingPaths',但因為 'RuntimeConfigDevPath' 是空的,所以已跳過它。 diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs new file mode 100644 index 000000000000..e34aad184d0f --- /dev/null +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs @@ -0,0 +1,60 @@ +// Copyright (c) .NET Foundation and contributors. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml.Linq; +using Microsoft.Build.Framework; + +namespace Microsoft.NET.Build.Tasks +{ + public class ValidateExecutableReferences : TaskBase + { + public bool SelfContained { get; set; } + + public bool IsExecutable { get; set; } + + public ITaskItem[] ReferencedProjects { get; set; } = Array.Empty(); + + protected override void ExecuteCore() + { + if (!IsExecutable) + { + // If current project is not executable, then we don't need to check its references + return; + } + + foreach (var project in ReferencedProjects) + { + string nearestTargetFramework = project.GetMetadata("NearestTargetFramework"); + + var additionalPropertiesXml = XElement.Parse(project.GetMetadata("AdditionalPropertiesFromProject")); + var targetFrameworkElement = additionalPropertiesXml.Element(nearestTargetFramework); + Dictionary projectAdditionalProperties = new(StringComparer.OrdinalIgnoreCase); + foreach (var propertyElement in targetFrameworkElement.Elements()) + { + projectAdditionalProperties[propertyElement.Name.LocalName] = propertyElement.Value; + } + + var referencedProjectIsExecutable = MSBuildUtilities.ConvertStringToBool(projectAdditionalProperties["_IsExecutable"]); + var referencedProjectIsSelfContained = MSBuildUtilities.ConvertStringToBool(projectAdditionalProperties["SelfContained"]); + + if (referencedProjectIsExecutable) + { + if (SelfContained && !referencedProjectIsSelfContained) + { + Log.LogError(Strings.SelfContainedExeCannotReferenceNonSelfContained, project.ItemSpec); + } + else if (!SelfContained && referencedProjectIsSelfContained) + { + Log.LogError(Strings.NonSelfContainedExeCannotReferenceSelfContained, project.ItemSpec); + } + } + } + } + } +} diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets index c67d5bc94b0f..b1710fda2d99 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets @@ -1029,6 +1029,31 @@ Copyright (c) .NET Foundation. All rights reserved. + + + + + + + + + + + + + + +