Skip to content

Instantly share code, notes, and snippets.

@dasMulli
Last active May 9, 2017
Embed
What would you like to do?
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