Skip to content

Commit

Permalink
.net 8 (#4)
Browse files Browse the repository at this point in the history
* .net 8

*.net 6 because no maui support for it anymore
  • Loading branch information
dhindrik authored Dec 6, 2023
1 parent 39fb21e commit 75a3dd2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'
dotnet-quality: 'preview'
dotnet-version: '7.0.x'
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Install maui
run: dotnet workload install maui

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'
dotnet-quality: 'preview'
dotnet-version: '7.0.x'
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Install maui
run: dotnet workload install maui
Expand Down
9 changes: 6 additions & 3 deletions src/TinyMvvm.Maui/TinyMvvm.Maui.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UseMaui>true</UseMaui>
Expand All @@ -25,7 +25,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<LangVersion>latest</LangVersion>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\net6.0\TinyMvvm.Maui.xml</DocumentationFile>
<DocumentationFile>bin\Debug\net8.0\TinyMvvm.Maui.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<LangVersion>latest</LangVersion>
Expand All @@ -34,7 +34,10 @@
<None Remove="CommunityToolkit.Mvvm" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\logo.png" Pack="true" PackagePath="\" />
Expand Down
9 changes: 6 additions & 3 deletions src/TinyMvvm.Sample/TinyMvvm.Sample.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
<OutputType>Exe</OutputType>
Expand Down Expand Up @@ -36,7 +36,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<LangVersion>latestmajor</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0-ios|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
<CreatePackage>false</CreatePackage>
</PropertyGroup>
<ItemGroup>
Expand Down Expand Up @@ -80,4 +80,7 @@
<ItemGroup>
<ProjectReference Include="..\TinyMvvm.Maui\TinyMvvm.Maui.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
</ItemGroup>
</Project>

0 comments on commit 75a3dd2

Please sign in to comment.