diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 3c62578..841080f 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Setup .NET uses: actions/setup-dotnet@v1 with: diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..334783c --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,13 @@ +<Project ToolsVersion="15.0"> + <PropertyGroup> + <PublishRepositoryUrl>true</PublishRepositoryUrl> + <EmbedUntrackedSources>true</EmbedUntrackedSources> + <IncludeSymbols>true</IncludeSymbols> + <SymbolPackageFormat>snupkg</SymbolPackageFormat> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="Nerdbank.GitVersioning" Version="3.5.113" PrivateAssets="all" /> + <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/> + </ItemGroup> +</Project> diff --git a/version.json b/version.json new file mode 100644 index 0000000..75c8ef3 --- /dev/null +++ b/version.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", + "version": "0.1", + "publicReleaseRefSpec": [ + "^refs/heads/main$", + "^refs/heads/releases/*" + ] +}