Skip to content

Commit cfda0fc

Browse files
authored
Merge pull request #10 from lampo/zd/add-net8
add net8.0 TFM
2 parents 964b179 + 1ab788c commit cfda0fc

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using Microsoft.Maui.Handlers;
2+
using PlatformButtonView = object;
3+
4+
namespace MauiContentButton;
5+
6+
// All the code in this file is included in all platforms.
7+
public partial class ContentButtonHandler : ViewHandler<IContentButton, PlatformButtonView>
8+
{
9+
protected override PlatformButtonView CreatePlatformView() => new();
10+
11+
private static void MapPadding(IContentButtonHandler handler, IContentButton view) { }
12+
13+
private static void MapStrokeThickness(IContentButtonHandler handler, IContentButton view) { }
14+
15+
private static void MapStrokeColor(IContentButtonHandler handler, IContentButton view) { }
16+
17+
private static void MapCornerRadius(IContentButtonHandler handler, IContentButton view) { }
18+
19+
private static void MapContent(IContentButtonHandler handler, IContentButton view) { }
20+
}

Maui.ContentButton/Maui.ContentButton.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
55
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
66
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
77
<!-- <TargetFrameworks>$(TargetFrameworks);net9.0-tizen</TargetFrameworks> -->
@@ -41,7 +41,11 @@
4141

4242
<ItemGroup>
4343
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.90" />
44-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
44+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4545
</ItemGroup>
4646

47+
<ItemGroup Condition="'$(TargetFramework)' != 'net8.0'">
48+
<Compile Remove="**\**\*.standard.cs" />
49+
<None Include="**\**\*.standard.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
50+
</ItemGroup>
4751
</Project>

0 commit comments

Comments
 (0)