16 строки
681 B
Markdown
16 строки
681 B
Markdown
|
---
|
||
|
ms.topic: include
|
||
|
ms.date: 11/22/2023
|
||
|
---
|
||
|
|
||
|
> [!NOTE]
|
||
|
> Rather than set individual files to the **Content** build action, the contents of a specific folder can be set to this build action by adding the following XML to your app's project (.csproj) file:
|
||
|
>
|
||
|
>```xml
|
||
|
><ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
|
||
|
> <Content Include="Platforms\Windows\Assets\Images\**" TargetPath="%(RecursiveDir)%(Filename)%(Extension)" />
|
||
|
></ItemGroup>
|
||
|
>```
|
||
|
>
|
||
|
> This example sets any content in the *Platforms\Windows\Assets\Images* folder, including content in sub-folders, to the **Content** build action. It also sets the output path for each file with this build action.
|