Skip to content

Commit

Permalink
Add nbgv and setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
skylarnam committed Feb 22, 2023
1 parent 6d336b2 commit 59618af
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
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
}
}
}
6 changes: 6 additions & 0 deletions vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ queue:
timeoutInMinutes: 120

steps:
- powershell: |
dotnet tool install --tool-path "${env:AGENT_TOOLSDIRECTORY}\nbgv" nbgv
$version = & "${env:AGENT_TOOLSDIRECTORY}\nbgv\nbgv.exe" get-version --variable SemVer1
& "${env:AGENT_TOOLSDIRECTORY}\nbgv\nbgv.exe" cloud --version $version
displayName: Set cloud build version

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

0 comments on commit 59618af

Please sign in to comment.