Skip to content

Commit

Permalink
Merge pull request #10 from microsoft/dev/sknam/add-nbgv
Browse files Browse the repository at this point in the history
Add nbgv and setup files
  • Loading branch information
skylarnam authored Feb 22, 2023
2 parents 6d336b2 + 2368899 commit 11628c9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/actions-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

- name: Install .NET Core SDK
uses: actions/setup-dotnet@v3
Expand Down
9 changes: 9 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Condition="!Exists('packages.config')">
<PrivateAssets>all</PrivateAssets>
<Version>3.5.119</Version>
</PackageReference>
</ItemGroup>
</Project>
12 changes: 12 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.0-beta",
"publicReleaseRefSpec": [
"^refs/heads/main$"
],
"cloudBuild": {
"buildNumber": {
"enabled": true
}
}
}
3 changes: 3 additions & 0 deletions vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ queue:
timeoutInMinutes: 120

steps:
- checkout: self
fetchDepth: 0 # avoid shallow clone so nbgv can do its work.

- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
Expand Down

0 comments on commit 11628c9

Please sign in to comment.