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
how do you start it ?
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