The library hostpolicy.dll was not found

前端 未结 13 1196
自闭症患者
自闭症患者 2020-11-30 08:28

I have a simple .NET Core project (console app) that I\'m trying to compile and run. dotnet build succeeds, but I get the following error when I do dotnet

13条回答
  •  情话喂你
    2020-11-30 08:55

    I am having this problem in Dotnet Core 3.1 Console application.

    If you are publishing your application, make sure that your target runtime set to the specific runtime that you had installed in your target machine.

    If you set to portable it will pick whatever runtime that it feels comfortable (which you might not have it installed)

提交回复
热议问题