Skip to content

Commit 7da38be

Browse files
authored
Add support for .NET 8 (#337)
* Add support for net 8 * Fix sample apps target framework * Try multiple targets * Raise version * Add suffix to target frameworks * revert sufix changes * Tentative of adding suffixes * Tentative of adding suffixes * Review code * Fix windows version * revert * Fix * tentative fix tests
1 parent 3fa63d2 commit 7da38be

File tree

9 files changed

+12
-14
lines changed

9 files changed

+12
-14
lines changed

Directory.Build.props

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<DotnetVersion>net6.0</DotnetVersion>
4+
<DefaultTargetDotnetVersion>net8.0</DefaultTargetDotnetVersion>
5+
<TargetDotnetVersions>net6.0;$(DefaultTargetDotnetVersion)</TargetDotnetVersions>
56
<Platforms>x64;ARM64</Platforms>
67
<AvaloniaVersion>0.10.17</AvaloniaVersion>
7-
<CefGlueVersion>120.6099.1</CefGlueVersion>
8+
<CefGlueVersion>120.6099.3</CefGlueVersion>
89
</PropertyGroup>
910

1011
<PropertyGroup>
1112
<AssemblyVersion>2.0.0.0</AssemblyVersion>
1213
<FileVersion>2.0.0.0</FileVersion>
13-
<Version>2.121.1</Version>
14+
<Version>2.121.2</Version>
1415
<Authors>OutSystems</Authors>
1516
<Product>WebViewControl</Product>
1617
<Copyright>Copyright © OutSystems 2023</Copyright>

SampleWebView.Avalonia/SampleWebView.Avalonia.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>$(DotnetVersion)</TargetFramework>
5+
<TargetFrameworks>$(TargetDotnetVersions)</TargetFrameworks>
66
<RollForward>LatestMajor</RollForward>
77
<Configurations>Debug;Release;ReleaseAvalonia;ReleaseWPF;ReleaseAvaloniaRemoteDebugSupport</Configurations>
88
<RuntimeIdentifiers>osx-x64;win-x64;osx-arm64;win-arm64</RuntimeIdentifiers>

SampleWebView.Avalonia/bundle-osx-arm64.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-arm64 -p:Platform=ARM64
44

5-
TARGETAPP=bin/ARM64/Debug/net6.0/osx-arm64/publish/SampleWebView.app/Contents/MacOS
5+
TARGETAPP=bin/ARM64/Debug/net8.0/osx-arm64/publish/SampleWebView.app/Contents/MacOS
66
chmod +x "$TARGETAPP/CefGlueBrowserProcess/Xilium.CefGlue.BrowserProcess"
77
chmod +x "$TARGETAPP/SampleWebView.Avalonia"

SampleWebView.Avalonia/bundle-osx-x64.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-x64 -p:Platform=x64
44

5-
TARGETAPP=bin/x64/Debug/net6.0/osx-x64/publish/SampleWebView.app/Contents/MacOS
5+
TARGETAPP=bin/x64/Debug/net8.0/osx-x64/publish/SampleWebView.app/Contents/MacOS
66
chmod +x "$TARGETAPP/CefGlueBrowserProcess/Xilium.CefGlue.BrowserProcess"
77
chmod +x "$TARGETAPP/SampleWebView.Avalonia"

WebViewControl.Avalonia/WebViewControl.Avalonia.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>$(DotnetVersion)</TargetFramework>
4+
<TargetFrameworks>$(TargetDotnetVersions)</TargetFrameworks>
55
<RootNamespace>WebViewControl</RootNamespace>
66
<AssemblyTitle>WebViewControl Avalonia</AssemblyTitle>
77
<Description>WebViewControl for Avalonia powered by CefGlue</Description>

WebViewControl/WebViewControl.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>$(DotnetVersion)-windows</TargetFramework>
4+
<TargetFramework>$(DefaultTargetDotnetVersion)-windows</TargetFramework>
55
<AssemblyTitle>WebViewControl WPF</AssemblyTitle>
66
<Description>WebViewControl for WPF powered by CefGlue</Description>
77
<Configuration></Configuration>

tests/TestResourceAssembly.V1.0.0.0/TestResourceAssembly.csproj

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>$(DotnetVersion)</TargetFramework>
4-
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
3+
<TargetFrameworks>$(TargetDotnetVersions)</TargetFrameworks>
54
<OutputPath>$(MSBuildProjectDirectory)\bin\</OutputPath>
65
<RootNamespace>TestResourceAssembly</RootNamespace>
76
<AssemblyVersion>1.0.0.0</AssemblyVersion>

tests/TestResourceAssembly.V2.0.0.0/TestResourceAssembly.csproj

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>$(DotnetVersion)</TargetFramework>
4-
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
3+
<TargetFrameworks>$(TargetDotnetVersions)</TargetFrameworks>
54
<OutputPath>$(MSBuildProjectDirectory)\bin\</OutputPath>
65
<RootNamespace>TestResourceAssembly</RootNamespace>
76
<AssemblyVersion>2.0.0.0</AssemblyVersion>

tests/Tests.WebView/Tests.WebView.csproj

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>$(DotnetVersion)</TargetFramework>
5-
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
4+
<TargetFrameworks>$(TargetDotnetVersions)</TargetFrameworks>
65
<OutputPath>$(MSBuildProjectDirectory)\bin\</OutputPath>
76
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
87
<PlatformTarget>$(Platform)</PlatformTarget>

0 commit comments

Comments
 (0)