skip to Main Content

I installed aspnet core runtime (aspnetcore-runtime-3.1.3) on a centOS 7 server.
following this guide from microsoft documentation: https://learn.microsoft.com/en-us/dotnet/core/install/runtime?pivots=os-linux#download-and-manually-install

my server doesn’t have internet connection.

After installation, when I run any command, e.g.
dotnet --info
it says it can’t find any installed dotnet sdk:

$ dotnet --info
  It was not possible to find any installed .NET Core SDKs
  Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
      https://aka.ms/dotnet-download

Host (useful for support):
  Version: 3.1.3
  Commit:  4a9f85e9f8

.NET Core SDKs installed:
  No SDKs were found.

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.1.3 [/home/myuser/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.3 [/home/myuser/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Previously, I downloaded the rpm package and installed it with rpm -ivh command, same result

What can I do to fix this?
Note that I don’t have internet access in the server

EDIT: The problem: I don’t need SDK to run this command or any command I am using.

Anyways I’ve tried installing SDK, it says it can’t find any compatible frameworks

2

Answers


  1. What is the problem? you just installed runtime, and the error says there is no sdk.

    Login or Signup to reply.
  2. You installed the .net runtime but didn’t install the any sdk. for you to be able use asp.net core you need to install both. you can visit asp.net core documentation for the difference between them. but you can just visit https://dotnet.microsoft.com/download to download the appropriate sdk you need.

    this is what you see when you go to https://dotnet.microsoft.com/download
    form there click on Linux (as is the case with you) and the advanced
    choose asp.net 3.1
    make sure you download both the sdk and runtime

    nb: I assume you are doing this from a gui. i’m sure there are commands for installing the asp.net core runtime and SDK from command prompt. but what is important is that YOU ARE MISSING THE SDK!!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search