Thanks for your reply.
I did get success installing .Net Core and Asp. I don't really know what I was doing wrong as most of the tutorials are exactly the same instructions, exactly those you wrote.
Code: Select all
dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 3.1.200
Commit: c5123d973b
Runtime Environment:
OS Name: raspbian
OS Version: 9
OS Platform: Linux
RID: linux-arm
Base Path: /home/pi/dotnet/sdk/3.1.200/
Host (useful for support):
Version: 3.1.2
Commit: 916b5cba26
.NET Core SDKs installed:
3.1.200 [/home/pi/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.2 [/home/pi/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.2 [/home/pi/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
I am having another issue now, that I cannot find anything exactly as, and can be my lack of knowledge on Web Development that is confusing me.
I got the .Net ASP MVC Solution on my Visual Studio on the laptop (Windows). Which publish target option should I use to publish to deploy for the Pi?
I have been selecting Folder. Copy the files into the Raspberry Pi. Giving full read/write rights to the folder.
On the PI command line run "dotnet my.dll". Which returns the following:
Code: Select all
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/home/pi/Becker/Api/bin/'.
Failed to run as a self-contained app. If this should be a framework-dependent app, add the /home/pi/Becker/Api/bin/BeckerSmartFanApi.runtimeconfig.json file specifying the appropriate framework.