Skip to content

Commit

Permalink
Merge pull request #19515 from unoplatform/dev/mazi/winappsdk-default…
Browse files Browse the repository at this point in the history
…items

feat: Recognize `.WinAppSDK.cs` in Uno.SDK
  • Loading branch information
MartinZikmund authored Feb 16, 2025
2 parents a1d0ebc + ffbc863 commit d5e68d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/articles/features/using-the-uno-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,14 @@ Many Uno projects and libraries make use of a `winappsdk-workaround.targets` fil
By Default when using the Uno.Sdk you get the added benefit of default includes for an easier time building Cross Targeted Applications. The supported file extensions are as shown below:

- `*.crossruntime.cs` (WASM, Skia, or Reference)
- `*.wasm.cs`
- `*.skia.cs`
- `*.reference.cs`
- `*.wasm.cs` (WebAssembly)
- `*.skia.cs` (Skia)
- `*.reference.cs` (Reference only)
- `*.iOS.cs`(iOS & MacCatalyst)
- `*.macOS.cs` (MacOS not MacCatalyst)
- `*.iOSmacOS.cs` (iOS, MacCatalyst, & MacOS)
- `*.Android.cs`
- `*.Android.cs` (Android)
- `*.WinAppSDK.cs` (Windows App SDK)

As discussed above setting `EnableDefaultUnoItems` to false will disable these includes.

Expand Down
3 changes: 3 additions & 0 deletions src/Uno.Sdk/targets/Uno.CrossTargeting.targets
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

<None Include="**\*.Android.cs" Exclude="bin\**\*.Android.cs;obj\**\*.Android.cs" Condition="!$(IsAndroid)" />
<Compile Remove="**\*.Android.cs" Condition="!$(IsAndroid)" />

<None Include="**\*.WinAppSDK.cs" Exclude="bin\**\*.WinAppSDK.cs;obj\**\*.WinAppSDK.cs" Condition="!$(IsWinAppSDK)" />
<Compile Remove="**\*.WinAppSDK.cs" Condition="!$(IsWinAppSDK)" />
</ItemGroup>

</Project>

0 comments on commit d5e68d1

Please sign in to comment.