“The library 'hostpolicy.dll' required” if run from deploy folder, but emitEntryPoint is true

前端 未结 3 1637
悲哀的现实
悲哀的现实 2021-01-13 00:44

I created a Web API project using the default ASP.NET Core Web Application (.NET Framework) template and then published to local folder using VS.

Now if I call

相关标签:
3条回答
  • 2021-01-13 01:18

    Make sure you install the correct version of ASP Net Core in the server.

    Here is the download link:

    https://dotnet.microsoft.com/download/dotnet-core

    0 讨论(0)
  • 2021-01-13 01:19

    We ran in the same problem building our app in CI. Apparantly a reference towards another unittest project slipped in. This Created the error at hand.

    0 讨论(0)
  • 2021-01-13 01:28

    Once you publish the application and have a .exe file, you don't need to use dotnet anymore. The application is compiled!

    Just run application.exe by double-clicking it, or launching it from the console.

    0 讨论(0)
提交回复
热议问题