Running a .NET Core Console Application on Mac or Windows Running a .NET Core Console Application on Mac or Windows windows windows

Running a .NET Core Console Application on Mac or Windows


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.