Skip to content

Commit 4660c5c

Browse files
authored
Add warning about version/distro-specific RID assets in .NET 8+ (#32970)
1 parent 1827b75 commit 4660c5c

19 files changed

+645
-405
lines changed

src/Tasks/Common/Resources/Strings.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,4 +924,8 @@ You may need to build the project on another operating system or architecture, o
924924
<value>NETSDK1204: Ahead-of-time compilation is not supported on the current platform '{0}'.</value>
925925
<comment>{StrBegin="NETSDK1204: "}</comment>
926926
</data>
927+
<data name="NonPortableRuntimeIdentifierDetected" xml:space="preserve">
928+
<value>NETSDK1205: Found version-specific or distribution-specific runtime identifier(s): {0}. Affected libraries: {1}. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.</value>
929+
<comment>{StrBegin="NETSDK1205: "}</comment>
930+
</data>
927931
</root>

src/Tasks/Common/Resources/xlf/Strings.cs.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,11 @@ The following are names of parameters or literal values and should not be transl
675675
<target state="translated">NETSDK1121: Projekty C++/CLI cílené na rozhraní .NET Core nemůžou používat SelfContained=true.</target>
676676
<note>{StrBegin="NETSDK1121: "}</note>
677677
</trans-unit>
678+
<trans-unit id="NonPortableRuntimeIdentifierDetected">
679+
<source>NETSDK1205: Found version-specific or distribution-specific runtime identifier(s): {0}. Affected libraries: {1}. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.</source>
680+
<target state="new">NETSDK1205: Found version-specific or distribution-specific runtime identifier(s): {0}. Affected libraries: {1}. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.</target>
681+
<note>{StrBegin="NETSDK1205: "}</note>
682+
</trans-unit>
678683
<trans-unit id="NonSelfContainedExeCannotReferenceSelfContained">
679684
<source>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</source>
680685
<target state="translated">NETSDK1151: odkazovaný projekt {0} je samostatně obsažený spustitelný soubor. Na samostatně obsažený spustitelný soubor se nedá odkazovat pomocí spustitelného souboru, který není samostatně obsažený. Další informace najdete na https://aka.ms/netsdk1151</target>

src/Tasks/Common/Resources/xlf/Strings.de.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,11 @@ The following are names of parameters or literal values and should not be transl
675675
<target state="translated">NETSDK1121: C++-/CLI-Projekte für .NET Core können "SelfContained=true" nicht verwenden.</target>
676676
<note>{StrBegin="NETSDK1121: "}</note>
677677
</trans-unit>
678+
<trans-unit id="NonPortableRuntimeIdentifierDetected">
679+
<source>NETSDK1205: Found version-specific or distribution-specific runtime identifier(s): {0}. Affected libraries: {1}. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.</source>
680+
<target state="new">NETSDK1205: Found version-specific or distribution-specific runtime identifier(s): {0}. Affected libraries: {1}. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.</target>
681+
<note>{StrBegin="NETSDK1205: "}</note>
682+
</trans-unit>
678683
<trans-unit id="NonSelfContainedExeCannotReferenceSelfContained">
679684
<source>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</source>
680685
<target state="translated">NETSDK1151: Das referenzierte Projekt „{0}“ ist eine eigenständige ausführbare Datei. Auf eine eigenständige ausführbare Datei kann nicht von einer nicht eigenständigen ausführbaren Datei verwiesen werden. Weitere Informationen finden Sie unter https://aka.ms/netsdk1151.</target>

src/Tasks/Common/Resources/xlf/Strings.es.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,11 @@ The following are names of parameters or literal values and should not be transl
675675
<target state="translated">NETSDK1121: Los proyectos de C++/CLI destinados a .NET Core no pueden usar SelfContained=true.</target>
676676
<note>{StrBegin="NETSDK1121: "}</note>
677677
</trans-unit>
678+
<trans-unit id="NonPortableRuntimeIdentifierDetected">
679+
<source>NETSDK1205: Found version-specific or distribution-specific runtime identifier(s): {0}. Affected libraries: {1}. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.</source>
680+
<target state="new">NETSDK1205: Found version-specific or distribution-specific runtime identifier(s): {0}. Affected libraries: {1}. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.</target>
681+
<note>{StrBegin="NETSDK1205: "}</note>
682+
</trans-unit>
678683
<trans-unit id="NonSelfContainedExeCannotReferenceSelfContained">
679684
<source>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</source>
680685
<target state="translated">NETSDK1151: El proyecto al que se hace referencia '{0}' es un ejecutable independiente. Un ejecutable independiente no puede hacer referencia a un no ejecutable independiente. Para obtener más información, consulte https://aka.ms/netsdk1151</target>

src/Tasks/Common/Resources/xlf/Strings.fr.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,11 @@ The following are names of parameters or literal values and should not be transl
675675
<target state="translated">NETSDK1121: les projets C++/CLI qui ciblent le .NET Core ne peuvent pas utiliser SelfContained=true.</target>
676676
<note>{StrBegin="NETSDK1121: "}</note>
677677
</trans-unit>
678+
<trans-unit id="NonPortableRuntimeIdentifierDetected">
679+
<source>NETSDK1205: Found version-specific or distribution-specific runtime identifier(s): {0}. Affected libraries: {1}. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.</source>
680+
<target state="new">NETSDK1205: Found version-specific or distribution-specific runtime identifier(s): {0}. Affected libraries: {1}. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.</target>
681+
<note>{StrBegin="NETSDK1205: "}</note>
682+
</trans-unit>
678683
<trans-unit id="NonSelfContainedExeCannotReferenceSelfContained">
679684
<source>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</source>
680685
<target state="translated">NETSDK1151: le projet référencé « {0} » est un exécutable autonome. Un exécutable autonome ne peut pas être référencé par un exécutable non autonome. Pour plus d’informations, voir https://aka.ms/netsdk1151</target>

0 commit comments

Comments
 (0)