Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .NET MAUI / WinUI 3 #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 21 additions & 9 deletions HybridWebView/HybridWebView.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<!--Work around so the conditions work below-->
<TargetFrameworks></TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">netstandard1.0;netstandard2.0;Xamarin.iOS10;MonoAndroid81;uap10.0.18362;Xamarin.Mac20</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">netstandard1.0;netstandard2.0;Xamarin.iOS10;MonoAndroid81;uap10.0.18362;net6.0-windows10.0.19041;Xamarin.Mac20</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard1.0;netstandard2.0;Xamarin.iOS10;MonoAndroid81;Xamarin.Mac20</TargetFrameworks>
<!--Feel free to add as many targets as you need below
netstandard1.0;netstandard2.0;MonoAndroid81;Xamarin.iOS10;uap10.0.16299;Xamarin.TVOS10;Xamarin.WatchOS10;Xamarin.Mac20;Tizen40
Expand All @@ -12,7 +12,7 @@
<AssemblyName>Plugin.HybridWebView</AssemblyName>
<RootNamespace>Plugin.HybridWebView</RootNamespace>
<PackageId>Plugin.HybridWebView</PackageId>

<Product>$(AssemblyName) ($(TargetFramework))</Product>
<AssemblyVersion>1.0.0.2</AssemblyVersion>
<AssemblyFileVersion>1.0.0.2</AssemblyFileVersion>
Expand All @@ -22,26 +22,26 @@
<NeutralLanguage>en</NeutralLanguage>
<LangVersion>default</LangVersion>
<DefineConstants>$(DefineConstants);</DefineConstants>

<UseFullSemVerForNuGet>false</UseFullSemVerForNuGet>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>

<LangVersion>latest</LangVersion>
<DebugType>portable</DebugType>

<!--TODO: Fill these in-->
<license>https://github.com/devsmadeofsteel/Plugin.HybridWebView/blob/master/LICENCE.md</license>
<PackageProjectUrl>https://github.com/devsmadeofsteel/Plugin.HybridWebView</PackageProjectUrl>
<RepositoryUrl>https://github.com/devsmadeofsteel/Plugin.HybridWebView</RepositoryUrl>
<PackageReleaseNotes>RELEASE NOTES</PackageReleaseNotes>
<PackageIconUrl>ICON URL</PackageIconUrl>
<PackageTags>xamarin, windows, ios, android, xamarin.forms, plugin, HybridWebView, webview</PackageTags>

<Title>HybridWebView Plugin for Xamarin and Windows</Title>
<Summary>Xamarin Plugin for a HybridWebView</Summary>
<Description>Lightweight cross platform WebView designed to leverage the native WebView components in Android, iOS, and Windows to provide enhanced functionality over the base control.</Description>


<Owners>Vinicius Dutra</Owners>
<Authors>Ryan Dixon, Vinicius Dutra</Authors>
<Copyright>Copyright 2018</Copyright>
Expand Down Expand Up @@ -76,6 +76,18 @@
-->
</ItemGroup>

<PropertyGroup Condition=" $(TargetFramework.Contains('-windows10')) ">
<UseMaui>true</UseMaui>
<ImplicitUsings>enable</ImplicitUsings>

<SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
</PropertyGroup>
<ItemGroup Condition=" $(TargetFramework.Contains('-windows10')) ">
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
<Compile Include="Windows\**\*.cs" />
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('MonoAndroid')) ">
<Compile Include="Droid\**\*.cs" />
</ItemGroup>
Expand Down Expand Up @@ -103,11 +115,11 @@




<ItemGroup Condition=" $(TargetFramework.StartsWith('netcoreapp')) ">
<Compile Include="**\*.netcore.cs" />
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('Tizen')) ">
<Compile Include="**\*.tizen.cs" />
<PackageReference Include="Tizen.NET" Version="4.0.0" />
Expand Down
Loading