.GTK on ubuntu on wslg

Eigil Krogh Sorensen 76 Reputation points
2021-11-10T11:13:49.577+00:00

I have an xamarinn.forms app that runs on Android, iOS, iPadOS, macOS and UWP/Windows.

Now I added a .GTK project: gtk

But if I try to run the app in wslg with the command

mono TimeDateCalculator.gtk.exe

I get this error:

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
File name: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
File name: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

I compiled the app with Visual Studio 2022.

How do I solve that problem ?

--
Eigil

Community Center Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Eigil Krogh Sorensen 76 Reputation points
    2021-11-15T13:37:35.297+00:00

    Problem seems to be solved by NOT setting Copy Local on

    atk-sharp
    gdk-sharp
    glade-sharp
    glib-sharp
    gtk-dotnet
    gtk-sharp

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.