Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



WPF Application on ...
 
Share:
Notifications
Clear all

[Solved] WPF Application on Raspberry Pi OS

1 Posts
1 Users
0 Likes
929 Views
(@Anonymous)
Joined: 1 second ago
Posts: 0
Topic starter  

Hello everyone,

I have a WPF Application created in Visual Studio 2022 on Windows 10 (64) machine. It is published with following options:

Configuration: Release | Any CPU
Target framework: net7.0 (nothing else can be selected)
Deployment mode: Framework-dependent
Target runtime: Portable

On the Raspberry Pi 3 model B V1.2 I have installed Raspberry Pi OS - Debian v11 - (64-bit) and I would like to run this WPF app there (the reason is I would like to stay with C#). I was following instructions from "Deploy .NET apps to Raspberry Pi" on Microsoft website using option with Deploying a framework-dependent app ( https://learn.microsoft.com/en-us/dotne ... 6ZVCs-5VWw).

Following elements are listed as installed:

dotnet --list-runtimes
Microsoft .AspNetCore.App 6.0.14
Microsoft .AspNetCore.App 7.0.3
Microsoft.NETCore.App 6.0.0
Microsoft.NETCore.App 6.0.14
Microsoft.NETCore.App 7.0.0
Microsoft.NETCore.App 7.0.3

dotnet --list-sdks
6.0.406
7.0.200

When I try to run the project witho following command: dotnet Project_Name.dll I see following output:

App: /location/Project_Name.dll
Architecture: arm64
Framework: 'Microsoft.WindowsDesktop.App', version '7.0.0' (arm64)
.NET location: location/.dotnet

No frameworks were found.

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?fr ... n.11-arm64

Presented link is not going into specific download and I also cannot find Microsoft.WindowsDesktop 7.0.0 for Linux. Is there any other option and way to run WPF on Raspberry Pi OS? What else should be installed to be able to run the App?


   
ReplyQuote
Share: