Running a .NET Core Console Application on Mac or Windows

后端 未结 1 510
礼貌的吻别
礼貌的吻别 2021-02-07 12:34

I\'ve created a .NET Core console application. I want to build the app so that I can execute it on Windows or MacOS without dotnet core being installed on the machine. So I need

相关标签:
1条回答
  • 2021-02-07 13:05

    What you need is to create a self-contained application. The link explains how exactly to modify your project.json to do that.

    Also note that while a self-contained application does not have a dependency on .Net Core, it may have other dependencies. Specifically on OSX, I believe you will need to install a specific version of openssl from homebrew.

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