Unable to run dotnet project
Hello, I just installed dotnet core and am unable to launch a simple dotnet 8.0 project. dotnet is in PATH and it displays the correct version. SDK and runtime are installed as well. Any suggestions what could have gone wrong?
30 Replies
dotnet --info
?looks good at a glance.
What version is the program you are trying to build/run? Can you show the .csproj file?
No workloads it seems (?), install the required workloads
You can call
dotnet workload restore
You must be in the root directory of the projectrestoring workloads did not help
Did it say something?
The dotnet workload restore command analyzes a project or solution to determine which workloads it needs, then installs any workloads that are missing.
no changes
its a fresh project i just created right after installing theSDK
created via
dotnet new
?no, this
im using Rider
okay
just for testing, go to an empty directory and do
dotnet new console -n test
want to see if it can successfully create a hello world app and build itYou also need aspnet runtime afaik https://dotnet.microsoft.com/en-us/download/dotnet/8.0
okay excellent
ok, ill try recreating the project with dotnet
so your SDK works
You have no aspnet runtime according to that
according to
pacman
, runtime is installed as a dependency
does dotnet search for it differently, to where it's unable to find it?snippet from
dotnet --info
on my machine
I don't have a linux machine available for testing, but I just installed the dotnet SDK on WSL, created a dotnet new webapi
project and it builds and runs as expectedok, found the issue
what was it?
so as dependency
pacman
only installs NETCore.App runtime (dotnet-runtime
)
but i needed aspnet-runtime
as well👍
good to know. pacman you say, so this is for archlinux right?
yeah, arch based distros, so Endeavour, Garuda and Manjaro also falls there
great, thanks
Will keep this in mind for future questions 🙂