Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restart needed after installing .NET Core Runtime and SDK?

We're about to deploy a netcore 2.0 application on production, but we need to install .NET Core Runtime and SDK first. Is a restart needed for the installation to take effect? Since it's production, we don't want that to happen.

like image 505
Caloyski Avatar asked Nov 22 '17 15:11

Caloyski


2 Answers

We installed the following from here

  1. x64 Installer (SDK)
  2. x64 Installer (Runtime)
  3. Windows Server Hosting (Runtime)

There was no need to restart the machine and nothing blew up (:

like image 92
Caloyski Avatar answered Oct 27 '22 09:10

Caloyski


If you are creating a Windows Service using the .NET Core SDK (Microsoft.Extensions.Hosting.WindowsServices) and deploying it in the target machine you need a restart (atleast a log off depending on the application you are running). Here is what happens.

  1. Install .NET Core Runtime
  2. Deploy a windows service.
  3. You will notice that the command line in the windows service will be "dotnet "
  4. Start the service. It will fail because it cannot find the tool "dotnet".
  5. This is because the service control manager (services.msc) is not aware of the dotnet command being added to the path. So you can either do a log off (or)restart to make sure things work.
like image 38
Soundararajan Avatar answered Oct 27 '22 08:10

Soundararajan