2
0
Files
maui-linux-samples/WebViewDemo/WebViewDemo.csproj

57 lines
2.1 KiB
XML
Raw Normal View History

2026-01-11 10:37:01 -05:00
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
2026-01-11 12:33:48 -05:00
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2026-01-17 05:42:44 +00:00
<!-- Application Info -->
<ApplicationTitle>OpenMaui WebView Demo</ApplicationTitle>
<ApplicationId>com.openmaui.webviewdemo</ApplicationId>
<ApplicationVersion>1.0.0</ApplicationVersion>
2026-01-17 07:52:05 +00:00
<!-- MAUI Settings (conditional based on platform) -->
2026-01-17 05:42:44 +00:00
<SingleProject>true</SingleProject>
<EnableDefaultXamlItems>true</EnableDefaultXamlItems>
2026-01-17 07:52:05 +00:00
</PropertyGroup>
2026-01-17 05:42:44 +00:00
2026-01-17 07:52:05 +00:00
<!-- Non-Linux platforms: Use official MAUI workload -->
<PropertyGroup Condition="!$([MSBuild]::IsOSPlatform('Linux'))">
<UseMaui>true</UseMaui>
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst;net9.0-windows10.0.19041.0</TargetFrameworks>
</PropertyGroup>
<!-- Linux: Use OpenMaui -->
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">
2026-01-17 05:42:44 +00:00
<RuntimeIdentifiers>linux-x64;linux-arm64</RuntimeIdentifiers>
2026-01-11 10:37:01 -05:00
</PropertyGroup>
2026-01-24 08:00:33 +00:00
<!-- OpenMaui Linux Platform - Local development (ProjectReference) -->
<ItemGroup Condition="$([MSBuild]::IsOSPlatform('Linux')) AND Exists('../../maui-linux/OpenMaui.Controls.Linux.csproj') AND '$(UsePackageReference)' != 'true'">
2026-01-11 12:33:48 -05:00
<ProjectReference Include="../../maui-linux/OpenMaui.Controls.Linux.csproj" />
2026-01-11 10:37:01 -05:00
</ItemGroup>
2026-01-24 08:00:33 +00:00
<!-- OpenMaui Linux Platform - CI/CD builds (PackageReference) -->
<ItemGroup Condition="$([MSBuild]::IsOSPlatform('Linux')) AND (!Exists('../../maui-linux/OpenMaui.Controls.Linux.csproj') OR '$(UsePackageReference)' == 'true')">
<PackageReference Include="OpenMaui.Controls.Linux" Version="*" />
</ItemGroup>
2026-01-17 05:42:44 +00:00
<!-- XAML Files -->
<ItemGroup>
<MauiXaml Update="**/*.xaml" />
</ItemGroup>
2026-01-24 04:04:42 +00:00
<!-- App Icon -->
<ItemGroup>
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#FFFFFF" BackgroundColor="#1D5DB3" />
</ItemGroup>
2026-01-17 07:52:05 +00:00
<!-- Images -->
2026-01-11 13:34:36 -05:00
<ItemGroup>
2026-01-17 07:52:05 +00:00
<MauiImage Include="Resources\Images\*.svg" />
2026-01-11 13:34:36 -05:00
</ItemGroup>
2026-01-11 10:37:01 -05:00
</Project>