Chris Jones 05c954c49b conform to a more std naming scheme for personal sh scripts 4 年之前
..
README.md 05c954c49b conform to a more std naming scheme for personal sh scripts 4 年之前

README.md

Contents

Prereqs for dotnet tooling on macOS ⌘

  • TL;DR install the dotnet sdk on macOS using brew
brew cask install dotnet-sdk

The above command implies homebrew is setup and working on macOS along with the casks tap for brew, and only install the dotnet-sdk cask an no other, and the dotnet-sdk provides all the tooling for dotnet on macOS, and if another dotnet cask is installed complications will arise.

Compiling a csharp, C# program on macOS

requires a proper directory structure to be setup

  • Program.cs
  • helloWorld.csproj
dotnet publish -c Release --framework netcoreapp2.1 --runtime osx-x64

To run the binary produced by the dotnet compiler

./bin/Release/netcoreapp2/osx-x64/helloWorld

Working with .Net framework and .Net Core 3.x

Microsoft provides a analysis tool to see if a .Net Framework applicaiton can be converted to .Net Core which is compatible with Windows, Mac, and Linux.

To utilize the above mentioned tool Visual Studio 2019 should be installed on a Windows 10 machine.

choco install visualstudio2019community