From c85b2ebebe2aa579399fa68f765c6c2b83198acd Mon Sep 17 00:00:00 2001 From: Ron Petrusha Date: Fri, 10 May 2019 11:50:32 -0700 Subject: [PATCH] Revised for .NET Core, .NET Framework, UWP --- .../MissingManifestResourceException.xml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/xml/System.Resources/MissingManifestResourceException.xml b/xml/System.Resources/MissingManifestResourceException.xml index f6ca373358d..31ca5a30c88 100644 --- a/xml/System.Resources/MissingManifestResourceException.xml +++ b/xml/System.Resources/MissingManifestResourceException.xml @@ -49,8 +49,9 @@ ## Remarks -## Desktop Apps - In desktop apps, is thrown when the attempt to retrieve a resource fails because the resource set for the neutral culture could not be loaded from a particular assembly. Although the exception is thrown when you try to retrieve a particular resource, it is caused by the failure to load the resource set rather than the failure to find the resource. +## .NET apps + +In .NET Framework and .NET Core apps, is thrown when the attempt to retrieve a resource fails because the resource set for the neutral culture could not be loaded from a particular assembly. Although the exception is thrown when you try to retrieve a particular resource, it is caused by the failure to load the resource set rather than the failure to find the resource. > [!NOTE] > For additional information, see the "Handling a MissingManifestResourceException Exception" section in the class topic. @@ -77,12 +78,13 @@ > [!NOTE] > We recommend that you include a neutral set of resources in your main assembly, so your app won't fail if a satellite assembly is unavailable. -## [!INCLUDE[win8_appname_long](~/includes/win8-appname-long-md.md)] Apps - Unlike desktop apps, which deploy localized resources in satellite assemblies and typically store the resources of the neutral culture in the main assembly, [!INCLUDE[win8_appname_long](~/includes/win8-appname-long-md.md)] apps deploy resources for multiple cultures, including the neutral culture, in a single package resource index (.pri) file. As a result, in a [!INCLUDE[win8_appname_long](~/includes/win8-appname-long-md.md)] app, if resources for the preferred culture cannot be found, the is thrown under either of the following conditions: +## Universal Windows Platform (UWP) apps + +UWP apps deploy resources for multiple cultures, including the neutral culture, in a single package resource index (.pri) file. As a result, in a UWP app, if resources for the preferred culture cannot be found, the is thrown under either of the following conditions: -- The app does not include a .pri file or the .pri file could not be opened. +- The app does not include a .pri file, or the .pri file could not be opened. -- The app's .pri file does not contain a resource set for the given root name. +- The app's .pri file does not contain a resource set for the given root name. ]]>