Skip to content

Commit

Permalink
feat: Updated to net8.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Nov 12, 2023
1 parent e1b8d7f commit 047b49d
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net4.8;net7.0-windows</TargetFrameworks>
<TargetFrameworks>net4.8;net8.0-windows</TargetFrameworks>
<OutputType>Exe</OutputType>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
Expand Down
6 changes: 3 additions & 3 deletions src/apps/H.NotifyIcon.Apps.Maui/H.NotifyIcon.Apps.Maui.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(TargetFrameworks);net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>$(TargetFrameworks);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);net7.0-tizen</TargetFrameworks> -->
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
<OutputType>Exe</OutputType>
<RootNamespace>H.NotifyIcon.Apps.Maui</RootNamespace>
<UseMaui>true</UseMaui>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<OutputType Condition="'$(Configuration)'=='Debug'">Exe</OutputType>
<TargetFrameworks>net7.0-windows;net4.7.2</TargetFrameworks>
<TargetFrameworks>net8.0-windows;net4.7.2</TargetFrameworks>
<DefineConstants>$(DefineConstants);HAS_UNO;HAS_WINUI;HAS_UNO_WINUI</DefineConstants>
<UseWPF>true</UseWPF>
<LangVersion>preview</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows10.0.18362.0</TargetFramework>
<TargetFramework>net8.0-windows10.0.18362.0</TargetFramework>
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
<Platforms>x86;x64;arm64</Platforms>
<UseWinUI>true</UseWinUI>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows10.0.18362.0</TargetFramework>
<TargetFramework>net8.0-windows10.0.18362.0</TargetFramework>
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFrameworks>net4.6.2;net7.0-windows</TargetFrameworks>
<TargetFrameworks>net4.6.2;net8.0-windows</TargetFrameworks>
<UseWPF>true</UseWPF>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFrameworks>net4.6.2;net7.0-windows</TargetFrameworks>
<TargetFrameworks>net4.6.2;net8.0-windows</TargetFrameworks>
<UseWPF>true</UseWPF>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<LangVersion>preview</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/apps/TrimmingHelper/TrimmingHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<PublishTrimmed>true</PublishTrimmed>
<!-- <TrimMode>full</TrimMode> -->
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net4.6.2;netstandard2.0;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net4.6.2;netstandard2.0;net8.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net4.6.2;netstandard2.0;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net4.6.2;netstandard2.0;net8.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup Label="Usings">
Expand Down
4 changes: 2 additions & 2 deletions src/libs/H.NotifyIcon.Maui/H.NotifyIcon.Maui.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net7.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net8.0;net8.0-windows10.0.19041.0</TargetFrameworks>
<UseMaui>true</UseMaui>
<DefineConstants>$(DefineConstants);HAS_PLATFORM_CODE;HAS_MAUI</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)'=='net7.0-windows10.0.19041.0'">$(DefineConstants);HAS_MAUI_WINUI</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)'=='net8.0-windows10.0.19041.0'">$(DefineConstants);HAS_MAUI_WINUI</DefineConstants>
<NoWarn>$(NoWarn);CA1031;CS8002;CS0108;CA1501</NoWarn>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<TargetFramework>net8.0</TargetFramework>
<SignAssembly>false</SignAssembly>
<DefineConstants>$(DefineConstants);HAS_UNO;HAS_WINUI;IS_PACKABLE;HAS_PLATFORM_CODE</DefineConstants>
<Nullable>enable</Nullable>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/H.NotifyIcon.Uno/H.NotifyIcon.Uno.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<TargetFramework>net8.0</TargetFramework>
<SignAssembly>false</SignAssembly>
<DefineConstants>$(DefineConstants);HAS_UNO;IS_PACKABLE;HAS_PLATFORM_CODE</DefineConstants>
<NoWarn>$(NoWarn);Uno0001;CA1010;CA1031;CS8002</NoWarn>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/H.NotifyIcon.WinUI/H.NotifyIcon.WinUI.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0-windows10.0.17763.0;net7.0-windows10.0.17763.0</TargetFrameworks>
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
<UseWinUI>true</UseWinUI>
<DefineConstants>$(DefineConstants);HAS_WINUI;IS_PACKABLE;HAS_PLATFORM_CODE</DefineConstants>
<NoWarn>$(NoWarn);CS3021;CA1031;CS8002</NoWarn>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/H.NotifyIcon.Wpf/H.NotifyIcon.Wpf.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net4.6.2;net6.0-windows;net7.0-windows</TargetFrameworks>
<TargetFrameworks>net4.6.2;net8.0-windows</TargetFrameworks>
<UseWPF>true</UseWPF>
<DefineConstants>$(DefineConstants);HAS_WPF;HAS_PLATFORM_CODE</DefineConstants>
<RootNamespace>Hardcodet.Wpf.TaskbarNotification</RootNamespace>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/H.NotifyIcon/H.NotifyIcon.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net4.6.2;netstandard2.0;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net4.6.2;netstandard2.0;net8.0</TargetFrameworks>
<NoWarn>$(NoWarn);CA1031;CA1003;CA1502;CS3016;CS8981;CA1513</NoWarn>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net4.8;net7.0-windows</TargetFrameworks>
<TargetFrameworks>net4.8;net8.0-windows</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 047b49d

Please sign in to comment.