Skip to content

Commit b307fcb

Browse files
Merge pull request #3534 from MicrosoftDocs/main638182067946823065sync_temp
For protected CLA branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents c32760d + 86a029a commit b307fcb

File tree

6 files changed

+32
-32
lines changed

6 files changed

+32
-32
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Rename Notification
2-
This repo has recently been renamed from "windows-uwp" to "windows-dev-docs" in order to better represent the content source files contained.
2+
This repo has recently been renamed from "windows-uwp" to "windows-dev-docs" to better represent the content source files contained.
33

44
If you have a copy of the repo on your local machine, you will need to update the associated URL following these steps:
55

66
1. `cd` to your local Git directory for the repo and find the remote name with the command: `git remote -v`
77

8-
You will receive a response like:
8+
You will receive a response like the following example:
99
`origin https://github.com/MicrosoftDocs/windows-uwp.git (fetch)`
1010
`origin https://github.com/MicrosoftDocs/windows-uwp.git (push)`
1111

@@ -14,20 +14,20 @@ You will receive a response like:
1414

1515
*Alternatively, you can just delete your local copy of the repo and reclone it if you don't have any active work on the repo that you are concerned with losing.
1616

17-
Following the rename of this repo, the content team will also be working to rename and restructure the sourcefile directories within the repo to more closely align with the structure of our live documentation. We are aiming to have this work complete by September 16, 2022.
17+
Following the rename of this repo, the content team will also be working on renaming and restructuring the source file directories within the repo to align more closely with the structure of our live documentation. We are aiming to have this work complete by September 16, 2022.
1818

