Skip to content

Instantly share code, notes, and snippets.

@brandongregoryscott
Last active June 9, 2020 20:49
Show Gist options
  • Save brandongregoryscott/134f20c521cc964aadd21fe5d7acd20b to your computer and use it in GitHub Desktop.
Save brandongregoryscott/134f20c521cc964aadd21fe5d7acd20b to your computer and use it in GitHub Desktop.
Example bash function - restoreDotnetSolution
#!/bin/bash
DOTNET_SOLUTION_FILE_PATH=/home/brandon/projects/DotnetExample
# Restores dotnet solution nuget dependencies
restoreDotnetSolution() {
echo "Running dotnet restore on the solution..."
dotnet restore $DOTNET_SOLUTION_FILE_PATH
echo "Dotnet solution restored"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment