Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net Core 3.0 hostfxr.dll could not be found

Tags:

.net-core

wpf

using .net core 3.0 and wpf

I have successfully built an app in wpf for .net core 3.0 and it runs fine where i have installed visual studio (dev environment).

However as soon as i copy the release folder and run it on another computer i get hostfxr.dll could not be found if this is a framework-dependant application, install run time in global location C:\program files\dotnet or use the DOTNET_ROOT environment variable to specify the run time location

I have already installed the 3.0 preview run time and it matches the location and set the DOTNET_ROOT enviroment variable and pointed it to the runtime location C:\program files\dotnet

anything missing?

like image 982
UndeadEmo Avatar asked Oct 20 '25 03:10

UndeadEmo


1 Answers

Ok, so you have to install the sdk as well as the run-time for .net core 3.0 run time for the app to run.

don't have to set environment variable

like image 182
UndeadEmo Avatar answered Oct 21 '25 20:10

UndeadEmo