1919
## Legal Notices
2020
Microsoft and any contributors grant you a license to the Microsoft documentation and other content
2121
in this repository under the [Creative Commons Attribution 4.0 International Public License](https://creativecommons.org/licenses/by/4.0/legalcode),
22-
see the [LICENSE](LICENSE) file, and grant you a license to any code in the repository under the [MIT License](https://opensource.org/licenses/MIT), see the
22+
see the [LICENSE](LICENSE) file, and grant you a license to any code in the repository under the [MIT License](https://opensource.org/licenses/MIT). See the
2323
[LICENSE-CODE](LICENSE-CODE) file.
2424

25-
Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation
25+
Microsoft, Windows, Microsoft Azure, and/or other Microsoft products and services referenced in the documentation
2626
may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries.
2727
The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks.
2828
Microsoft's general trademark guidelines can be found at https://go.microsoft.com/fwlink/?LinkID=254653.
2929

3030
Privacy information can be found at https://privacy.microsoft.com/en-us/
3131

3232
Microsoft and any contributors reserve all others rights, whether under their respective copyrights, patents,
33-
or trademarks, whether by implication, estoppel or otherwise.
33+
or trademarks, whether by implication, estoppel, or otherwise.

uwp/app-resources/build-resources-into-app-package.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ keywords: windows 10, uwp, resource, image, asset, MRT, qualifier
99
ms.localizationpriority: medium
1010
---
1111

12-
# Build resources into your app package, instead of into a resource pack
12+
# Build resources into your app package instead of into a resource pack
1313

14-
Some kinds of apps (multilingual dictionaries, translation tools, etc.) need to override the default behavior of an app bundle, and build resources into the app package instead of having them in separate resource packages (or resource packs). This topic explains how to do that.
14+
Some kinds of apps (multilingual dictionaries, translation tools, etc.) need to override the default behavior of an app bundle and build resources into the app package instead of having them in separate resource packages (or resource packs). This topic explains how to do that.
1515

16-
By default when you build an [app bundle (.appxbundle)](/windows/msix/package/packaging-uwp-apps), only your default resources for language, scale, and DirectX feature level are built into the app package. Your translated resources—and your resources tailored for non-default scales and/or DirectX feature levels—are built into resource packages and they are only downloaded onto devices that need them. If a customer is buying your app from the Microsoft Store using a device with a language preference set to Spanish, then only your app plus the Spanish resource package are downloaded and installed. If that same user later changes their language preference to French in **Settings**, then your app's French resource package is downloaded and installed. Similar things happen with your resources qualified for scale and for DirectX feature level. For the majority of apps, this behavior constitutes a valuable efficiency, and it's exactly what you and the customer *want* to happen.
16+
By default, when you build an [app bundle (.appxbundle)](/windows/msix/package/packaging-uwp-apps), only your default resources for language, scale, and DirectX feature level are built into the app package. Your translated resources—and your resources tailored for non-default scales and/or DirectX feature levels—are built into resource packages, and they are only downloaded onto devices that need them. If a customer is buying your app from the Microsoft Store using a device with a language preference set to Spanish, then only your app plus the Spanish resource package are downloaded and installed. If that same user later changes their language preference to French in **Settings**, then your app's French resource package is downloaded and installed. Similar things happen with your resources qualified for scale and for DirectX feature level. For the majority of apps, this behavior constitutes a valuable efficiency, and it's what you and the customer *want* to happen.
1717

1818
But if your app allows the user to change the language on the fly from within the app (instead of via **Settings**), then that default behavior is not appropriate. You actually want all of your language resources to be unconditionally downloaded and installed along with the app one time, and then remain on the device. You want to build all of those resources into your app package instead of into separate resource packages.
1919

2020
**Note** Including resources in an app package essentially increases the size of the app. That's why it's only worth doing if the nature of the app demands it. If not, then you don't need to do anything except build a regular app bundle as usual.
2121

22-
You can configure Visual Studio to build resources into your app package in one of two ways. You can either add a configuration file to your project, or you can edit your project file directly. Use whichever of these options you're most comfortable with, or whichever works best with your build system.
22+
You can configure Visual Studio to build resources into your app package in one of two ways. You can either add a configuration file to your project or you can edit your project file directly. Use whichever of these options you're most comfortable with or whichever works best with your build system.
2323

2424
## Option 1. Use priconfig.packaging.xml to build resources into your app package
2525

@@ -33,7 +33,7 @@ You can configure Visual Studio to build resources into your app package in one
3333
<autoResourcePackage qualifier="DXFeatureLevel" />
3434
</packaging>
3535
```
36-
4. Each `<autoResourcePackage>` element tells Visual Studio to automatically split the resources for the given qualifier name out into separate resource packages. This is called *auto-splitting*. With the file contents you have so far, you haven't actually changed Visual Studio's behavior. In other words, Visual Studio *already behaved as if* this file were present with these contents, because these are the defaults. If you don't want Visual Studio to auto-split on a qualifier name then delete that `<autoResourcePackage>` element from the file. Here's how the file would look if you wanted all of your language resources to be built into the app package instead of being auto-split out into separate resource packages.
36+
4. Each `<autoResourcePackage>` element tells Visual Studio to automatically split the resources for the given qualifier name out into separate resource packages. This is called *auto-splitting*. With the file contents you have so far, you haven't actually changed Visual Studio's behavior. In other words, Visual Studio *already behaved as if* this file were present with these contents because these are the defaults. If you don't want Visual Studio to auto-split on a qualifier name, then delete that `<autoResourcePackage>` element from the file. Here's how the file would look if you wanted all of your language resources to be built into the app package instead of being auto-split out into separate resource packages.
3737
```xml
3838
<packaging>
3939
<autoResourcePackage qualifier="Scale" />
@@ -44,7 +44,7 @@ You can configure Visual Studio to build resources into your app package in one
4444

4545
To confirm that your auto-split choices are being taken into account, look for the file `<ProjectFolder>\obj\<ReleaseConfiguration folder>\split.priconfig.xml` and confirm that its contents match your choices. If they do, then you have successfully configured Visual Studio to build the resources of your choice into the app package.
4646

47-
There is one final step that you need to do. **But only if you deleted the `Language` qualifier name**. You need to specify the union of all of your app's supported language as your app's default for language. For details, see [Specify the default resources that your app uses](specify-default-resources-installed.md). This is what your `priconfig.default.xml` would contain if you were including resources for English, Spanish, and French in your app package.
47+
There is one final step that you need to do. **But only if you deleted the `Language` qualifier name**. You need to specify the union of all of your app's supported languages as your app's default language. For details, see [Specify the default resources that your app uses](specify-default-resources-installed.md). This is what your `priconfig.default.xml` would contain if you were including resources for English, Spanish, and French in your app package.
4848

4949
```xml
5050
<default>
@@ -65,27 +65,27 @@ If you name your file `priconfig.packaging.xml`, then Visual Studio will recogni
6565
<AppxPriConfigXmlPackagingSnippetPath>FILE-PATH-AND-NAME</AppxPriConfigXmlPackagingSnippetPath>
6666
```
6767

68-
Replace `FILE-PATH-AND-NAME` with the path to, and name of, your file.
68+
Replace `FILE-PATH-AND-NAME` with the path to and name of your file.
6969

7070
## Option 2. Use your project file to build resources into your app package
7171

72-
This is an alternative to Option 1. Once you understand how Option 1 works, you can choose to do Option 2 instead, if that suits your development and/or build workflow better.
72+
This is an alternative to Option 1. Once you understand how Option 1 works, you can choose to do Option 2 instead if that suits your development and/or build workflow better.
7373

7474
In your project file, between the opening and closing tags of the first `<PropertyGroup>` element, add this XML.
7575

7676
```xml
7777
<AppxBundleAutoResourcePackageQualifiers>Language|Scale|DXFeatureLevel</AppxBundleAutoResourcePackageQualifiers>
7878
```
7979

80-
Here's how that looks after you've delete the first qualifier name.
80+
Here's how that looks after you've deleted the first qualifier name.
8181

8282
```xml
8383
<AppxBundleAutoResourcePackageQualifiers>Scale|DXFeatureLevel</AppxBundleAutoResourcePackageQualifiers>
8484
```
8585

8686
Save and close, and rebuild your project.
8787

88-
There is one final step that you need to do. **But only if you deleted the `Language` qualifier name**. You need to specify the union of all of your app's supported language as your app's default for language. For details, see [Specify the default resources that your app uses](specify-default-resources-installed.md). This is what your project file would contain if you were including resources for English, Spanish, and French in your app package.
88+
There is one final step that you need to do. **But only if you deleted the `Language` qualifier name**. You need to specify the union of all of your app's supported languages as your app's default language. For details, see [Specify the default resources that your app uses](specify-default-resources-installed.md). This is what your project file would contain if you included resources for English, Spanish, and French in your app package.
8989

9090
```xml
9191
<AppxDefaultResourceQualifiers>Language=en;es;fr</AppxDefaultResourceQualifiers>

uwp/app-resources/compile-resources-manually-with-makepri.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ MakePri.exe is typically used with the `new`, `versioned`, and `resourcepack` op
4141

4242
This warning is displayed when MakePri.exe or MSBuild discovers files or string resources for a given named resource that appear to be marked with language qualifiers, but no candidate is found for a default language. The process for using qualifiers in file and folder names is described in [Tailor your resources for language, scale, and other qualifiers](tailor-resources-lang-scale-contrast.md). A file or folder may have a language name in it, but no resources are discovered that are qualified for the exact default language. For example, if a project uses "en-US" as the default language and has a file named "de/logo.png", but does not have any files that are marked with the default language "en-US", this warning will appear. In order to remove this warning, either file(s) or string resource(s) should be qualified with the default language, or the default language should be changed. To change the default language, with your solution open in Visual Studio, open `Package.appxmanifest`. On the Application tab, confirm that the Default language is set appropriately (for example, "en" or "en-US").
4343

44-
### No default or neutral resource given for '\<resource identifier>'. The application may throw an exception for certain user configurations when retrieving the resources.
44+
### No default or neutral resource is given for '\<resource identifier>'. The application may throw an exception for certain user configurations when retrieving the resources.
4545

46-
This warning is displayed when MakePri.exe or MSBuild discovers files or resources that appear to be marked with language qualifiers for which the resources are unclear. There are qualifiers, but there is no guarantee that a particular resource candidate can be returned for that resource identifier at run time. If no resource candidate for a particular language, homeregion, or other qualifier can be found that is a default or will always match the context of a user, this warning will be displayed. At run time, for particular user configurations such as a user's language preferences or home location (**Settings** > **Time & Language** > **Region & language**), the APIs used to retrieve the resource may throw an unexpected exception. In order to remove this warning, default resources should be provided, such as a resource in the project's default language or global home region (homeregion-001).
46+
This warning is displayed when MakePri.exe or MSBuild discovers files or resources that appear to be marked with language qualifiers for which the resources are unclear. There are qualifiers, but there is no guarantee that a particular resource candidate can be returned for that resource identifier at run time. If no resource candidate for a particular language, home region, or another qualifier can be found that is default or will always match the context of a user, this warning will be displayed. At run time, for particular user configurations such as a user's language preferences or home location (**Settings** > **Time & Language** > **Region & language**), the APIs used to retrieve the resource may throw an unexpected exception. In order to remove this warning, default resources should be provided, such as a resource in the project's default language or global home region (homeregion-001).
4747

4848
## Using MakePri.exe in a build system
4949

@@ -53,7 +53,7 @@ Build systems that require explicit control over source files that get indexed c
5353

5454
Build systems can also use the PRI format-specific indexer to add pre-built PRI files into the PRI for the package from other components, such as class libraries, assemblies, SDKs, and DLLs.
5555

56-
When PRI files are built for other components, class libraries, assemblies, DLLs, and SDKs, the **initialPath** configuration should be used to ensure component resources have their own sub resource maps that don't conflict with the app they're included in.
56+
When PRI files are built for other components, class libraries, assemblies, DLLs, and SDKs, the **initialPath** configuration should be used to ensure component resources have their own sub-resource maps that don't conflict with the app they're included in.
5757

5858
## Related topics
5959
* [MakePri.exe command-line options](makepri-exe-command-options.md)

0 commit comments

Comments
 (0)