C
C#7mo ago
Amaral

Web Api C# in Linux Ubuntu

Can anyone help me understand why even though I install the .NET SDK on Linux, when I run my published app, I get the following error message: "You must install or update .NET to run this application." I tried several SDK installation tutorials, in versions 6.0, 7.0 and 8.0. And I got the same response in all of them.
2 Replies
x0rld
x0rld7mo ago
how do you start it ?
Vortac
Vortac7mo ago
Are you using the Microsoft repos? I’m on Linux mint and was running into a similar error. The Ubuntu repo only has .net 7, but I needed to install from the Ubuntu repo (after removing the Microsoft one and all dot net packages) and then everything worked I was trying the msft repos because they have 8