The library hostpolicy.dll was not found

前端 未结 13 1115
自闭症患者
自闭症患者 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 09:12

    This error message is unhelpful. The actual problem is a missing emitEntryPoint property:

      "buildOptions": {
        ...
        "emitEntryPoint": true
      },
    

    Once this is added, the compiler will let you know about any other problems (like a missing static void Main() method). Successfully compiling the project will result in an output that dotnet run can execute.

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