[Error: [/usr/share/dotnet/host/fxr] does not exist] - VS Code IDE Extension Issue Report (bac30e4ca1da8d74bbefa150bcd83bba)

OS: linux :: x64 :: WSL 2
Distro: Ubuntu 22.04.3 LTS
Extension activation logs:

 Activating Torizon IDE ...
 Telemetry is enabled
 Extension collects completely anonymous telemetry data about templates usage. Participation in this anonymous program is optional, and you may opt-out if you'd not like to share any information. Check: https://github.com/toradex/torizon-experimental-torizon-ide-v2-docs/blob/main/USAGE-DATA.md#opt-out
 Telemetry allows us to accurately gauge templates usage. This data will help us to focus better on the most used templates, adding new features and putting effort in the right place.
 Resolving host IP address ...
 Host IP address OK
 Docker installed OK
 Docker running OK
 Docker compose OK
 PowerShell OK
 git OK
 dig OK
 avahi-resolve OK
 nmap OK
 iputils-ping OK
 file OK
 sshpass OK
 net-tools OK
 Cloning project templates
 Project templates clone OK
 Project templates fetched OK
 Checkout templates repo to v2.3.2 OK
 Checking connected devices ...
 Scanning Torizon devices ...
 Configuring debug id_rsa ...
 Configuring debug id_rsa ...
 Debug id_rsa OK
 Torizon IDE extension activated
 Checking host ip sanity ...
 Host ip is OK
 Device 10.0.1.67 set as Docker Host
 Debian bookworm packages list load OK
 ERROR :: publish-torizon-arm64 failed with exit code 131

Tasks logs:

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task in folder KevinBlazor: pwsh -nop .conf/validateDepsRunning.ps1 


儭 VALIDATING ENVIRONMENT


 Environment is valid!

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task in folder KevinBlazor: bash -c [[ ! -z "10.0.1.67" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task in folder KevinBlazor: bash -c [[ "aarch64" == "aarch64" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task in folder KevinBlazor: sleep 3 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task in folder KevinBlazor: sshpass -p root scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/kevin/MultiProjectKevin/KevinBlazor/../docker-compose.yml torizon@10.0.1.67:~/ 

Warning: Permanently added '10.0.1.67' (ED25519) to the list of known hosts.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task in folder KevinBlazor: DOCKER_HOST=10.0.1.67:2375 docker-compose -p torizon down --remove-orphans 

[+] Running 1/1
  Network torizon_default  Removed                                                                                                                                                                0.3s 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task in folder KevinBlazor: dotnet publish /home/kevin/MultiProjectKevin/KevinBlazor/KevinBlazor.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -r linux-arm64 --no-self-contained 

Error: [/usr/share/dotnet/host/fxr] does not exist

 *  The terminal process "dotnet 'publish', '/home/kevin/MultiProjectKevin/KevinBlazor/KevinBlazor.csproj', '/property:GenerateFullPaths=true', '/consoleloggerparameters:NoSummary', '-r', 'linux-arm64', '--no-self-contained'" failed to launch (exit code: 131). 
 *  Terminal will be reused by tasks, press any key to close it. 

Reported by: @kevin.tx

If you have more data that you think that is interesting from the context of the issue please reply below.

Thanks :robot:

I saw something like this when I had the Ubuntu Dotnet packages installed rather than the Microsoft packages. After cleaning out all that and doing a fresh install with the Microsoft packages it worked. More details here: Install .NET on Ubuntu 22.04 - .NET | Microsoft Learn

Drew