This commit is contained in:
Oren Novotny 2018-05-03 19:49:08 -04:00
Родитель a470503e38
Коммит f84db53666
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: D501F3955648A88A
5 изменённых файлов: 24 добавлений и 3 удалений

Просмотреть файл

@ -18,6 +18,13 @@ steps:
inputs:
versionSpec: 4.6.2
- task: DotNetCoreCLI@2
inputs:
command: build
projects: build/setversion.csproj
arguments: -c $(BuildConfiguration)
displayName: Set Version
- powershell: |
.\build\build.ps1 -target=SignNuGet
displayName: Build

Просмотреть файл

@ -17,7 +17,6 @@ steps:
- powershell: |
.\build\build.ps1 -target=Build
displayName: Build
- task: PublishBuildArtifacts@1
displayName: Publish Package Artifacts
@ -25,4 +24,4 @@ steps:
pathToPublish: .\bin\nupkg
artifactType: container
artifactName: Packages
condition: always()
condition: eq(variables['system.pullrequest.isfork'], false)

7
build/setversion.csproj Normal file
Просмотреть файл

@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>

8
build/version.json Normal file
Просмотреть файл

@ -0,0 +1,8 @@
{
"inherit": true,
"cloudBuild": {
"buildNumber": {
"enabled": true
}
}
}

Просмотреть файл

@ -10,7 +10,7 @@
},
"cloudBuild": {
"buildNumber": {
"enabled": true
"enabled": false
}
}
}