From 62fb3f6064957c1eb554cf532e9cc3940c55fe05 Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Tue, 10 May 2022 19:09:12 -0300 Subject: [PATCH 1/8] Add strings --- src/Tasks/Common/Resources/Strings.resx | 8 + src/Tasks/Common/Resources/xlf/Strings.cs.xlf | 10 + src/Tasks/Common/Resources/xlf/Strings.de.xlf | 10 + src/Tasks/Common/Resources/xlf/Strings.es.xlf | 10 + src/Tasks/Common/Resources/xlf/Strings.fr.xlf | 10 + src/Tasks/Common/Resources/xlf/Strings.it.xlf | 10 + .../xlf/Strings.it.xlf~RF243dc495.TMP | 924 ++++++++++++++++++ src/Tasks/Common/Resources/xlf/Strings.ja.xlf | 10 + src/Tasks/Common/Resources/xlf/Strings.ko.xlf | 10 + src/Tasks/Common/Resources/xlf/Strings.pl.xlf | 10 + .../Common/Resources/xlf/Strings.pt-BR.xlf | 10 + src/Tasks/Common/Resources/xlf/Strings.ru.xlf | 10 + src/Tasks/Common/Resources/xlf/Strings.tr.xlf | 10 + .../Common/Resources/xlf/Strings.zh-Hans.xlf | 10 + .../Common/Resources/xlf/Strings.zh-Hant.xlf | 10 + 15 files changed, 1062 insertions(+) create mode 100644 src/Tasks/Common/Resources/xlf/Strings.it.xlf~RF243dc495.TMP diff --git a/src/Tasks/Common/Resources/Strings.resx b/src/Tasks/Common/Resources/Strings.resx index 0a16fe739be8..676d18c24c9e 100644 --- a/src/Tasks/Common/Resources/Strings.resx +++ b/src/Tasks/Common/Resources/Strings.resx @@ -832,4 +832,12 @@ You may need to build the project on another operating system or architecture, o NETSDK1182: Targeting .NET 6.0 or higher in Visual Studio 2019 is not supported. {StrBegin="NETSDK1182: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + diff --git a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf index a46b6649cd55..4e82101ae7f6 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf @@ -740,6 +740,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: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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: odkazovaný projekt {0} je spustitelný soubor, který není samostatně obsažený. Na spustitelný soubor, který není samostatně obsažený, nelze odkazovat pomocí samostatně obsaženého spustitelného souboru. Další informace najdete na https://aka.ms/netsdk1150 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: Targeting Pack {0} není nainstalovaný. Obnovte ho prosím a zkuste to znovu. {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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: Model Windows Forms se nepodporuje nebo se nedoporučuje používat, pokud je povoleno ořezávání. Přejděte prosím na https://aka.ms/dotnet-illink/windows-forms, kde najdete další podrobnosti. diff --git a/src/Tasks/Common/Resources/xlf/Strings.de.xlf b/src/Tasks/Common/Resources/xlf/Strings.de.xlf index a211dd16681f..e46e2b380a78 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.de.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.de.xlf @@ -740,6 +740,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: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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: Das referenzierte Projekt „{0}“ ist keine eigenständige ausführbare Datei. Auf eine nicht eigenständige ausführbare Datei kann nicht von einer eigenständigen ausführbaren Datei verwiesen werden. Weitere Informationen finden Sie unter https://aka.ms/netsdk1150. @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: Das Paket zur Festlegung von Zielversionen "{0}" ist nicht installiert. Führen Sie eine Wiederherstellung durch, und versuchen Sie es noch mal. {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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 Forms wird nicht unterstützt oder empfohlen, wenn das Zuschneiden aktiviert ist. Weitere Details finden Sie unter https://aka.ms/dotnet-illink/windows-forms. diff --git a/src/Tasks/Common/Resources/xlf/Strings.es.xlf b/src/Tasks/Common/Resources/xlf/Strings.es.xlf index 89f889cf91d6..58cc3453ca52 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.es.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.es.xlf @@ -740,6 +740,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: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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: El proyecto al que se hace referencia '{0}' es un ejecutable no independiente. Un archivo ejecutable independiente no puede hacer referencia a un ejecutable que no es independiente. Para obtener más información, consulte https://aka.ms/netsdk1150 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: El paquete de compatibilidad {0} no está instalado. Restáurelo y vuelva a intentarlo. {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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 Forms no es compatible o no se recomienda con la opción de recorte habilitada. Para obtener más información, vaya a https://aka.ms/dotnet-illink/windows-forms. diff --git a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf index 239156f5f869..1e79bbd14d05 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf @@ -740,6 +740,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: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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: le projet référencé « {0} » est un exécutable qui n’est pas autonome. Un exécutable non autonome ne peut pas être référencé par un exécutable autonome. Pour plus d’informations, voir https://aka.ms/netsdk1150 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: le pack de ciblage {0} n'est pas installé. Effectuez une restauration, puis réessayez. {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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 Forms n’est pas pris en charge ou n’est pas recommandée avec l’ajustement activé. Pour plus d’informations, accédez à https://aka.ms/dotnet-illink/windows-forms. diff --git a/src/Tasks/Common/Resources/xlf/Strings.it.xlf b/src/Tasks/Common/Resources/xlf/Strings.it.xlf index e958c5783823..b032185775a0 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.it.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.it.xlf @@ -740,6 +740,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: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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: il progetto '{0}' a cui viene fatto riferimento è un eseguibile non autonomo. Non è possibile fare riferimento a un eseguibile non autonomo da un eseguibile autonomo. Per altre informazioni, vedere https://aka.ms/netsdk1150 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: il Targeting Pack {0} non è installato. Ripristinare e riprovare. {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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: quando il trimming è abilitato, Windows Form non è supportato o consigliato. Per altre informazioni, vedere https://aka.ms/dotnet-illink/windows-forms. diff --git a/src/Tasks/Common/Resources/xlf/Strings.it.xlf~RF243dc495.TMP b/src/Tasks/Common/Resources/xlf/Strings.it.xlf~RF243dc495.TMP new file mode 100644 index 000000000000..78a437986040 --- /dev/null +++ b/src/Tasks/Common/Resources/xlf/Strings.it.xlf~RF243dc495.TMP @@ -0,0 +1,924 @@ + + + + + + NETSDK1076: AddResource can only be used with integer resource types. + NETSDK1076: è possibile usare AddResource solo con tipi di risorsa integer. + {StrBegin="NETSDK1076: "} + + + NETSDK1070: The application configuration file must have root configuration element. + NETSDK1070: il file di configurazione dell'applicazione deve avere un elemento di configurazione radice. + {StrBegin="NETSDK1070: "} + + + NETSDK1113: Failed to create apphost (attempt {0} out of {1}): {2} + NETSDK1113: non è stato possibile creare apphost (tentativo {0} di {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: l'eseguibile dell'host applicazione non verrà personalizzato perché per aggiungere risorse è necessario eseguire la compilazione in Windows (escluso 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: non è possibile usare '{0}' come eseguibile host dell'applicazione perché non contiene la sequenza di byte segnaposto prevista '{1}' che indica dove verrà scritto il nome dell'applicazione. + {StrBegin="NETSDK1029: "} + + + NETSDK1078: Unable to use '{0}' as application host executable because it's not a Windows PE file. + NETSDK1078: non è possibile usare '{0}' come eseguibile dell'host applicazione perché non è un file di Windows PE. + {StrBegin="NETSDK1078: "} + + + NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem. + NETSDK1072: non è possibile usare '{0}' come eseguibile dell'host applicazione perché non è un eseguibile Windows per il sottosistema CUI (Console). + {StrBegin="NETSDK1072: "} + + + NETSDK1177: Failed to sign apphost with error code {1}: {0} + NETSDK1177: impossibile firmare apphost con codice di errore {1}: {0} + {StrBegin="NETSDK1177: "} + + + 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: il pacchetto Microsoft.AspNetCore.All non è supportato quando la destinazione è .NET Core 3.0 o versione successiva. È necessario un elemento FrameworkReference per Microsoft.AspNetCore.App, che verrà incluso in modo implicito da 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: non è necessario alcun elemento PackageReference per Microsoft.AspNetCore.App quando la destinazione è .NET Core 3.0 o versione successiva. Se si usa Microsoft.NET.Sdk.Web, il riferimento al framework condiviso verrà inserito automaticamente; in caso contrario, l'elemento PackageReference deve essere sostituito da un elemento FrameworkReference. + {StrBegin="NETSDK1080: "} + + + NETSDK1017: Asset preprocessor must be configured before assets are processed. + NETSDK1017: prima di elaborare le risorse, è necessario configurare il preprocessore di risorse. + {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: il file di risorse '{0}' non contiene una destinazione per '{1}'. Assicurarsi che il ripristino sia stato eseguito e che '{2}' sia stato incluso negli elementi TargetFramework del progetto. Potrebbe anche essere necessario includere '{3}' negli elementi RuntimeIdentifier del progetto. + {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: il file di risorse '{0}' non contiene una destinazione per '{1}'. Assicurarsi che il ripristino sia stato eseguito e che '{2}' sia stato incluso negli elementi TargetFramework del progetto. + {StrBegin="NETSDK1005: "} + + + NETSDK1004: Assets file '{0}' not found. Run a NuGet package restore to generate this file. + NETSDK1004: il file di risorse '{0}' non è stato trovato. Per generare questo file, eseguire un ripristino del pacchetto NuGet. + {StrBegin="NETSDK1004: "} + + + NETSDK1063: The path to the project assets file was not set. Run a NuGet package restore to generate this file. + NETSDK1063: il percorso del file di risorse del progetto non è stato impostato. Per generare questo file, eseguire un ripristino del pacchetto NuGet. + {StrBegin="NETSDK1063: "} + + + NETSDK1006: Assets file path '{0}' is not rooted. Only full paths are supported. + NETSDK1006: il percorso dei file di risorse '{0}' non contiene una radice. Sono supportati solo percorsi completi. + {StrBegin="NETSDK1006: "} + + + NETSDK1001: At least one possible target framework must be specified. + NETSDK1001: è necessario specificare almeno un framework di destinazione possibile. + {StrBegin="NETSDK1001: "} + + + 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: non è possibile incorporare l'elemento CLSIDMap nell'host COM perché per aggiungere risorse è necessario eseguire la compilazione in Windows (escluso 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: non è possibile trovare l'host delle app per {0}. {0} potrebbe essere un identificatore di runtime (RID) non valido. Per altre informazioni sul RID, vedere 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: non è possibile trovare un host COM .NET Core. L'host COM .NET Core è disponibile solo in .NET Core 3.0 o versioni successive quando è destinato a 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: non è possibile trovare un host IJW .NET Core. L'host IJW .NET Core è disponibile solo in .NET Core 3.1 o versioni successive quando la destinazione è Windows. + {StrBegin="NETSDK1114: "} + + + NETSDK1007: Cannot find project info for '{0}'. This can indicate a missing project reference. + NETSDK1007: le informazioni del progetto per '{0}' non sono state trovate. Questo errore può indicare la mancanza di un riferimento al progetto. + {StrBegin="NETSDK1007: "} + + + NETSDK1032: The RuntimeIdentifier platform '{0}' and the PlatformTarget '{1}' must be compatible. + NETSDK1032: la piattaforma '{0}' di RuntimeIdentifier e quella '{1}' di PlatformTarget devono essere compatibili. + {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: non è possibile compilare o pubblicare un'applicazione indipendente senza specificare un elemento RuntimeIdentifier. Specificare un elemento RuntimeIdentifier o impostare SelfContained su 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: non è possibile pubblicare un'applicazione in un singolo file senza specificare un elemento RuntimeIdentifier. Specificare un elemento RuntimeIdentifier o impostare PublishSingleFile su 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: le applicazioni pubblicate in un singolo file sono necessarie per usare l'host dell'applicazione. Impostare PublishSingleFile su false o UseAppHost su true. + {StrBegin="NETSDK1098: "} + + + NETSDK1099: Publishing to a single-file is only supported for executable applications. + NETSDK1099: la pubblicazione in un singolo file è supportata solo per le applicazioni eseguibili. + {StrBegin="NETSDK1099: "} + + + NETSDK1134: Building a solution with a specific RuntimeIdentifier is not supported. If you would like to publish for a single RID, specifiy the RID at the individual project level instead. + NETSDK1134: non è possibile compilare una soluzione con un parametro RuntimeIdentifier specifico. Per pubblicare per un singolo RID, specificare il RID a livello di singolo progetto. + {StrBegin="NETSDK1134: "} + + + NETSDK1135: SupportedOSPlatformVersion {0} cannot be higher than TargetPlatformVersion {1}. + NETSDK1135: il valore di SupportedOSPlatformVersion {0} non può essere maggiore di quello di 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: se si include tutto il contenuto in un unico bundle di file, verranno incluse anche le librerie native. Se IncludeAllContentForSelfExtract è true, IncludeNativeLibrariesForSelfExtract non deve essere false. + {StrBegin="NETSDK1143: "} + + + NETSDK1142: Including symbols in a single file bundle is not supported when publishing for .NET5 or higher. + NETSDK1142: l'inclusione dei simboli in un unico bundle di file non è supportata quando si esegue la pubblicazione per .NET 5 o versioni successive. + {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: il valore {0}' di TargetFramework non è stato riconosciuto. È possibile che sia stato digitato in modo errato. In caso contrario, le proprietà TargetFrameworkIdentifier e/o TargetFrameworkVersion devono essere specificate in modo esplicito. + {StrBegin="NETSDK1013: "} + + + NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true. + NETSDK1067: con le applicazioni complete è necessario usare l'host applicazione. Impostare SelfContained su false o UseAppHost su true. + {StrBegin="NETSDK1067: "} + + + NETSDK1125: Publishing to a single-file is only supported for netcoreapp target. + NETSDK1125: la pubblicazione in un file singolo è supportata solo per la destinazione netcoreapp. + {StrBegin="NETSDK1125: "} + + + Choosing '{0}' because AssemblyVersion '{1}' is greater than '{2}'. + Verrà scelto '{0}' perché il valore di AssemblyVersion '{1}' è maggiore di '{2}'. + + + + Choosing '{0}' arbitrarily as both items are copy-local and have equal file and assembly versions. + Verrà scelto '{0}' in modo arbitrario perché entrambi gli elementi sono una copia locale e contengono versioni di file e assembly uguali. + + + + Choosing '{0}' because file version '{1}' is greater than '{2}'. + Verrà scelto '{0}' perché la versione del file '{1}' è maggiore di '{2}'. + + + + Choosing '{0}' because it is a platform item. + Verrà scelto '{0}' perché è un elemento della piattaforma. + + + + Choosing '{0}' because it comes from a package that is preferred. + Verrà scelto '{0}' perché proviene da un pacchetto preferito. + + + + 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: per i tipi '{0}' e '{1}' è impostato lo stesso CLSID '{2}' nel relativo elemento GuidAttribute. Ogni classe COMVisible deve includere un GUID distinto per il CLSID. + {StrBegin="NETSDK1089: "} +{0} - The first type with the conflicting guid. +{1} - The second type with the conflicting guid. +{2} - The guid the two types have. + + + 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: la classe COMVisible '{0}' deve includere un elemento GuidAttribute con il CLSID della classe da rendere visibile per 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: l'assembly specificato '{0}' non è valido. Non può essere usato per generare un elemento CLSIDMap. + {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: la compressione in un unico bundle di file è supportata solo quando si esegue la pubblicazione per .NET6 o versioni successive. + {StrBegin="NETSDK1167: "} + + + NETSDK1176: Compression in a single file bundle is only supported when publishing a self-contained application. + NETSDK1176: la compressione in un unico bundle di file è supportata solo quando si esegue la pubblicazione di un'applicazione indipendente. + {StrBegin="NETSDK1176: "} + + + NETSDK1133: There was conflicting information about runtime packs available for {0}: +{1} + NETSDK1133: sono presenti informazioni in conflitto sui pacchetti di runtime disponibili per {0}: +{1} + {StrBegin="NETSDK1133: "} + + + NETSDK1014: Content item for '{0}' sets '{1}', but does not provide '{2}' or '{3}'. + NETSDK1014: l'elemento di contenuto per '{0}' imposta '{1}', ma non fornisce '{2}' o '{3}'. + {StrBegin="NETSDK1014: "} + + + NETSDK1010: The '{0}' task must be given a value for parameter '{1}' in order to consume preprocessed content. + NETSDK1010: per poter utilizzare il contenuto pre-elaborato, è necessario assegnare un valore per il parametro '{1}' nell'attività '{0}'. + {StrBegin="NETSDK1010: "} + + + Could not determine winner because '{0}' does not exist. + Non è stato possibile determinare la versione da usare perché '{0}' non esiste. + + + + Could not determine winner due to equal file and assembly versions. + Non è stato possibile determinare la versione da usare perché le versioni dell'assembly e del file sono uguali. + + + + Could not determine a winner because '{0}' has no file version. + Non è stato possibile determinare la versione da usare perché non esiste alcuna versione del file per '{0}'. + + + + Could not determine a winner because '{0}' is not an assembly. + Non è stato possibile determinare la versione da usare perché '{0}' non è un assembly. + + + + NETSDK1181: Error getting pack version: Pack '{0}' was not present in workload manifests. + NETSDK1181: errore durante il recupero della versione del pacchetto: il pacchetto '{0}' non era presente nei manifesti del carico di lavoro. + {StrBegin="NETSDK1181: "} + + + NETSDK1042: Could not load PlatformManifest from '{0}' because it did not exist. + NETSDK1042: non è stato possibile caricare PlatformManifest da '{0}' perché non esiste. + {StrBegin="NETSDK1042: "} + + + NETSDK1120: C++/CLI projects targeting .NET Core require a target framework of at least 'netcoreapp3.1'. + NETSDK1120: con i progetti C++/CLI destinati a .NET Core è il framework di destinazione deve essere impostato almeno su 'netcoreapp3.1'. + {StrBegin="NETSDK1120: "} + + + NETSDK1158: Required '{0}' metadata missing on Crossgen2Tool item. + NETSDK1158: nell'elemento Crossgen2Tool mancano i metadati richiesti di '{0}'. + {StrBegin="NETSDK1158: "} + + + NETSDK1126: Publishing ReadyToRun using Crossgen2 is only supported for self-contained applications. + NETSDK1126: la pubblicazione di ReadyToRun tramite Crossgen2 è supportata solo per le applicazioni autonome. + {StrBegin="NETSDK1126: "} + + + NETSDK1155: Crossgen2Tool executable '{0}' not found. + NETSDK1155: l'eseguibile '{0}' di Crossgen2Tool non è stato trovato. + {StrBegin="NETSDK1155: "} + + + NETSDK1154: Crossgen2Tool must be specified when UseCrossgen2 is set to true. + NETSDK1154: è necessario specificare Crossgen2Tool quando UseCrossgen2 è impostato su true. + {StrBegin="NETSDK1154: "} + + + NETSDK1166: Cannot emit symbols when publishing for .NET 5 with Crossgen2 using composite mode. + NETSDK1166: non è possibile creare simboli durante la pubblicazione per .NET 5 con Crossgen2 usando la modalità composita. + {StrBegin="NETSDK1166: "} + + + NETSDK1160: CrossgenTool executable '{0}' not found. + NETSDK1160: l'eseguibile '{0}' di CrossgenTool non è stato trovato. + {StrBegin="NETSDK1160: "} + + + NETSDK1153: CrossgenTool not specified in PDB compilation mode. + NETSDK1153: CrossgenTool non è stato specificato nella modalità di compilazione PDB. + {StrBegin="NETSDK1153: "} + + + NETSDK1159: CrossgenTool must be specified when UseCrossgen2 is set to false. + NETSDK1159: è necessario specificare CrossgenTool quando UseCrossgen2 è impostato su false. + {StrBegin="NETSDK1159: "} + + + NETSDK1161: DiaSymReader library '{0}' not found. + NETSDK1161: la libreria '{0}' di DiaSymReader non è stata trovata. + {StrBegin="NETSDK1161: "} + + + NETSDK1156: .NET host executable '{0}' not found. + NETSDK1156: l'eseguibile '{0}' dell'host .NET non è stato trovato. + {StrBegin="NETSDK1156: "} + + + NETSDK1055: DotnetTool does not support target framework lower than netcoreapp2.1. + NETSDK1055: DotnetTool non supporta framework di destinazione di versioni precedenti a netcoreapp2.1. + {StrBegin="NETSDK1055: "} + + + NETSDK1054: only supports .NET Core. + NETSDK1054: supporta solo .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: sono stati inclusi '{0}' elementi duplicati. Per impostazione predefinita, .NET SDK include '{0}' elementi della directory del progetto. È possibile rimuovere tali elementi dal file di progetto oppure impostare la proprietà '{1}' su '{2}' se si vuole includerli implicitamente nel file di progetto. Per altre informazioni, vedere {4}. Gli elementi duplicati sono: {3} + {StrBegin="NETSDK1022: "} + + + NETSDK1015: The preprocessor token '{0}' has been given more than one value. Choosing '{1}' as the value. + NETSDK1015: al token di preprocessore '{0}' è stato assegnato più di un valore. Come valore verrà scelto '{1}'. + {StrBegin="NETSDK1015: "} + + + NETSDK1152: Found multiple publish output files with the same relative path: {0}. + NETSDK1152: sono stati trovati più file di output di pubblicazione con lo stesso percorso relativo: {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: più di un asset nel pacchetto di runtime ha lo stesso percorso secondario di destinazione di '{0}'. Segnalare questo errore al team di .NET all'indirizzo: 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: è stato specificato lo stesso ID di risorsa {0} per due librerie dei tipi '{1}' e '{2}'. Gli ID della libreria dei tipi duplicati non sono consentiti. + {StrBegin="NETSDK1169: "} + + + Encountered conflict between '{0}' and '{1}'. + È stato rilevato un conflitto tra '{0}' e '{1}'. + + + + NETSDK1051: Error parsing FrameworkList from '{0}'. {1} '{2}' was invalid. + NETSDK1051: si è verificato un errore durante l'analisi di FrameworkList da '{0}'. {1} '{2}' non è valido. + {StrBegin="NETSDK1051: "} + + + NETSDK1043: Error parsing PlatformManifest from '{0}' line {1}. Lines must have the format {2}. + NETSDK1043: si è verificato un errore durante l'analisi di PlatformManifest da '{0}' a riga {1}. Il formato delle righe deve essere {2}. + {StrBegin="NETSDK1043: "} + + + NETSDK1044: Error parsing PlatformManifest from '{0}' line {1}. {2} '{3}' was invalid. + NETSDK1044: si è verificato un errore durante l'analisi di PlatformManifest da '{0}' a riga {1}. Il valore {2} '{3}' non è valido. + {StrBegin="NETSDK1044: "} + + + NETSDK1060: Error reading assets file: {0} + NETSDK1060: errore durante la lettura del file di asset: {0} + {StrBegin="NETSDK1060: "} + + + NETSDK1111: Failed to delete output apphost: {0} + NETSDK1111: non è stato possibile eliminare l'apphost di output: {0} + {StrBegin="NETSDK1111: "} + + + NETSDK1077: Failed to lock resource. + NETSDK1077: non è stato possibile bloccare la risorsa. + {StrBegin="NETSDK1077: "} + + + NETSDK1030: Given file name '{0}' is longer than 1024 bytes + NETSDK1030: il nome file specificato '{0}' supera 1024 byte + {StrBegin="NETSDK1030: "} + + + NETSDK1024: Folder '{0}' already exists either delete it or provide a different ComposeWorkingDir + NETSDK1024: la cartella '{0}' esiste già. Eliminarla o specificare un elemento ComposeWorkingDir diverso + {StrBegin="NETSDK1024: "} + + + NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'. + NETSDK1068: con l'host applicazione dipendente dal framework il framework di destinazione deve essere impostato almeno su 'netcoreapp2.1'. + {StrBegin="NETSDK1068: "} + + + NETSDK1052: Framework list file path '{0}' is not rooted. Only full paths are supported. + NETSDK1052: il percorso '{0}' del file dell'elenco di framework non contiene una radice. Sono supportati solo percorsi completi. + {StrBegin="NETSDK1052: "} + + + NETSDK1087: Multiple FrameworkReference items for '{0}' were included in the project. + NETSDK1087: nel progetto sono stati inclusi più elementi FrameworkReference per '{0}'. + {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: nel progetto è stato incluso un elemento FrameworkReference per '{0}'. Questo elemento viene usato come riferimento implicito da .NET SDK e non è in genere necessario farvi riferimento dal progetto. Per altre informazioni, vedere {1} + {StrBegin="NETSDK1086: "} + + + NETSDK1049: Resolved file has a bad image, no metadata, or is otherwise inaccessible. {0} {1} + NETSDK1049: il file risolto ha un'immagine danneggiata, non contiene metadati o è inaccessibile per altri motivi. {0} {1} + {StrBegin="NETSDK1049: "} + + + NETSDK1141: Unable to resolve the .NET SDK version as specified in the global.json located at {0}. + NETSDK1141: non è possibile risolvere la versione di .NET SDK come specificato nel file global.json presente in {0}. + {StrBegin="NETSDK1141: "} + + + NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false. + NETSDK1144: l'ottimizzazione degli assembly per le dimensioni non è riuscita. È possibile disabilitare l'ottimizzazione impostando la proprietà PublishTrimmed su false. + {StrBegin="NETSDK1144: "} + + + NETSDK1102: Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app. + NETSDK1102: l'ottimizzazione degli assembly per le dimensioni non è supportata per la configurazione di pubblicazione selezionata. Assicurarsi di pubblicare un'app indipendente. + {StrBegin="NETSDK1102: "} + + + Optimizing assemblies for size, which may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink + Verrà eseguita l'ottimizzazione degli assembly per le dimensioni. Questa operazione potrebbe comportare la modifica del comportamento dell'app. Assicurarsi di testarla dopo la pubblicazione. Vedere: https://aka.ms/dotnet-illink + + + + NETSDK1020: Package Root {0} was incorrectly given for Resolved library {1} + NETSDK1020: la radice {0} del pacchetto specificata per la libreria risolta {1} non è corretta + {StrBegin="NETSDK1020: "} + + + NETSDK1025: The target manifest {0} provided is of not the correct format + NETSDK1025: il formato del manifesto di destinazione specificato {0} non è corretto + {StrBegin="NETSDK1025: "} + + + NETSDK1163: Input assembly '{0}' not found. + NETSDK1163: l'assembly di input '{0}' non è stato trovato. + {StrBegin="NETSDK1163: "} + + + NETSDK1003: Invalid framework name: '{0}'. + NETSDK1003: nome di framework non valido: '{0}'. + {StrBegin="NETSDK1003: "} + + + NETSDK1058: Invalid value for ItemSpecToUse parameter: '{0}'. This property must be blank or set to 'Left' or 'Right' + NETSDK1058: valore non valido per il parametro ItemSpecToUse: '{0}'. Questa proprietà deve essere vuota o impostata su 'Left' o 'Right' + {StrBegin="NETSDK1058: "} +The following are names of parameters or literal values and should not be translated: ItemSpecToUse, Left, Right + + + NETSDK1018: Invalid NuGet version string: '{0}'. + NETSDK1018: la stringa di versione '{0}' di NuGet non è valida. + {StrBegin="NETSDK1018: "} + + + NETSDK1075: Update handle is invalid. This instance may not be used for further updates. + NETSDK1075: il punto di controllo dell'aggiornamento non è valido. Non è possibile usare questa istanza per ulteriori aggiornamenti. + {StrBegin="NETSDK1075: "} + + + NETSDK1104: RollForward value '{0}' is invalid. Allowed values are {1}. + NETSDK1104: il valore '{0}' di RollForward non è valido. I valori consentiti sono {1}. + {StrBegin="NETSDK1104: "} + + + NETSDK1140: {0} is not a valid TargetPlatformVersion for {1}. Valid versions include: +{2} + NETSDK1140: {0} non è un valore valido di TargetPlatformVersion per or {1}. Le versioni valide includono: +{2} + {StrBegin="NETSDK1140: "} + + + NETSDK1173: The provided type library '{0}' is in an invalid format. + NETSDK1173: il formato della libreria dei tipi specificata '{0}' non è valido. + {StrBegin="NETSDK1173: "} + + + NETSDK1170: The provided type library ID '{0}' for type libary '{1}' is invalid. The ID must be a positive integer less than 65536. + NETSDK1170: l'ID '{0}' per la libreria dei tipi specificato '{1}' non è valido. L'ID deve essere un numero positivo intero inferiore a 65536. + {StrBegin="NETSDK1170: "} + + + NETSDK1157: JIT library '{0}' not found. + NETSDK1157: la libreria '{0}' di JIT non è stata trovata. + {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: per il ripristino del progetto è stato usato {0} versione {1}, ma con le impostazioni correnti viene usata la versione {2}. Per risolvere il problema, assicurarsi di usare le stesse impostazioni per il ripristino e per le operazioni successive, quali compilazione o pubblicazione. In genere questo problema può verificarsi se la proprietà RuntimeIdentifier viene impostata durante la compilazione o la pubblicazione, ma non durante il ripristino. Per altre informazioni, vedere https://aka.ms/dotnet-runtime-patch-selection. + {StrBegin="NETSDK1061: "} +{0} - Package Identifier for platform package +{1} - Restored version of platform package +{2} - Current version of platform package + + + NETSDK1008: Missing '{0}' metadata on '{1}' item '{2}'. + NETSDK1008: mancano i metadati di '{0}' sull'elemento '{2}' di '{1}'. + {StrBegin="NETSDK1008: "} + + + NETSDK1164: Missing output PDB path in PDB generation mode (OutputPDBImage metadata). + NETSDK1164: il percorso PDB di output non è presente nella modalità di generazione PDB (metadati di OutputPDBImage). + {StrBegin="NETSDK1164: "} + + + NETSDK1165: Missing output R2R image path (OutputR2RImage metadata). + NETSDK1165: il percorso dell'immagine R2R di output non è presente (metadati di OutputR2RImage). + {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: un ID intero inferiore a 65536 deve essere fornito per la libreria dei tipi '{0}' perché è specificata più di una libreria dei tipi. + {StrBegin="NETSDK1171: "} + + + NETSDK1021: More than one file found for {0} + NETSDK1021: è stato trovato più di un file per {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: questo progetto usa una libreria destinata a .NET Standard 1.5 o versione successiva ed è destinato a una versione di .NET Framework che non include il supporto predefinito per tale versione di .NET Standard. Per un serie di problemi noti, visitare https://aka.ms/net-standard-known-issues. Provare a impostare come destinazione .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: l'istanza corrente di .NET SDK non supporta .NET Framework senza usare le impostazioni predefinite di .NET SDK. Il problema dipende probabilmente da una mancata corrispondenza tra la proprietà CLRSupport del progetto C++/CLI e TargetFramework. + {StrBegin="NETSDK1115: "} + + + NETSDK1182: Targeting .NET 6.0 or higher in Visual Studio 2019 is not supported. + NETSDK1182: la destinazione .NET 6.0 o versione successiva in Visual Studio 2019 non è supportata. + {StrBegin="NETSDK1182: "} + + + NETSDK1084: There is no application host available for the specified RuntimeIdentifier '{0}'. + NETSDK1084: non è disponibile alcun host applicazione per l'elemento RuntimeIdentifier specificato '{0}'. + {StrBegin="NETSDK1084: "} + + + NETSDK1085: The 'NoBuild' property was set to true but the 'Build' target was invoked. + NETSDK1085: non è stata impostata alcuna proprietà 'NoBuild' su true, ma è stata chiamata la destinazione 'Build'. + {StrBegin="NETSDK1085: "} + + + NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'. + NETSDK1002: il progetto '{0}' è destinato a '{2}'. Non può essere usato come riferimento in un progetto destinato a '{1}'. + {StrBegin="NETSDK1002: "} + + + NETSDK1082: There was no runtime pack for {0} available for the specified RuntimeIdentifier '{1}'. + NETSDK1082: non è disponibile alcun pacchetto di runtime per {0} per l'elemento RuntimeIdentifier specificato '{1}'. + {StrBegin="NETSDK1082: "} + + + NETSDK1132: No runtime pack information was available for {0}. + NETSDK1132: non sono disponibili informazioni sui pacchetti di runtime per {0}. + {StrBegin="NETSDK1132: "} + + + NETSDK1128: COM hosting does not support self-contained deployments. + NETSDK1128: l'hosting COM non supporta le distribuzioni complete. + {StrBegin="NETSDK1128: "} + + + NETSDK1119: C++/CLI projects targeting .NET Core cannot use EnableComHosting=true. + NETSDK1119: i progetti C++/CLI destinati a .NET Core non possono usare EnableComHosting=true. + {StrBegin="NETSDK1119: "} + + + NETSDK1116: C++/CLI projects targeting .NET Core must be dynamic libraries. + NETSDK1116: i progetti C++/CLI destinati a .NET Core devono essere librerie dinamiche. + {StrBegin="NETSDK1116: "} + + + NETSDK1118: C++/CLI projects targeting .NET Core cannot be packed. + NETSDK1118: i progetti C++/CLI destinati a .NET Core non possono essere compressi. + {StrBegin="NETSDK1118: "} + + + NETSDK1117: Does not support publish of C++/CLI project targeting dotnet core. + NETSDK1117: la pubblicazione di progetti C++/CLI destinati a .NET Core non è supportata. + {StrBegin="NETSDK1117: "} + + + NETSDK1121: C++/CLI projects targeting .NET Core cannot use SelfContained=true. + 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. For more information, see https://aka.ms/netsdk1151 + NETSDK1151: il progetto '{0}' a cui viene fatto riferimento è un eseguibile autonomo. Non è possibile fare riferimento a un eseguibile autonomo da un eseguibile non autonomo. Per altre informazioni, vedere https://aka.ms/netsdk1151 + {StrBegin="NETSDK1151: "} + + + NETSDK1162: PDB generation: R2R executable '{0}' not found. + NETSDK1162: generazione PDB: l'eseguibile '{0}' di R2R non è stato trovato. + {StrBegin="NETSDK1162: "} + + + NETSDK1053: Pack as tool does not support self contained. + NETSDK1053: la creazione di pacchetti come strumenti non prevede elementi autonomi. + {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 non supporta l'impostazione di TargetPlatformIdentifier. Ad esempio, TargetFramework non può essere essere impostato su net5.0-windows, ma solo su net5.0. PackAsTool non supporta neanche UseWPF o UseWindowsForms quando la destinazione è .NET 5 e versioni successive. + {StrBegin="NETSDK1146: "} + + + 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. + NETSDK1064: il pacchetto {0} versione {1} non è stato trovato. Potrebbe essere stato eliminato dopo il ripristino di NuGet. In caso contrario, il ripristino di NuGet potrebbe essere stato completato solo parzialmente, a causa delle restrizioni relative alla lunghezza massima del percorso. + {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: nel progetto è stato incluso un riferimento al pacchetto per '{0}'. Questo pacchetto viene usato come riferimento implicito da .NET SDK e non è in genere necessario farvi riferimento dal progetto. Per altre informazioni, vedere {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: in un elemento PackageReference che fa riferimento a '{0}' è specificata la versione di `{1}`. È consigliabile non specificare la versione di questo pacchetto. Per altre informazioni, vedere https://aka.ms/sdkimplicitrefs + {StrBegin="NETSDK1071: "} + + + NETSDK1174: Placeholder + 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. + + + NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'. + NETSDK1011: le risorse vengono utilizzate dal progetto '{0}', ma non è stato trovato alcun percorso di progetto MSBuild corrispondente 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: lo strumento '{0}' è ora incluso in .NET SDK. Per informazioni sulla risoluzione di questo avviso, vedere (https://aka.ms/dotnetclitools-in-box). + {StrBegin="NETSDK1059: "} + + + NETSDK1093: Project tools (DotnetCliTool) only support targeting .NET Core 2.2 and lower. + NETSDK1093: gli strumenti del progetto (DotnetCliTool) supportano come destinazione solo .NET Core 2.2 e versioni precedenti. + {StrBegin="NETSDK1093: "} + + + NETSDK1122: ReadyToRun compilation will be skipped because it is only supported for .NET Core 3.0 or higher. + NETSDK1122: la compilazione eseguita con ReadyToRun verrà ignorata perché è supportata solo per .NET Core 3.0 o versioni successive. + {StrBegin="NETSDK1122: "} + + + NETSDK1123: Publishing an application to a single-file requires .NET Core 3.0 or higher. + NETSDK1123: per la pubblicazione di un'applicazione in un file singolo è richiesto .NET Core 3.0 o versioni successive. + {StrBegin="NETSDK1123: "} + + + NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher. + NETSDK1124: per il trimming degli assembly è richiesto .NET Core 3.0 o versioni successive. + {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: la destinazione 'Publish' non è supportata se non viene specificato un framework di destinazione. Il progetto corrente è destinato a più framework, di conseguenza è necessario specificare il framework per l'applicazione pubblicata. + {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: l'ottimizzazione degli assembly per le prestazioni non è riuscita. È possibile escludere gli assembly in errore dall'ottimizzazione oppure impostare la proprietà PublishReadyToRun su 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. + Alcune compilazioni eseguite con la proprietà ReadyToRun hanno restituito avvisi per indicare potenziali dipendenze mancanti. Le dipendenze mancanti potrebbero causare errori di runtime. Per visualizzare gli avvisi, impostare la proprietà PublishReadyToRunShowWarnings su 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. + NETSDK1094: non è possibile ottimizzare gli assembly per le prestazioni perché non è stato trovato alcun pacchetto di runtime valido. Impostare la proprietà PublishReadyToRun su false oppure usare un identificatore di runtime supportato durante la pubblicazione. + {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: l'ottimizzazione degli assembly per le prestazioni non è supportata per la piattaforma o l'architettura di destinazione selezionata. Verificare di usare un identificatore di runtime supportato oppure impostare la proprietà PublishReadyToRun su false. + {StrBegin="NETSDK1095: "} + + + NETSDK1103: RollForward setting is only supported on .NET Core 3.0 or higher. + NETSDK1103: l'impostazione RollForward è supportata solo in .NET Core 3.0 o versione successiva. + {StrBegin="NETSDK1103: "} + + + NETSDK1083: The specified RuntimeIdentifier '{0}' is not recognized. + NETSDK1083: l'elemento RuntimeIdentifier '{0}' specificato non è riconosciuto. + {StrBegin="NETSDK1083: "} + + + NETSDK1028: Specify a RuntimeIdentifier + NETSDK1028: specificare un elemento RuntimeIdentifier + {StrBegin="NETSDK1028: "} + + + 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. + {StrBegin="NETSDK1109: "} + + + NETSDK1112: The runtime pack for {0} was not downloaded. Try running a NuGet restore with the RuntimeIdentifier '{1}'. + 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. For more information, see https://aka.ms/netsdk1150 + NETSDK1150: il progetto '{0}' a cui viene fatto riferimento è un eseguibile non autonomo. Non è possibile fare riferimento a un eseguibile non autonomo da un eseguibile autonomo. Per altre informazioni, vedere https://aka.ms/netsdk1150 + {StrBegin="NETSDK1150: "} + + + NETSDK1179: One of '--self-contained' or '--no-self-contained' options are required when '--runtime' is used. + NETSDK1179: quando si usa '--runtime' è necessaria una delle opzioni '--self-contained' o '--no-self-contained'. + {StrBegin="NETSDK1179: "} + + + 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. + {StrBegin="NETSDK1048: "} + + + 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: il framework di destinazione '{0}' non è più supportato e non riceverà aggiornamenti della sicurezza in futuro. Per altre informazioni sui criteri di supporto, vedere {1}. + {StrBegin="NETSDK1138: "} + + + NETSDK1046: The TargetFramework value '{0}' is not valid. To multi-target, use the 'TargetFrameworks' property instead. + NETSDK1046: il valore '{0}' di TargetFramework non è valido. Per impostare più destinazioni, usare la proprietà 'TargetFrameworks'. + {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: il pacchetto {0} non è installato e il ripristino del pacchetto NuGet non è supportato. Aggiornare Visual Studio, rimuovere global.json se specifica una determinata versione dell'SDK e disinstallare l'SDK più recente. Per altre opzioni, vedere https://aka.ms/targeting-apphost-pack-missing. Tipo del pacchetto: {0}. Directory del pacchetto: {1}. Framework di destinazione: {2}. ID pacchetto: {3}. Versione del pacchetto: {4} + {StrBegin="NETSDK1145: "} + + + NETSDK1127: The targeting pack {0} is not installed. Please restore and try again. + NETSDK1127: il Targeting Pack {0} non è installato. Ripristinare e riprovare. + {StrBegin="NETSDK1127: "} + + + 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: quando il trimming è abilitato, Windows Form non è supportato o consigliato. Per altre informazioni, vedere https://aka.ms/dotnet-illink/windows-forms. + {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: quando il trimming è abilitato, il WPF non è supportato o consigliato. Per altre informazioni, visitare https://aka.ms/dotnet-illink/wpf. + {StrBegin="NETSDK1168: "} + + + NETSDK1172: The provided type library '{0}' does not exist. + NETSDK1172: la libreria dei tipi specificata '{0}' non esiste. + {StrBegin="NETSDK1172: "} + + + NETSDK1016: Unable to find resolved path for '{0}'. + NETSDK1016: il percorso risolto per '{0}' non è stato trovato. + {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. + Non è possibile usare la cache delle risorse del pacchetto a causa dell'errore di I/O. Questo problema può verificarsi quando lo stesso progetto viene compilato più volte in parallelo. Può influire sulle prestazioni, ma non sul risultato della compilazione. + + + + NETSDK1012: Unexpected file type for '{0}'. Type is both '{1}' and '{2}'. + NETSDK1012: tipo di file imprevisto per '{0}'. Il tipo è sia '{1}' che '{2}'. + {StrBegin="NETSDK1012: "} + + + NETSDK1073: The FrameworkReference '{0}' was not recognized + NETSDK1073: l'elemento FrameworkReference '{0}' non è stato riconosciuto + {StrBegin="NETSDK1073: "} + + + NETSDK1182: The FrameworkReference '{0}' was not recognized. This may be because DOTNETSDK_DisableTransitiveFrameworkReferences was set to true. + NETSDK1182: The FrameworkReference '{0}' was not recognized. This may be because DOTNETSDK_DisableTransitiveFrameworkReferences was set to true. + {StrBegin="NETSDK1182: "} + + + 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: non è più necessario usare Microsoft.NET.Sdk.WindowsDesktop SDK. Provare a modificare l'attributo Sdk dell'elemento Project radice in 'Microsoft.NET.Sdk'. + {StrBegin="NETSDK1137: "} + + + NETSDK1009: Unrecognized preprocessor token '{0}' in '{1}'. + NETSDK1009: token di preprocessore '{0}' non riconosciuto 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: il pacchetto di destinazione per {0} non è stato trovato. Per risolvere il problema, eseguire un ripristino NuGet sul progetto. + {StrBegin="NETSDK1081: "} + + + NETSDK1019: {0} is an unsupported framework. + NETSDK1019: {0} è un framework non supportato. + {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: il progetto è destinato al runtime '{0}' ma non ha risolto pacchetti specifici del runtime. È possibile che questo runtime non sia supportato dal framework di destinazione. + {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: la versione di Microsoft.NET.Sdk usata da questo progetto non è sufficiente per supportare i riferimenti alle librerie destinate a .NET Standard 1.5 o versione successiva. Installare la versione 2.0 o successiva di .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: la versione corrente di .NET SDK non supporta {0} {1} come destinazione. Impostare come destinazione {0} {2} o una versione precedente oppure usare una versione di .NET SDK che supporta {0} {1}. + {StrBegin="NETSDK1045: "} + + + NETSDK1139: The target platform identifier {0} was not recognized. + NETSDK1139: l'identificatore di piattaforma di destinazione {0} non è stato riconosciuto. + {StrBegin="NETSDK1139: "} + + + NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK. + NETSDK1107: per compilare applicazioni desktop di Windows, è necessario Microsoft.NET.Sdk.WindowsDesktop. 'UseWpf' e 'UseWindowsForms' non sono supportati dall'SDK corrente. + {StrBegin="NETSDK1107: "} + + + You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview + Si sta usando una versione in anteprima di .NET. Vedere https://aka.ms/dotnet-core-preview + + + + NETSDK1131: Producing a managed Windows Metadata component with WinMDExp is not supported when targeting {0}. + NETSDK1131: la produzione di un componente Metadati Windows gestito con WinMDExp non è supportata quando la destinazione è {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: non è possibile fare riferimento a {1}. Il riferimento diretto a un componente di Metadati Windows quando la destinazione è .NET 5 o versione successiva non è supportato. Per altre informazioni, vedere 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: non è possibile fare riferimento a {0} perché usa il supporto incorporato per WinRT, che non è più supportato in .NET 5 e versioni successive. È necessaria una versione aggiornata del componente che supporta .NET 5. Per altre informazioni, vedere https://aka.ms/netsdk1149 + {StrBegin="NETSDK1149: "} + + + NETSDK1106: Microsoft.NET.Sdk.WindowsDesktop requires 'UseWpf' or 'UseWindowsForms' to be set to 'true' + NETSDK1106: con Microsoft.NET.Sdk.WindowsDesktop 'UseWpf' o 'UseWindowsForms' deve essere impostato su 'true' + {StrBegin="NETSDK1106: "} + + + NETSDK1105: Windows desktop applications are only supported on .NET Core 3.0 or higher. + NETSDK1105: le applicazioni desktop di Windows sono supportate solo in .NET Core 3.0 o versioni successive. + {StrBegin="NETSDK1105: "} + + + NETSDK1100: Windows is required to build Windows desktop applications. + NETSDK1100: per compilare applicazioni desktop di Windows è richiesto Windows. + {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: la piattaforma di destinazione deve essere impostata su Windows, in genere includendo '-windows ' nella proprietà TargetFramework, quando si usa Windows Forms o WPF oppure si fa riferimento a progetti o pacchetti che lo usano. + {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: un assembly di riferimento è stato compilato con una versione più recente di Microsoft.Windows.SDK.NET.dll. Eseguire l'aggiornamento a un SDK .NET più recente per fare riferimento a questo 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: il progetto dipende dai pacchetti di carico di lavoro seguenti che non esistono in nessuno dei carichi di lavoro disponibili in questa installazione: {0} +Potrebbe essere necessario compilare il progetto in un altro sistema operativo o architettura oppure aggiornare .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: per compilare questo progetto devono essere installati i seguenti carichi di lavoro: {0} +Per installare questi carichi di lavoro, eseguire il seguente comando: dotnet workload restore + {StrBegin="NETSDK1147: "} LOCALIZATION: Do not localize "dotnet workload restore" + + + + \ No newline at end of file diff --git a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf index 598ca95f4320..892ebb32695a 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf @@ -740,6 +740,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: {0} のランタイム パックがダウンロードされませんでした。RuntimeIdentifier '{1}' で NuGet 復元を実行してみてください。 {StrBegin="NETSDK1112: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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」を参照してください @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: ターゲット パック {0} がインストールされていません。復元して、もう一度お試しください。 {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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 を参照してください。 diff --git a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf index bf6f76a6c6f4..06e8a61fd7d6 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf @@ -740,6 +740,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: {0}용 런타임 팩이 다운로드되지 않았습니다. RuntimeIdentifier '{1}'을(를) 사용하여 NuGet 복원을 실행해 보세요. {StrBegin="NETSDK1112: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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}'은(는) self-contained가 아닌 실행 파일입니다. self-contained가 아닌 실행 파일은 self-contained 실행 파일에서 참조할 수 없습니다. 자세한 내용은 https://aka.ms/netsdk1150을 참조하세요 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: 타기팅 팩 {0}이(가) 설치되어 있지 않습니다. 복원한 후 다시 시도하세요. {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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 Forms이 지원되지 않거나 권장되지 않습니다. 자세한 내용은 https://aka.ms/dotnet-illink/windows-forms를 참조하세요. diff --git a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf index 0f139c619d69..bd14decddfd5 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf @@ -740,6 +740,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: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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: Projekt „{0}”, do którego istnieje odwołanie, jest niesamodzielnym plikiem wykonywalnym. Niesamodzielny plik wykonywalny nie może być przywoływany przez samodzielny plik wykonywalny. Aby uzyskać więcej informacji, zobacz: https://aka.ms/netsdk1150 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: Pakiet docelowy {0} nie jest zainstalowany. Wykonaj przywrócenie i spróbuj ponownie. {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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: Aplikacja Windows Forms nie jest obsługiwana lub proponowana z funkcją włączonego przycinania. Aby uzyskać więcej szczegółów, przejdź do: https://aka.ms/dotnet-illink/windows-forms. diff --git a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf index e55b6d61645d..139cbb2cb28e 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf @@ -740,6 +740,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: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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: O projeto referenciado '{0}' é um executável não autossuficiente. Um executável não autossuficiente não pode ser referenciado por um executável autossuficiente. Para mais informações, consulte https://aka.ms/netsdk1150 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: o pacote de direcionamento do {0} não está instalado. Restaure e tente novamente. {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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: O Windows Forms não é compatível ou recomendado com corte habilitado. Acesse https://aka.ms/dotnet-illink/windows-forms para obter mais detalhes. diff --git a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf index ad0a96284990..ddee45c7e4aa 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf @@ -740,6 +740,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: пакет среды выполнения для {0} не был скачан. Попробуйте выполнить восстановление NuGet с помощью RuntimeIdentifier "{1}". {StrBegin="NETSDK1112: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: пакет нацеливания {0} не установлен. Выполните восстановление и повторите попытку. {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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 Forms не поддерживается и не рекомендуется использовать с включенной обрезкой. Дополнительные сведения см. на странице https://aka.ms/dotnet-illink/windows-forms. diff --git a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf index 26c0e23beba2..cf87f290101a 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf @@ -740,6 +740,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: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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: Başvurulan '{0}' projesi bağımsız olmayan bir yürütülebilir dosyadır. Bağımsız olmayan bir yürütülebilir dosyaya, bağımsız bir yürütülebilir dosya tarafından başvurulamaz. Daha fazla bilgi için bkz. https://aka.ms/netsdk1150 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: {0} hedefleme paketi yüklü değil. Lütfen geri yükleyip yeniden deneyin. {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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 Forms, kırpmanın etkinleştirilmesi ile desteklenmiyor veya önerilmiyor. Daha fazla ayrıntı için lütfen https://aka.ms/dotnet-illink/windows-forms adresine gidin. diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf index 451ce4820a8b..4bba3bc98d2e 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf @@ -740,6 +740,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: 未下载 {0} 的运行时包。请尝试使用 RuntimeIdentifier“{1}”运行 NuGet 还原。 {StrBegin="NETSDK1112: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: 未安装目标包 {0}。请还原并重试。 {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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 以了解详细信息。 diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf index 2b9f3bd59031..fcd2170733f3 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf @@ -740,6 +740,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1112: 未下載 {0} 的執行階段套件。請嘗試使用 RuntimeIdentifier '{1}' 執行 NuGet 還原。 {StrBegin="NETSDK1112: "} + + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1184: "} + 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 @@ -775,6 +780,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1127: 未安裝目標套件 {0}。請還原後再試一次。 {StrBegin="NETSDK1127: "} + + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + {StrBegin="NETSDK1183: "} + 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 Forms。如需詳細資料,請前往 https://aka.ms/dotnet-illink/windows-forms。 From ea912e2ba5d8059752df28bec0fa2e18cadf5405 Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Tue, 10 May 2022 19:13:05 -0300 Subject: [PATCH 2/8] Add support for DisableTransitiveFrameworkReferenceDownloads property --- .../GivenAResolveTargetingPackAssetsTask.cs | 1 + .../GivenThatWeHaveErrorCodes.cs | 1 + .../ProcessFrameworkReferences.cs | 18 +- .../ResolveRuntimePackAssets.cs | 14 +- .../ResolveTargetingPackAssets.cs | 33 ++- .../targets/Microsoft.NET.CrossGen.targets | 3 +- ...T.Sdk.FrameworkReferenceResolution.targets | 5 +- .../GivenFrameworkReferences.cs | 5 +- ...ransitiveFrameworkReferencesAreDisabled.cs | 194 ++++++++++++++++++ 9 files changed, 254 insertions(+), 20 deletions(-) create mode 100644 src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs index bd45188bfde8..4949fc0cf9f3 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs @@ -337,6 +337,7 @@ public static void StronglyTypedInputs_Includes_All_Inputs_In_CacheKey() runtimeFrameworks: new[] {new MockTaskItem("RuntimeFramework1", new Dictionary()) }, generateErrorForMissingTargetingPacks: true, nuGetRestoreSupported: true, + disableTransitiveFrameworkReferences: false, netCoreTargetingPackRoot: "netCoreTargetingPackRoot", projectLanguage: "C#"); diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs index 7e697fea362f..33c30713282f 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs @@ -37,6 +37,7 @@ public class GivenThatWeHaveErrorCodes 1066, 1101, 1108, + 1180, }; [Fact] diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs index ef0085863728..c80ef36e2033 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs @@ -58,6 +58,8 @@ public class ProcessFrameworkReferences : TaskBase public bool EnableRuntimePackDownload { get; set; } + public bool DisableTransitiveFrameworkReferenceDownloads { get; set; } + public ITaskItem[] FrameworkReferences { get; set; } = Array.Empty(); public ITaskItem[] KnownFrameworkReferences { get; set; } = Array.Empty(); @@ -219,7 +221,10 @@ protected override void ExecuteCore() } else { - if (EnableTargetingPackDownload) + // If transitive framework reference downloads are disabled, then don't download targeting packs where there isn't + // a direct framework reference + if (EnableTargetingPackDownload && + !(DisableTransitiveFrameworkReferenceDownloads && frameworkReference == null)) { // Download targeting pack TaskItem packageToDownload = new TaskItem(knownFrameworkReference.TargetingPackName); @@ -298,7 +303,8 @@ var runtimeRequiredByDeployment } ProcessRuntimeIdentifier(hasRuntimePackAlwaysCopyLocal ? "any" : RuntimeIdentifier, runtimePackForRuntimeIDProcessing, runtimePackVersion, additionalFrameworkReferencesForRuntimePack, - unrecognizedRuntimeIdentifiers, unavailableRuntimePacks, runtimePacks, packagesToDownload, isTrimmable, EnableRuntimePackDownload && useRuntimePackAndDownloadIfNecessary); + unrecognizedRuntimeIdentifiers, unavailableRuntimePacks, runtimePacks, packagesToDownload, isTrimmable, EnableRuntimePackDownload && useRuntimePackAndDownloadIfNecessary, + wasReferencedDirectly: frameworkReference != null); processedPrimaryRuntimeIdentifier = true; } @@ -316,7 +322,8 @@ var runtimeRequiredByDeployment // Pass in null for the runtimePacks list, as for these runtime identifiers we only want to // download the runtime packs, but not use the assets from them ProcessRuntimeIdentifier(runtimeIdentifier, runtimePackForRuntimeIDProcessing, runtimePackVersion, additionalFrameworkReferencesForRuntimePack: null, - unrecognizedRuntimeIdentifiers, unavailableRuntimePacks, runtimePacks: null, packagesToDownload, isTrimmable, useRuntimePackAndDownloadIfNecessary); + unrecognizedRuntimeIdentifiers, unavailableRuntimePacks, runtimePacks: null, packagesToDownload, isTrimmable, useRuntimePackAndDownloadIfNecessary, + wasReferencedDirectly: frameworkReference != null); } } @@ -452,7 +459,8 @@ private void ProcessRuntimeIdentifier( List runtimePacks, List packagesToDownload, string isTrimmable, - bool addRuntimePackAndDownloadIfNecessary) + bool addRuntimePackAndDownloadIfNecessary, + bool wasReferencedDirectly) { var runtimeGraph = new RuntimeGraphCache(this).GetRuntimeGraph(RuntimeGraphPath); var knownFrameworkReferenceRuntimePackRuntimeIdentifiers = selectedRuntimePack.RuntimePackRuntimeIdentifiers.Split(';'); @@ -523,7 +531,7 @@ private void ProcessRuntimeIdentifier( runtimePacks.Add(runtimePackItem); } - if (runtimePackPath == null) + if (runtimePackPath == null && (wasReferencedDirectly || !DisableTransitiveFrameworkReferenceDownloads)) { TaskItem packageToDownload = new TaskItem(runtimePackName); packageToDownload.SetMetadata(MetadataKeys.Version, resolvedRuntimePackVersion); diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs index 0390095cf427..f42b00da7d1a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs @@ -22,6 +22,8 @@ public class ResolveRuntimePackAssets : TaskBase public bool DesignTimeBuild { get; set; } + public bool DisableTransitiveFrameworkReferenceDownloads { get; set; } + [Output] public ITaskItem[] RuntimePackAssets { get; set; } @@ -66,8 +68,16 @@ protected override void ExecuteCore() // Don't treat this as an error if we are doing a design-time build. This is because the design-time // build needs to succeed in order to get the right information in order to run a restore to download // the runtime pack. - Log.LogError(Strings.RuntimePackNotDownloaded, runtimePack.ItemSpec, - runtimePack.GetMetadata(MetadataKeys.RuntimeIdentifier)); + + if (DisableTransitiveFrameworkReferenceDownloads) + { + Log.LogError(Strings.RuntimePackNotRestored_TransitiveDisabled, runtimePack.ItemSpec); + } + else + { + Log.LogError(Strings.RuntimePackNotDownloaded, runtimePack.ItemSpec, + runtimePack.GetMetadata(MetadataKeys.RuntimeIdentifier)); + } } continue; } diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs index cb4471747753..cc713d44a869 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs @@ -26,6 +26,8 @@ public class ResolveTargetingPackAssets : TaskBase public bool NuGetRestoreSupported { get; set; } = true; + public bool DisableTransitiveFrameworkReferenceDownloads { get; set; } + public string NetCoreTargetingPackRoot { get; set; } public string ProjectLanguage { get; set; } @@ -78,7 +80,7 @@ protected override void ExecuteCore() } else { - results = Resolve(inputs, Log, BuildEngine4); + results = Resolve(inputs, BuildEngine4); if (s_allowCacheLookup) { @@ -86,6 +88,11 @@ protected override void ExecuteCore() } } + foreach (var error in results.Errors) + { + Log.LogError(error); + } + ReferencesToAdd = results.ReferencesToAdd; AnalyzersToAdd = results.AnalyzersToAdd; PlatformManifests = results.PlatformManifests; @@ -100,16 +107,18 @@ protected override void ExecuteCore() RuntimeFrameworks, GenerateErrorForMissingTargetingPacks, NuGetRestoreSupported, + DisableTransitiveFrameworkReferenceDownloads, NetCoreTargetingPackRoot, ProjectLanguage); - private static ResolvedAssetsCacheEntry Resolve(StronglyTypedInputs inputs, Logger log, IBuildEngine4 buildEngine) + private static ResolvedAssetsCacheEntry Resolve(StronglyTypedInputs inputs, IBuildEngine4 buildEngine) { List referencesToAdd = new List(); List analyzersToAdd = new List(); List platformManifests = new List(); List packageConflictOverrides = new List(); List preferredPackages = new List(); + List errors = new List(); var resolvedTargetingPacks = inputs.ResolvedTargetingPacks .ToDictionary( @@ -129,24 +138,28 @@ private static ResolvedAssetsCacheEntry Resolve(StronglyTypedInputs inputs, Logg { if (!foundTargetingPack) { - log.LogError(Strings.UnknownFrameworkReference, frameworkReference.Name); + errors.Add(string.Format(Strings.UnknownFrameworkReference, frameworkReference.Name)); } else { - if (inputs.NuGetRestoreSupported) + if (inputs.DisableTransitiveFrameworkReferences) + { + errors.Add(string.Format(Strings.TargetingPackNotRestored_TransitiveDisabled, frameworkReference.Name)); + } + else if (inputs.NuGetRestoreSupported) { - log.LogError(Strings.TargetingPackNeedsRestore, frameworkReference.Name); + errors.Add(string.Format(Strings.TargetingPackNeedsRestore, frameworkReference.Name)); } else { - log.LogError( + errors.Add(string.Format( Strings.TargetingApphostPackMissingCannotRestore, "Targeting", $"{inputs.NetCoreTargetingPackRoot}\\{targetingPack.NuGetPackageId ?? ""}", targetingPack.TargetFramework ?? "", targetingPack.NuGetPackageId ?? "", targetingPack.NuGetPackageVersion ?? "" - ); + )); } } } @@ -229,6 +242,7 @@ private static ResolvedAssetsCacheEntry Resolve(StronglyTypedInputs inputs, Logg UsedRuntimeFrameworks = inputs.RuntimeFrameworks.Where(rf => frameworkReferenceNames.Contains(rf.FrameworkName)) .Select(rf => rf.Item) .ToArray(), + Errors = errors.ToArray(), }; return newCacheEntry; } @@ -446,6 +460,7 @@ internal class StronglyTypedInputs public RuntimeFramework[] RuntimeFrameworks {get; private set;} public bool GenerateErrorForMissingTargetingPacks {get; private set;} public bool NuGetRestoreSupported {get; private set;} + public bool DisableTransitiveFrameworkReferences { get; private set; } public string NetCoreTargetingPackRoot {get; private set;} public string ProjectLanguage {get; private set;} @@ -455,6 +470,7 @@ public StronglyTypedInputs( ITaskItem[] runtimeFrameworks, bool generateErrorForMissingTargetingPacks, bool nuGetRestoreSupported, + bool disableTransitiveFrameworkReferences, string netCoreTargetingPackRoot, string projectLanguage) { @@ -473,6 +489,7 @@ public StronglyTypedInputs( RuntimeFrameworks = runtimeFrameworks.Select(item => new RuntimeFramework(item.ItemSpec, item.GetMetadata(MetadataKeys.FrameworkName), item)).ToArray(); GenerateErrorForMissingTargetingPacks = generateErrorForMissingTargetingPacks; NuGetRestoreSupported = nuGetRestoreSupported; + DisableTransitiveFrameworkReferences = disableTransitiveFrameworkReferences; NetCoreTargetingPackRoot = netCoreTargetingPackRoot; ProjectLanguage = projectLanguage; } @@ -500,6 +517,7 @@ public string CacheKey() cacheKeyBuilder.AppendLine($"{nameof(GenerateErrorForMissingTargetingPacks)}={GenerateErrorForMissingTargetingPacks}"); cacheKeyBuilder.AppendLine($"{nameof(NuGetRestoreSupported)}={NuGetRestoreSupported}"); + cacheKeyBuilder.AppendLine($"{nameof(DisableTransitiveFrameworkReferences)}={DisableTransitiveFrameworkReferences}"); cacheKeyBuilder.AppendLine($"{nameof(NetCoreTargetingPackRoot)}={NetCoreTargetingPackRoot}"); @@ -661,6 +679,7 @@ private class ResolvedAssetsCacheEntry public string PackageConflictPreferredPackages; public ITaskItem[] PackageConflictOverrides; public ITaskItem[] UsedRuntimeFrameworks; + public string[] Errors; } } } diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.CrossGen.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.CrossGen.targets index 5d4091f73906..3cfa02220ac6 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.CrossGen.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.CrossGen.targets @@ -311,7 +311,8 @@ Copyright (c) .NET Foundation. All rights reserved. + ResolvedRuntimePacks="@(_CrossgenRuntimePack)" + DisableTransitiveFrameworkReferenceDownloads="$(DisableTransitiveFrameworkReferenceDownloads)"> diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets index b2541cfdc36a..9f850bff4483 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets @@ -106,6 +106,7 @@ Copyright (c) .NET Foundation. All rights reserved. TargetLatestRuntimePatchIsDefault="$(_TargetLatestRuntimePatchIsDefault)" EnableTargetingPackDownload="$(EnableTargetingPackDownload)" EnableRuntimePackDownload="$(EnableRuntimePackDownload)" + DisableTransitiveFrameworkReferenceDownloads="$(DisableTransitiveFrameworkReferenceDownloads)" KnownCrossgen2Packs="@(KnownCrossgen2Pack)" NETCoreSdkRuntimeIdentifier="$(NETCoreSdkRuntimeIdentifier)" NetCoreRoot="$(NetCoreRoot)" @@ -359,6 +360,7 @@ Copyright (c) .NET Foundation. All rights reserved. RuntimeFrameworks="@(RuntimeFramework)" GenerateErrorForMissingTargetingPacks="$(GenerateErrorForMissingTargetingPacks)" NuGetRestoreSupported="$(_NuGetRestoreSupported)" + DisableTransitiveFrameworkReferenceDownloads="$(DisableTransitiveFrameworkReferenceDownloads)" NetCoreTargetingPackRoot="$(NetCoreTargetingPackRoot)"> @@ -428,7 +430,8 @@ Copyright (c) .NET Foundation. All rights reserved. ResolvedRuntimePacks="@(ResolvedRuntimePack)" UnavailableRuntimePacks="@(UnavailableRuntimePack)" SatelliteResourceLanguages="$(SatelliteResourceLanguages)" - DesignTimeBuild="$(DesignTimeBuild)"> + DesignTimeBuild="$(DesignTimeBuild)" + DisableTransitiveFrameworkReferenceDownloads="$(DisableTransitiveFrameworkReferenceDownloads)"> diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenFrameworkReferences.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenFrameworkReferences.cs index 5751f898c8c7..61b5320b3697 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenFrameworkReferences.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenFrameworkReferences.cs @@ -673,10 +673,7 @@ public void TargetingPackVersionCanBeSpecifiedOnFrameworkReference() resolvedVersions.AppHostPack["AppHost"].Should().Be("3.0.0-apphostversion"); } - // Transitive framework references require NuGet support, which isn't currently - // in the full Framework MSBuild we use in CI, so only run these tests for - // core MSBuild for now - [RequiresMSBuildVersionFact("17.0.0.32901")] + [Fact] public void TransitiveFrameworkReferenceFromProjectReference() { var testProject = new TestProject() diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs new file mode 100644 index 000000000000..8820f1c616ad --- /dev/null +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs @@ -0,0 +1,194 @@ +// 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.IO; +using System.Linq; +using System.Runtime.CompilerServices; +using System.Text; +using System.Threading.Tasks; +using FluentAssertions; +using FluentAssertions.Collections; +using Microsoft.NET.TestFramework; +using Microsoft.NET.TestFramework.Assertions; +using Microsoft.NET.TestFramework.Commands; +using Microsoft.NET.TestFramework.ProjectConstruction; +using Xunit; +using Xunit.Abstractions; + +namespace Microsoft.NET.Build.Tests +{ + public class GivenTransitiveFrameworkReferencesAreDisabled : SdkTest + { + public GivenTransitiveFrameworkReferencesAreDisabled(ITestOutputHelper log) : base(log) + { + } + + [Theory] + [InlineData(false)] + [InlineData(true)] + public void TargetingPacksAreNotDownloadedIfNotDirectlyReferenced(bool referenceAspNet) + { + TestPackagesNotDownloaded(referenceAspNet, selfContained: false); + } + + [Fact] + public void RuntimePacksAreNotDownloadedIfNotDirectlyReferenced() + { + TestPackagesNotDownloaded(referenceAspNet: false, selfContained: true); + } + + void TestPackagesNotDownloaded(bool referenceAspNet, bool selfContained, [CallerMemberName] string testName = null) + { + string nugetPackagesFolder = _testAssetsManager.CreateTestDirectory(testName, identifier: "packages_" + referenceAspNet).Path; + + var testProject = new TestProject(testName) + { + TargetFrameworks = ToolsetInfo.CurrentTargetFramework, + IsExe = true, + }; + + if (selfContained) + { + testProject.RuntimeIdentifier = EnvironmentInfo.GetCompatibleRid(); + testProject.AdditionalProperties["SelfContained"] = "true"; + } + else + { + // Don't use AppHost in order to avoid additional download to packages folder + testProject.AdditionalProperties["UseAppHost"] = "False"; + } + + if (referenceAspNet) + { + testProject.FrameworkReferences.Add("Microsoft.AspNetCore.App"); + } + + testProject.AdditionalProperties["DisableTransitiveFrameworkReferenceDownloads"] = "True"; + testProject.AdditionalProperties["RestorePackagesPath"] = nugetPackagesFolder; + + // Set packs folder to nonexistant folder so the project won't use installed targeting or runtime packs + testProject.AdditionalProperties["NetCoreTargetingPackRoot"] = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); + + var testAsset = _testAssetsManager.CreateTestProject(testProject, testName, identifier: referenceAspNet.ToString()); + + var buildCommand = new BuildCommand(testAsset); + + buildCommand.Execute() + .Should() + .Pass(); + + var expectedPackages = new List() + { + "microsoft.netcore.app.ref" + }; + + if (selfContained) + { + expectedPackages.Add("microsoft.netcore.app.runtime.**RID**"); + expectedPackages.Add("microsoft.netcore.app.host.**RID**"); + } + + if (referenceAspNet) + { + expectedPackages.Add("microsoft.aspnetcore.app.ref"); + } + + Directory.EnumerateDirectories(nugetPackagesFolder) + .Select(Path.GetFileName) + .Select(package => + { + if (package.Contains(".runtime.") || (package.Contains(".host."))) + { + // Replace RuntimeIdentifier, which should be the last dotted segment in the package name, with "**RID**" + package = package.Substring(0, package.LastIndexOf('.') + 1) + "**RID**"; + } + + return package; + }) + .Should().BeEquivalentTo(expectedPackages); + } + + [Fact] + public void TransitiveFrameworkReferenceGeneratesError() + { + string nugetPackagesFolder = _testAssetsManager.CreateTestDirectory(identifier: "packages").Path; + + var referencedProject = new TestProject() + { + Name = "ReferencedProject", + TargetFrameworks = ToolsetInfo.CurrentTargetFramework, + }; + + referencedProject.FrameworkReferences.Add("Microsoft.AspNetCore.App"); + + var testProject = new TestProject() + { + TargetFrameworks = ToolsetInfo.CurrentTargetFramework, + IsExe = true, + }; + + // Don't use AppHost in order to avoid additional download to packages folder + testProject.AdditionalProperties["UseAppHost"] = "False"; + + testProject.AdditionalProperties["DisableTransitiveFrameworkReferenceDownloads"] = "True"; + testProject.AdditionalProperties["RestorePackagesPath"] = nugetPackagesFolder; + + // Set packs folder to nonexistant folder so the project won't use installed targeting or runtime packs + testProject.AdditionalProperties["NetCoreTargetingPackRoot"] = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); + + testProject.ReferencedProjects.Add(referencedProject); + + var testAsset = _testAssetsManager.CreateTestProject(testProject); + + var buildCommand = new BuildCommand(testAsset); + + buildCommand + .Execute() + .Should() + .Fail() + .And.HaveStdOutContaining("NETSDK1183:"); + } + + [Fact] + public void TransitiveFrameworkReferenceGeneratesRuntimePackError() + { + string nugetPackagesFolder = _testAssetsManager.CreateTestDirectory(identifier: "packages").Path; + + var referencedProject = new TestProject() + { + Name = "ReferencedProject", + TargetFrameworks = ToolsetInfo.CurrentTargetFramework, + }; + + referencedProject.FrameworkReferences.Add("Microsoft.AspNetCore.App"); + + var testProject = new TestProject() + { + TargetFrameworks = ToolsetInfo.CurrentTargetFramework, + IsExe = true, + }; + + testProject.RuntimeIdentifier = EnvironmentInfo.GetCompatibleRid(); + testProject.AdditionalProperties["SelfContained"] = "true"; + + testProject.AdditionalProperties["DisableTransitiveFrameworkReferenceDownloads"] = "True"; + testProject.AdditionalProperties["RestorePackagesPath"] = nugetPackagesFolder; + + testProject.ReferencedProjects.Add(referencedProject); + + var testAsset = _testAssetsManager.CreateTestProject(testProject); + + var buildCommand = new BuildCommand(testAsset); + + buildCommand + .Execute() + .Should() + .Fail() + .And.HaveStdOutContaining("NETSDK1184:"); + } + + } +} From 79bc7751c65d5e0aee3eb791a25f85c175f6f8b1 Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Wed, 11 May 2022 11:11:21 -0300 Subject: [PATCH 3/8] Add specific error message for unknown Maui Essentials framework --- src/Tasks/Common/Resources/Strings.resx | 4 ++++ src/Tasks/Common/Resources/xlf/Strings.cs.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.de.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.es.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.fr.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.it.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.ja.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.ko.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.pl.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.ru.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.tr.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf | 5 +++++ src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf | 5 +++++ .../ResolveTargetingPackAssets.cs | 10 +++++++++- 15 files changed, 78 insertions(+), 1 deletion(-) diff --git a/src/Tasks/Common/Resources/Strings.resx b/src/Tasks/Common/Resources/Strings.resx index 676d18c24c9e..598daa0f2df1 100644 --- a/src/Tasks/Common/Resources/Strings.resx +++ b/src/Tasks/Common/Resources/Strings.resx @@ -840,4 +840,8 @@ You may need to build the project on another operating system or architecture, o NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + diff --git a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf index 4e82101ae7f6..af07d4946e2f 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: Odkaz FrameworkReference {0} se nerozpoznal. {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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: Sadu Microsoft.NET.Sdk.WindowsDesktop SDK už není nutné používat. Zvažte možnost změnit atribut SDK kořenového elementu Project na Microsoft.NET.Sdk. diff --git a/src/Tasks/Common/Resources/xlf/Strings.de.xlf b/src/Tasks/Common/Resources/xlf/Strings.de.xlf index e46e2b380a78..66463e7c10a3 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.de.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.de.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: Die FrameworkReference "{0}" wurde nicht erkannt. {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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: Es ist nicht länger erforderlich, das Microsoft.NET.Sdk.WindowsDesktop SDK zu verwenden. Erwägen Sie eine Änderung des Sdk-Attributs für das root-Projektelement in "Microsoft.NET.Sdk". diff --git a/src/Tasks/Common/Resources/xlf/Strings.es.xlf b/src/Tasks/Common/Resources/xlf/Strings.es.xlf index 58cc3453ca52..4861b7325927 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.es.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.es.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: No se reconoció el valor de FrameworkReference "{0}" {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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: Ya no es necesario usar el SDK de Microsoft.NET.Sdk.WindowsDesktop. Puede cambiar el atributo Sdk del elemento del proyecto raíz a "Microsoft.NET.Sdk". diff --git a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf index 1e79bbd14d05..883767dbef09 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: le FrameworkReference '{0}' n'a pas été reconnu {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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: il n'est plus nécessaire d'utiliser le kit SDK Microsoft.NET.Sdk.WindowsDesktop. Remplacez l'attribut Sdk de l'élément racine Project par 'Microsoft.NET.Sdk'. diff --git a/src/Tasks/Common/Resources/xlf/Strings.it.xlf b/src/Tasks/Common/Resources/xlf/Strings.it.xlf index b032185775a0..cfc8c4a9aeaa 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.it.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.it.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: l'elemento FrameworkReference '{0}' non è stato riconosciuto {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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: non è più necessario usare Microsoft.NET.Sdk.WindowsDesktop SDK. Provare a modificare l'attributo Sdk dell'elemento Project radice in 'Microsoft.NET.Sdk'. diff --git a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf index 892ebb32695a..95a9d6fe9456 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: FrameworkReference '{0}' は認識されませんでした {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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' に変更することをご検討ください。 diff --git a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf index 06e8a61fd7d6..5f2c81d7e403 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: FrameworkReference '{0}'을(를) 인식할 수 없습니다. {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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'로 변경하세요. diff --git a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf index bd14decddfd5..ce263d1dfcc3 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: Nie rozpoznano elementu FrameworkReference „{0}” {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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: Nie trzeba już używać zestawu SDK Microsoft.NET.Sdk.WindowsDesktop. Rozważ zmianę atrybutu Sdk głównego elementu Project na „Microsoft.NET.Sdk”. diff --git a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf index 139cbb2cb28e..679234ba4fb8 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: o FrameworkReference '{0}' não foi reconhecido {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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: não é mais necessário usar o SDK do Microsoft.NET.Sdk.WindowsDesktop. Considere alterar o atributo SDK do elemento de Projeto raiz para 'Microsoft.NET.Sdk'. diff --git a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf index ddee45c7e4aa..4414141c14e6 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: элемент FrameworkReference "{0}" не распознан {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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: больше не нужно использовать пакет SDK Microsoft.NET.Sdk.WindowsDesktop. Попробуйте изменить атрибут пакета SDK корневого элемента проекта на "Microsoft.NET.Sdk". diff --git a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf index cf87f290101a..736217792755 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: FrameworkReference '{0}' tanınmadı {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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: Artık Microsoft.NET.Sdk.WindowsDesktop SDK'sinin kullanılması gerekmiyor. Kök proje öğesinin Sdk özniteliğini 'Microsoft.NET.Sdk' olarak değiştirmeyi düşünün. diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf index 4bba3bc98d2e..f667bf7335c9 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: 未识别 FrameworkReference“{0}” {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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"。 diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf index fcd2170733f3..99a66053d723 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf @@ -820,6 +820,11 @@ The following are names of parameters or literal values and should not be transl NETSDK1073: 無法辨識 FrameworkReference '{0}' {StrBegin="NETSDK1073: "} + + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + {StrBegin="NETSDK1185: "} + 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。請考慮將根 Project 元素的 SDK 屬性變更為 'Microsoft.NET.Sdk'。 diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs index cc713d44a869..62378e641719 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs @@ -138,7 +138,15 @@ private static ResolvedAssetsCacheEntry Resolve(StronglyTypedInputs inputs, IBui { if (!foundTargetingPack) { - errors.Add(string.Format(Strings.UnknownFrameworkReference, frameworkReference.Name)); + if (frameworkReference.Name.Equals("Microsoft.Maui.Essentials", StringComparison.OrdinalIgnoreCase)) + { + errors.Add(Strings.UnknownFrameworkReference_MauiEssentials); + } + else + { + errors.Add(string.Format(Strings.UnknownFrameworkReference, frameworkReference.Name)); + } + } else { From 8aa43a481efd5e372d8dd5975aee74aadf0613f9 Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Wed, 11 May 2022 11:57:35 -0300 Subject: [PATCH 4/8] Enable targeting Windows on non-Windows OS's with EnableWindowsTargeting property --- src/Tasks/Common/Resources/Strings.resx | 2 +- src/Tasks/Common/Resources/xlf/Strings.cs.xlf | 4 +- src/Tasks/Common/Resources/xlf/Strings.de.xlf | 4 +- src/Tasks/Common/Resources/xlf/Strings.es.xlf | 4 +- src/Tasks/Common/Resources/xlf/Strings.fr.xlf | 4 +- src/Tasks/Common/Resources/xlf/Strings.it.xlf | 4 +- src/Tasks/Common/Resources/xlf/Strings.ja.xlf | 4 +- src/Tasks/Common/Resources/xlf/Strings.ko.xlf | 4 +- src/Tasks/Common/Resources/xlf/Strings.pl.xlf | 4 +- .../Common/Resources/xlf/Strings.pt-BR.xlf | 4 +- src/Tasks/Common/Resources/xlf/Strings.ru.xlf | 4 +- src/Tasks/Common/Resources/xlf/Strings.tr.xlf | 4 +- .../Common/Resources/xlf/Strings.zh-Hans.xlf | 4 +- .../Common/Resources/xlf/Strings.zh-Hant.xlf | 4 +- .../ProcessFrameworkReferences.cs | 5 ++- ...T.Sdk.FrameworkReferenceResolution.targets | 1 + ...venWeWantToRequireWindowsForDesktopApps.cs | 38 +++++++++++++++++++ 17 files changed, 70 insertions(+), 28 deletions(-) diff --git a/src/Tasks/Common/Resources/Strings.resx b/src/Tasks/Common/Resources/Strings.resx index 598daa0f2df1..e47fcecb3c78 100644 --- a/src/Tasks/Common/Resources/Strings.resx +++ b/src/Tasks/Common/Resources/Strings.resx @@ -503,7 +503,7 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1099: "} - NETSDK1100: Windows is required to build Windows desktop applications. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf index af07d4946e2f..0efb5a3083e2 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: K sestavování desktopových aplikací pro Windows se vyžaduje systém Windows. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: K sestavování desktopových aplikací pro Windows se vyžaduje systém Windows. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.de.xlf b/src/Tasks/Common/Resources/xlf/Strings.de.xlf index 66463e7c10a3..5dadc712afbd 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.de.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.de.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: Windows ist zum Erstellen von Windows-Desktopanwendungen erforderlich. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: Windows ist zum Erstellen von Windows-Desktopanwendungen erforderlich. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.es.xlf b/src/Tasks/Common/Resources/xlf/Strings.es.xlf index 4861b7325927..56f6eb272240 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.es.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.es.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: Se requiere Windows para compilar las aplicaciones de escritorio de Windows. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: Se requiere Windows para compilar las aplicaciones de escritorio de Windows. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf index 883767dbef09..76010d1fd47f 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: vous devez disposer de Windows pour générer des applications de bureau Windows. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: vous devez disposer de Windows pour générer des applications de bureau Windows. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.it.xlf b/src/Tasks/Common/Resources/xlf/Strings.it.xlf index cfc8c4a9aeaa..bbfa5af36ec4 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.it.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.it.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: per compilare applicazioni desktop di Windows è richiesto Windows. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: per compilare applicazioni desktop di Windows è richiesto Windows. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf index 95a9d6fe9456..6c8388cd4d7f 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: Windows デスクトップ アプリケーションを構築するには Windows が必要です。 + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: Windows デスクトップ アプリケーションを構築するには Windows が必要です。 {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf index 5f2c81d7e403..3567712791da 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: Windows 데스크톱 애플리케이션을 빌드하려면 Windows가 필요합니다. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: Windows 데스크톱 애플리케이션을 빌드하려면 Windows가 필요합니다. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf index ce263d1dfcc3..845cd22f657b 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: Do tworzenia aplikacji klasycznych systemu Windows wymagany jest system Windows. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: Do tworzenia aplikacji klasycznych systemu Windows wymagany jest system Windows. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf index 679234ba4fb8..92cbd7fa0ad3 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: o Windows é necessário para compilar aplicativos da área de trabalho do Windows. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: o Windows é necessário para compilar aplicativos da área de trabalho do Windows. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf index 4414141c14e6..ad9cf9d87446 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: для создания классических приложений Windows требуется ОС Windows. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: для создания классических приложений Windows требуется ОС Windows. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf index 736217792755..f7065e2544ae 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: Windows masaüstü uygulamalarını oluşturmak için Windows gereklidir. + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: Windows masaüstü uygulamalarını oluşturmak için Windows gereklidir. {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf index f667bf7335c9..2cdf292e5d99 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: 需使用 Windows 才能构建 Windows 桌面应用程序。 + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: 需使用 Windows 才能构建 Windows 桌面应用程序。 {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf index 99a66053d723..d9d8475394c8 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf @@ -901,8 +901,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1105: "} - NETSDK1100: Windows is required to build Windows desktop applications. - NETSDK1100: 需要 Windows 才能建置 Windows 桌面應用程式。 + NETSDK1100: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true. + NETSDK1100: 需要 Windows 才能建置 Windows 桌面應用程式。 {StrBegin="NETSDK1100: "} diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs index c80ef36e2033..60f933bd43e2 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs @@ -58,6 +58,8 @@ public class ProcessFrameworkReferences : TaskBase public bool EnableRuntimePackDownload { get; set; } + public bool EnableWindowsTargeting { get; set; } + public bool DisableTransitiveFrameworkReferenceDownloads { get; set; } public ITaskItem[] FrameworkReferences { get; set; } = Array.Empty(); @@ -146,7 +148,8 @@ protected override void ExecuteCore() // Handle Windows-only frameworks on non-Windows platforms if (knownFrameworkReference.IsWindowsOnly && - !RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + !RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && + !EnableWindowsTargeting) { // It is an error to reference the framework from non-Windows if (!windowsOnlyErrorLogged && frameworkReference != null) diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets index 9f850bff4483..5aa600f9bfe6 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets @@ -106,6 +106,7 @@ Copyright (c) .NET Foundation. All rights reserved. TargetLatestRuntimePatchIsDefault="$(_TargetLatestRuntimePatchIsDefault)" EnableTargetingPackDownload="$(EnableTargetingPackDownload)" EnableRuntimePackDownload="$(EnableRuntimePackDownload)" + EnableWindowsTargeting="$(EnableWindowsTargeting)" DisableTransitiveFrameworkReferenceDownloads="$(DisableTransitiveFrameworkReferenceDownloads)" KnownCrossgen2Packs="@(KnownCrossgen2Pack)" NETCoreSdkRuntimeIdentifier="$(NETCoreSdkRuntimeIdentifier)" diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs index 578f91151a66..646c90efce59 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs @@ -97,6 +97,44 @@ public void It_errors_on_nonwindows_with_a_framework_reference(string desktopFra .HaveStdOutContaining(Strings.WindowsDesktopFrameworkRequiresWindows); } + [PlatformSpecificFact(TestPlatforms.Linux | TestPlatforms.OSX | TestPlatforms.FreeBSD)] + public void AppTargetingWindows10CanBuildOnNonWindows() + { + var testProject = new TestProject() + { + TargetFrameworks = ToolsetInfo.CurrentTargetFramework + "-windows10.0.19041.0", + IsWinExe = true + }; + testProject.AdditionalProperties["EnableWindowsTargeting"] = "true"; + + var testAsset = _testAssetsManager.CreateTestProject(testProject); + + new BuildCommand(testAsset) + .Execute() + .Should() + .Pass(); + } + + [PlatformSpecificFact(TestPlatforms.Linux | TestPlatforms.OSX | TestPlatforms.FreeBSD)] + public void WindowsFormsAppCanBuildOnNonWindows() + { + var testDirectory = _testAssetsManager.CreateTestDirectory(); + + new DotnetCommand(Log, "new", "winforms") + .WithWorkingDirectory(testDirectory.Path) + .WithEnvironmentVariable("EnableWindowsTargeting", "true") + .Execute() + .Should() + .Pass(); + + new DotnetBuildCommand(Log) + .WithWorkingDirectory(testDirectory.Path) + .WithEnvironmentVariable("EnableWindowsTargeting", "true") + .Execute() + .Should() + .Pass(); + } + [WindowsOnlyRequiresMSBuildVersionFact("16.8.0")] public void It_builds_on_windows_with_the_windows_desktop_sdk_5_0_with_ProjectSdk_set() { From 28703aa3166d2145392dc8136b47d434f5a0a045 Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Wed, 11 May 2022 14:46:25 -0300 Subject: [PATCH 5/8] Use test asset for Windows forms app instead of creating from template --- .../WindowsFormsTestApp/Form1.Designer.cs | 38 +++++++++++++++++++ .../TestProjects/WindowsFormsTestApp/Form1.cs | 9 +++++ .../WindowsFormsTestApp/Program.cs | 16 ++++++++ .../WindowsFormsTestApp.csproj | 11 ++++++ ...venWeWantToRequireWindowsForDesktopApps.cs | 13 ++----- 5 files changed, 77 insertions(+), 10 deletions(-) create mode 100644 src/Assets/TestProjects/WindowsFormsTestApp/Form1.Designer.cs create mode 100644 src/Assets/TestProjects/WindowsFormsTestApp/Form1.cs create mode 100644 src/Assets/TestProjects/WindowsFormsTestApp/Program.cs create mode 100644 src/Assets/TestProjects/WindowsFormsTestApp/WindowsFormsTestApp.csproj diff --git a/src/Assets/TestProjects/WindowsFormsTestApp/Form1.Designer.cs b/src/Assets/TestProjects/WindowsFormsTestApp/Form1.Designer.cs new file mode 100644 index 000000000000..4f23fa8404cd --- /dev/null +++ b/src/Assets/TestProjects/WindowsFormsTestApp/Form1.Designer.cs @@ -0,0 +1,38 @@ +namespace WindowsFormsTestApp; + +partial class Form1 +{ + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion +} diff --git a/src/Assets/TestProjects/WindowsFormsTestApp/Form1.cs b/src/Assets/TestProjects/WindowsFormsTestApp/Form1.cs new file mode 100644 index 000000000000..10d79029ddf5 --- /dev/null +++ b/src/Assets/TestProjects/WindowsFormsTestApp/Form1.cs @@ -0,0 +1,9 @@ +namespace WindowsFormsTestApp; + +public partial class Form1 : Form +{ + public Form1() + { + InitializeComponent(); + } +} diff --git a/src/Assets/TestProjects/WindowsFormsTestApp/Program.cs b/src/Assets/TestProjects/WindowsFormsTestApp/Program.cs new file mode 100644 index 000000000000..d8195e1894d2 --- /dev/null +++ b/src/Assets/TestProjects/WindowsFormsTestApp/Program.cs @@ -0,0 +1,16 @@ +namespace WindowsFormsTestApp; + +static class Program +{ + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } +} \ No newline at end of file diff --git a/src/Assets/TestProjects/WindowsFormsTestApp/WindowsFormsTestApp.csproj b/src/Assets/TestProjects/WindowsFormsTestApp/WindowsFormsTestApp.csproj new file mode 100644 index 000000000000..b57c89e69472 --- /dev/null +++ b/src/Assets/TestProjects/WindowsFormsTestApp/WindowsFormsTestApp.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net6.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs index 646c90efce59..18856acea483 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs @@ -118,17 +118,10 @@ public void AppTargetingWindows10CanBuildOnNonWindows() [PlatformSpecificFact(TestPlatforms.Linux | TestPlatforms.OSX | TestPlatforms.FreeBSD)] public void WindowsFormsAppCanBuildOnNonWindows() { - var testDirectory = _testAssetsManager.CreateTestDirectory(); + var testInstance = _testAssetsManager.CopyTestAsset("WindowsFormsTestApp") + .WithSource(); - new DotnetCommand(Log, "new", "winforms") - .WithWorkingDirectory(testDirectory.Path) - .WithEnvironmentVariable("EnableWindowsTargeting", "true") - .Execute() - .Should() - .Pass(); - - new DotnetBuildCommand(Log) - .WithWorkingDirectory(testDirectory.Path) + new BuildCommand(Log, testInstance.Path) .WithEnvironmentVariable("EnableWindowsTargeting", "true") .Execute() .Should() From a9eed49cdcf616b6b2694d14fc381764c4adc419 Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Thu, 12 May 2022 16:49:02 -0300 Subject: [PATCH 6/8] Support RID-specific "always copy local" runtime packs --- .../Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs index 60f933bd43e2..7540abfa6088 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs @@ -305,7 +305,7 @@ var runtimeRequiredByDeployment } } - ProcessRuntimeIdentifier(hasRuntimePackAlwaysCopyLocal ? "any" : RuntimeIdentifier, runtimePackForRuntimeIDProcessing, runtimePackVersion, additionalFrameworkReferencesForRuntimePack, + ProcessRuntimeIdentifier(string.IsNullOrEmpty(RuntimeIdentifier) ? "any" : RuntimeIdentifier, runtimePackForRuntimeIDProcessing, runtimePackVersion, additionalFrameworkReferencesForRuntimePack, unrecognizedRuntimeIdentifiers, unavailableRuntimePacks, runtimePacks, packagesToDownload, isTrimmable, EnableRuntimePackDownload && useRuntimePackAndDownloadIfNecessary, wasReferencedDirectly: frameworkReference != null); From c791c23cae792c38e169f016c01e33882afaa75a Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Tue, 17 May 2022 11:14:13 -0300 Subject: [PATCH 7/8] Remove duplicate spaces --- src/Tasks/Common/Resources/Strings.resx | 6 +++--- src/Tasks/Common/Resources/xlf/Strings.cs.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.de.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.es.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.fr.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.it.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.ja.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.ko.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.pl.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.ru.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.tr.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf | 12 ++++++------ src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf | 12 ++++++------ 14 files changed, 81 insertions(+), 81 deletions(-) diff --git a/src/Tasks/Common/Resources/Strings.resx b/src/Tasks/Common/Resources/Strings.resx index e47fcecb3c78..a28d5bc195d5 100644 --- a/src/Tasks/Common/Resources/Strings.resx +++ b/src/Tasks/Common/Resources/Strings.resx @@ -833,15 +833,15 @@ You may need to build the project on another operating system or architecture, o {StrBegin="NETSDK1182: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf index 0efb5a3083e2..fae69689b743 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.de.xlf b/src/Tasks/Common/Resources/xlf/Strings.de.xlf index 5dadc712afbd..bb1960c8d961 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.de.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.de.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.es.xlf b/src/Tasks/Common/Resources/xlf/Strings.es.xlf index 56f6eb272240..b9405f8fc60b 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.es.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.es.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf index 76010d1fd47f..2efe1de3a082 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.it.xlf b/src/Tasks/Common/Resources/xlf/Strings.it.xlf index bbfa5af36ec4..65942f56ed02 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.it.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.it.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf index 6c8388cd4d7f..62b0762bfc95 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf index 3567712791da..1172ddbf370b 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf index 845cd22f657b..cea4094648e7 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf index 92cbd7fa0ad3..c109bf2b1358 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf index ad9cf9d87446..9812bc00c6bf 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf index f7065e2544ae..636eefb7d035 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf index 2cdf292e5d99..282af176552f 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf index d9d8475394c8..3b7fa2eef818 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf @@ -741,8 +741,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1112: "} - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1184: The Runtime Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1184: "} @@ -781,8 +781,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1127: "} - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. - NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. + NETSDK1183: The Targeting Pack for FrameworkReference '{0}' was not available. This may be because DisableTransitiveFrameworkReferenceDownloads was set to true. {StrBegin="NETSDK1183: "} @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). {StrBegin="NETSDK1185: "} From 2f846995262653cb8acdc64165bcab8ddee4ef09 Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Tue, 17 May 2022 14:56:44 -0300 Subject: [PATCH 8/8] Apply code review feedback --- src/Tasks/Common/Resources/Strings.resx | 2 +- src/Tasks/Common/Resources/xlf/Strings.cs.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.de.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.es.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.fr.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.it.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.ja.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.ko.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.pl.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.ru.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.tr.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf | 4 ++-- src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf | 4 ++-- 14 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/Tasks/Common/Resources/Strings.resx b/src/Tasks/Common/Resources/Strings.resx index a28d5bc195d5..b2f6987d727d 100644 --- a/src/Tasks/Common/Resources/Strings.resx +++ b/src/Tasks/Common/Resources/Strings.resx @@ -841,7 +841,7 @@ You may need to build the project on another operating system or architecture, o {StrBegin="NETSDK1184: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf index fae69689b743..21e8b22f5a39 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.de.xlf b/src/Tasks/Common/Resources/xlf/Strings.de.xlf index bb1960c8d961..4d6a4db1023e 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.de.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.de.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.es.xlf b/src/Tasks/Common/Resources/xlf/Strings.es.xlf index b9405f8fc60b..ffc3a9377883 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.es.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.es.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf index 2efe1de3a082..149b386c29be 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.it.xlf b/src/Tasks/Common/Resources/xlf/Strings.it.xlf index 65942f56ed02..c133bd329a60 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.it.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.it.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf index 62b0762bfc95..9ff7f24d6e3b 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf index 1172ddbf370b..cae967bdd22e 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf index cea4094648e7..5966845e30f1 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf index c109bf2b1358..b7fc2b521fb5 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf index 9812bc00c6bf..4db6400e8a24 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf index 636eefb7d035..3f51234adf7c 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf index 282af176552f..c64132e5830a 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "} diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf index 3b7fa2eef818..4e7c8e7eb282 100644 --- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf +++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf @@ -821,8 +821,8 @@ The following are names of parameters or literal values and should not be transl {StrBegin="NETSDK1073: "} - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). - NETSDK1185: This project depends on Maui Essentials through a project or NuGet package reference. To build this project, you must set the UseMauiEssentials property to true (and install the Maui workload if necessary). + NETSDK1185: 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). + NETSDK1185: 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="NETSDK1185: "}