pkg(dotnet-5.0.201): Nuget caching

This commit is contained in:
Thomas Hobson 2021-03-20 15:17:55 +13:00
parent 7ad8f337bc
commit 91018d6d85
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
4 changed files with 20 additions and 3 deletions

View file

@ -1,5 +1,12 @@
#!/usr/bin/env bash
dotnet new console
export DOTNET_CLI_HOME=$PWD
dotnet build > /dev/null # Shut the thing up
dotnet new console -o . --no-restore
rm Program.cs
dotnet build -o .
dotnet restore --source $DOTNET_ROOT/.nuget/packages
dotnet build -o . --no-restore