Skip to content

Developer Feature Notes

Damian edited this page Oct 3, 2023 · 5 revisions

Publishing App

Publish app as a single file

dotnet publish -c Release -o publish -r linux-x64 -p:PublishReadyToRun=true -p:PublishSingleFile=true

Launch Remote GUI Locally for Debugging

This command is used to execute the app on the remote machine and display it on your local machine

Requires

  • Install vcxsrv on your local Windows machine
  • On Remote Linux device:
    1. sudo apt-get install libgbm1 libgl1-mesa-dri libegl1-mesa libinput10
    2. sudo nano /etc/ssh/sshd_config
    3. Enable:
      • X11Forwarding yes
      • X11UseLocalhost yes
    4. sudo systemctl restart sshd

Steps:

The following steps are used to launch the app from a Virtual Machine running from the same machine.

  1. Start, VCXSrv (XLaunch)
  2. Local Terminal: $env:DISPLAY="localhost:0"
  3. Local Terminal: ssh USERNAME@ipaddress-Y (_-X also works)
  4. Launch the app: dotnet VSLinuxDbg/SampleApp/SampleApp.dll

Possible Errors:

  • connect localhost port 6000: Connection refused - Caused by VPN and IT permissions

Test Later:

  • DISPLAY=IPADDRESS:0 dotnet VSLinuxDbg/TestApp/TestApp.dll
Clone this wiki locally