Open kant2002 opened 2 years ago
:-( interesting ... i checked out that branch as is, changed Targetframework to net 6.0 and it works:
os: Ubuntu 20.04 focal
GtkSharpTest.csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DefineConstants>TRACE;DEBUG;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType></DebugType>
<DefineConstants>TRACE;RELEASE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Xwt\Xwt.csproj" />
<ProjectReference Include="..\Samples\Samples.csproj" />
<ProjectReference Include="..\..\Xwt.GtkSharp\Xwt.GtkSharp.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\Gtk3Test\AssemblyInfo.cs">
<Link>AssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\Gtk3Test\Main.cs">
<Link>Main.cs</Link>
</Compile>
</ItemGroup>
</Project>
Im on Gentoo, so if that’s fine I have to debug myself
I did try switch GtkSharp to develop version and hit following errors
~/xwt/Xwt.Gtk/Xwt.GtkBackend/Gtk3ViewPort.cs(88,35): error CS0539: 'GtkViewPort.GetBorder(Border)' in explicit interface declaration is not found among members of the interface that can be implemented [~/xwt/Xwt.GtkSharp/Xwt.GtkSharp.csproj]
~/xwt/Xwt.Gtk/Xwt.GtkBackend/GtkWebKitMini.cs(49,24): error CS0539: 'WebView.GetBorder(Border)' in explicit interface declaration is not found among members of the interface that can be implemented [~/xwt/Xwt.GtkSharp/Xwt.GtkSharp.csproj]
~/xwt/Xwt.Gtk/Xwt.GtkBackend/GtkWebKitMini.cs(33,40): error CS0535: 'WebView' does not implement interface member 'IScrollable.GetBorder(out Border)' [~/xwt/Xwt.GtkSharp/Xwt.GtkSharp.csproj]
~/xwt/Xwt.Gtk/Xwt.GtkBackend/Gtk3ViewPort.cs(30,37): error CS0535: 'GtkViewPort' does not implement interface member 'IScrollableImplementor.GetBorder(out Border)' [~/xwt/Xwt.GtkSharp/Xwt.GtkSharp.csproj]
is this expected?
I decide to try https://github.com/lytico/xwt/tree/lytico_gtksharp to test https://github.com/GtkSharp/GtkSharp/pull/301 So I run on .NET 6.0 without my patch GtkSharpTest application and it's crashed when select Widgets -> Buttons.
I would like to know, is this something on my system? Something with XWT or something with GtkSharp? Any ideas