diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 00000000..7c74cb22 --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "nbgv": { + "version": "3.6.133", + "commands": [ + "nbgv" + ] + } + } +} \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fab1ee4d..44dff1ef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,13 @@ jobs: config: release steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Nerdbank.GitVersioning + uses: dotnet/nbgv@v0.4.2 + id: nbgv + - name: Output NuGet version + run: echo "NuGet version = ${{steps.nbgv.outputs.NuGetPackageVersion}}" - uses: actions/setup-dotnet@v3 with: dotnet-version: | diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 00000000..1dda2dd5 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,9 @@ + + + + + all + 3.6.133 + + + \ No newline at end of file diff --git a/version.json b/version.json new file mode 100644 index 00000000..98cd6960 --- /dev/null +++ b/version.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json", + "version": "0.9", + "publicReleaseRefSpec": [ + "^refs/heads/master$", + "^refs/heads/v\\d+(?:\\.\\d+)?$" + ], + "cloudBuild": { + "buildNumber": { + "enabled": true + } + } +} \ No newline at end of file