I have a xamarin app that I want to make a snap for.
The app must be run with mono app.exe
The snapcraft.yaml looks like this
name: myapp
base: core18
version: "6.4.27"
summary: aa bb ...
description: |
myapp
nnn aaa bss
parts:
myapp:
source: snap/local/myapp
plugin: nil
override-build: |
echo $SNAPCRAFT_PART_INSTALL
cp -rf ./* $SNAPCRAFT_PART_INSTALL/
stage-packages:
- mono-complete
- gtk-sharp2
apps:
myapp:
command: mono $SNAP/app.exe
snapcraft completes and makes a snap.
But when I install the snap and run
snap run myapp
I get the error message
Unhandled Exception:
System.IPreformatted textO.FileNotFoundException: Could not load file or assembly or one of its dependencies.
File name: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
If I run
mono app.exe
outside snap it works fine.
Can that problem be solved ?
– Eigil