Skip to content

Commit

Permalink
*source-in-nuget: fixed for 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Radka Janek committed Feb 7, 2019
1 parent 8048573 commit b9a013d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
12 changes: 0 additions & 12 deletions no-source-files-in-nuget/Program.cs

This file was deleted.

9 changes: 0 additions & 9 deletions no-source-files-in-nuget/no-source-files-in-nuget.csproj

This file was deleted.

11 changes: 10 additions & 1 deletion no-source-files-in-nuget/test.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
#!/usr/bin/env bash

set -euo pipefail
set -x

dotnet new console --force
rm -rf project.json

IFS='.' read -ra VERSION <<< "$1"
NEW_CMD="new console --force"
if [[ "${VERSION[0]}" = "1" ]]; then
NEW_CMD="new -t console"
fi

dotnet $NEW_CMD
dotnet restore
dotnet build

Expand Down

0 comments on commit b9a013d

Please sign in to comment.