Skip to content

Instantly share code, notes, and snippets.

@dasMulli
Last active May 9, 2017 20:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasMulli/29c7d68f321cc5ac4a68407a6fd76d19 to your computer and use it in GitHub Desktop.
Save dasMulli/29c7d68f321cc5ac4a68407a6fd76d19 to your computer and use it in GitHub Desktop.
Invokes msbuild with .net core sdk path on mac and linux. Copied with some edits from omnisharp-roslyn
#!/usr/bin/env bash
DOTNET_CLI_PATH="$(dirname $(which dotnet))/sdk/$(dotnet --version)"
export MSBuildExtensionsPath="$DOTNET_CLI_PATH/"
export CscToolExe="$DOTNET_CLI_PATH/Roslyn/RunCsc.sh"
export MSBuildSDKsPath="$DOTNET_CLI_PATH/Sdks"
msbuild /nologo /v:minimal "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment