Skip to content

Commit 4e996aa

Browse files
committed
Work CD-CI (#18)
1 parent 748a16a commit 4e996aa

File tree

11 files changed

+123
-102
lines changed

11 files changed

+123
-102
lines changed

appveyor.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ install:
4949
- bundle config --local path vendor/bundle
5050
- gem install bundler --quiet --no-ri --no-rdoc
5151
- gem install github_changelog_generator --quiet --no-ri --no-rdoc
52-
# this needs to be replace with the official version and nuget package as soon as it's released
53-
- dotnet tool install -g --version 4.0.0-pullrequest1422-1625 --add-source https://ci.appveyor.com/nuget/gitversion-8nigugxjftrw GitVersion.CommandLine.DotNetCore.Tool
52+
- dotnet tool install --tool-path . nbgv
5453
- ps: .\install-vsix-appveyor.ps1
5554

5655
before_build:
@@ -60,25 +59,32 @@ before_build:
6059
6160
nuget restore source\nanoFramework.Networking.Sntp.sln
6261
63-
dotnet-gitversion /l console /output buildserver /updateAssemblyInfo "source\nanoFramework.Networking.Sntp\Properties\AssemblyInfo.cs"
62+
.\nbgv cloud -p "source" -a -c
6463
6564
build_script:
6665
- ps: >-
6766
68-
msbuild source\nanoFramework.Networking.Sntp.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
67+
if ($env:APPVEYOR_REPO_TAG -eq "true")
68+
{
69+
msbuild source\nanoFramework.Networking.Sntp.sln /p:PublicRelease=true /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
70+
}
71+
else
72+
{
73+
msbuild source\nanoFramework.Networking.Sntp.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
74+
}
6975
7076
before_deploy:
7177
- ps: >-
7278
.\commit-assemblyinfo-changes.ps1
7379
7480
.\generate-change-log.ps1
7581
76-
Push-AppveyorArtifact $env:APPVEYOR_BUILD_FOLDER\source\Nuget.nanoFramework.Networking.Sntp\bin\Release\nanoFramework.Networking.Sntp.$env:GitVersion_NuGetVersionV2.nupkg
82+
Push-AppveyorArtifact $env:APPVEYOR_BUILD_FOLDER\source\Nuget.nanoFramework.Networking.Sntp\bin\Release\nanoFramework.Networking.Sntp.$env:NBGV_NuGetPackageVersion.nupkg
7783
7884
after_deploy:
7985
# for this environment variable to work here it has to be set in AppVeyor UI
80-
- nuget push source\Nuget.nanoFramework.Networking.Sntp\bin\Release\nanoFramework.Networking.Sntp.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
81-
- nuget push source\Nuget.nanoFramework.Networking.Sntp.DELIVERABLES\bin\Release\nanoFramework.Networking.Sntp.DELIVERABLES.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
86+
- nuget push source\Nuget.nanoFramework.Networking.Sntp\bin\Release\nanoFramework.Networking.Sntp.%NBGV_NuGetPackageVersion%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
87+
- nuget push source\Nuget.nanoFramework.Networking.Sntp.DELIVERABLES\bin\Release\nanoFramework.Networking.Sntp.DELIVERABLES.%NBGV_NuGetPackageVersion%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
8288

8389
# requires APPVEYOR_DISCORD_WEBHOOK_URL enviroment variable set with Discord webhook URL
8490
on_failure:
@@ -88,8 +94,6 @@ on_failure:
8894
8995
cache:
9096
- source\packages -> **source\packages.config
91-
- C:\ProgramData\chocolatey\bin -> appveyor.yml
92-
- C:\ProgramData\chocolatey\lib -> appveyor.yml
9397

9498
################################################
9599
# override configuration for specific branches
@@ -108,9 +112,9 @@ for:
108112
on:
109113
appveyor_repo_tag: true
110114
- provider: GitHub
111-
tag: v$(GitVersion_NuGetVersionV2)
112-
release: nanoFramework.Networking.Sntp Library v$(GitVersion_NuGetVersionV2)
113-
description: 'Check the [changelog](https://github.com/nanoframework/lib-nanoFramework.Networking.Sntp/blob/master/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Networking.Sntp/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)'
115+
tag: v$(NBGV_NuGetPackageVersion)
116+
release: nanoFramework.Networking.Sntp Library v$(NBGV_NuGetPackageVersion)
117+
description: 'Check the [changelog](https://github.com/nanoframework/lib-nanoFramework.Networking.Sntp/blob/master/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Networking.Sntp/$(NBGV_NuGetPackageVersion)) v$(NBGV_NuGetPackageVersion)'
114118
auth_token:
115119
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S
116120
artifact:
@@ -126,9 +130,9 @@ for:
126130

127131
deploy:
128132
- provider: GitHub
129-
tag: v$(GitVersion_NuGetVersionV2)
130-
release: nanoFramework.Networking.Sntp Library v$(GitVersion_NuGetVersionV2)
131-
description: 'Check the [changelog](https://github.com/nanoframework/lib-nanoFramework.Networking.Sntp/blob/$(appveyor_repo_branch)/CHANGELOG.md)\n\n## Install from nanoFramework MyGet development feed\n\nThe following NuGet packages are available for download from this release\n\npackage: [.NET](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.Networking.Sntp/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)'
133+
tag: v$(NBGV_NuGetPackageVersion)
134+
release: nanoFramework.Networking.Sntp Library v$(NBGV_NuGetPackageVersion)
135+
description: 'Check the [changelog](https://github.com/nanoframework/lib-nanoFramework.Networking.Sntp/blob/$(appveyor_repo_branch)/CHANGELOG.md)\n\n## Install from nanoFramework MyGet development feed\n\nThe following NuGet packages are available for download from this release\n\npackage: [.NET](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.Networking.Sntp/$(NBGV_NuGetPackageVersion)) v$(NBGV_NuGetPackageVersion)'
132136
auth_token:
133137
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S
134138
artifact:
@@ -150,9 +154,9 @@ for:
150154
on:
151155
appveyor_repo_tag: true
152156
- provider: GitHub
153-
tag: v$(GitVersion_NuGetVersionV2)
154-
release: nanoFramework.Networking.Sntp Library v$(GitVersion_NuGetVersionV2)
155-
description: 'Check the [changelog](https://github.com/nanoframework/lib-nanoFramework.Networking.Sntp/blob/$(appveyor_repo_branch)/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Networking.Sntp/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)'
157+
tag: v$(NBGV_NuGetPackageVersion)
158+
release: nanoFramework.Networking.Sntp Library v$(NBGV_NuGetPackageVersion)
159+
description: 'Check the [changelog](https://github.com/nanoframework/lib-nanoFramework.Networking.Sntp/blob/$(appveyor_repo_branch)/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Networking.Sntp/$(NBGV_NuGetPackageVersion)) v$(NBGV_NuGetPackageVersion)'
156160
auth_token:
157161
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S
158162
artifact:

azure-pipelines.yml

Lines changed: 41 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
# .NET Desktop
2-
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
3-
# Add steps that publish symbols, save build artifacts, and more:
4-
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
1+
trigger:
2+
branches:
3+
include: ["master", "*"]
4+
paths:
5+
exclude: ["doc", "*.md", ".appveyor.yml"]
6+
7+
pr:
8+
branches:
9+
include: [ "*" ]
510

611
pool:
712
vmImage: 'VS2017-Win2016'
@@ -20,24 +25,28 @@ steps:
2025
feedsToUse: config
2126
nugetConfigPath: source/NuGet.config
2227

23-
# Download file
24-
# - task: DownloadFile@1
25-
# inputs:
26-
# FileUrl: 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/vs-publisher-1470366/vsextensions/nanoFrameworkVS2017Extension/0/vspackage'
28+
- task: DotNetCoreCLI@2
29+
inputs:
30+
command: custom
31+
custom: tool
32+
arguments: install --tool-path . nbgv
33+
displayName: Install NBGV tool
2734

28-
# # install nanoFramework VS extension
29-
# - task: PowerShell@2
30-
# inputs:
31-
# targetType: 'inline'
32-
# script: 'Install-Module VSSetup -Scope CurrentUser -AcceptLicense -Force'
33-
# errorActionPreference: 'stop'
35+
- script: nbgv cloud -p "source"
36+
displayName: Set build number
37+
condition: ne(variables['system.pullrequest.isfork'], true)
3438

3539
# install nanoFramework VS extension
3640
- task: PowerShell@2
3741
inputs:
3842
filePath: 'install-nf-vs-extension.ps1'
3943
errorActionPreference: 'stop'
4044

45+
# # Batch Script
46+
# - task: BatchScript@1
47+
# inputs:
48+
# filename: '$(INSTALLER_PATH)'
49+
4150
# # Run a command line script using cmd.exe on Windows and bash on macOS and Linux.
4251
# - task: CmdLine@2
4352
# inputs:
@@ -51,17 +60,30 @@ steps:
5160
platform: '$(buildPlatform)'
5261
configuration: '$(buildConfiguration)'
5362

54-
- task: VSTest@2
63+
# we don't have tests (yet)
64+
# - task: VSTest@2
65+
# inputs:
66+
# platform: '$(buildPlatform)'
67+
# configuration: '$(buildConfiguration)'
68+
69+
- task: CopyFiles@1
5570
inputs:
56-
platform: '$(buildPlatform)'
57-
configuration: '$(buildConfiguration)'
71+
sourceFolder: $(System.DefaultWorkingDirectory)
72+
Contents: |
73+
**source\Nuget.*\*.nupkg
74+
TargetFolder: $(Build.ArtifactStagingDirectory)/deployables
75+
flattenFolders: true
76+
displayName: Collecting deployable artifacts
5877

5978
- task: PublishBuildArtifacts@1
79+
inputs:
80+
PathtoPublish: $(Build.ArtifactStagingDirectory)/deployables
81+
ArtifactName: deployables
82+
ArtifactType: Container
83+
displayName: Publish deployables artifacts
6084

6185
- task: NuGetCommand@2
6286
inputs:
6387
command: push
6488
nuGetFeedType: external
6589
publishFeedCredentials: 'MyGet'
66-
versioningScheme: byEnvVar
67-
versionEnvVar: Version

commit-assemblyinfo-changes.ps1

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
# Copyright (c) 2018 The nanoFramework project contributors
22
# See LICENSE file in the project root for full license information.
33

4-
# skip updating assembly info changes if build is a pull-request or not a tag (can't commit when repo is in a tag)
5-
if ($env:appveyor_pull_request_number -or $env:APPVEYOR_REPO_TAG -eq "true")
6-
{
7-
'Skip committing assembly info changes...' | Write-Host -ForegroundColor White
8-
}
9-
else
10-
{
11-
# updated assembly info files
12-
git add "source\nanoFramework.Networking.Sntp\Properties\AssemblyInfo.cs"
13-
git commit -m "Update assembly info file for v$env:GitVersion_NuGetVersionV2" -m"[version update]"
14-
git push origin --porcelain -q > $null
15-
16-
'Updated assembly info...' | Write-Host -ForegroundColor White -NoNewline
17-
'OK' | Write-Host -ForegroundColor Green
18-
}
19-
204
# update assembly info in nf-interpreter if this is tag
215
if ($env:APPVEYOR_REPO_TAG -eq "true")
226
{
@@ -27,13 +11,13 @@ if ($env:APPVEYOR_REPO_TAG -eq "true")
2711
cd nf-interpreter > $null
2812

2913
# new branch name
30-
$newBranch = "$env:APPVEYOR_REPO_BRANCH-nfbot/update-version/nanoFramework.Networking.Sntp/$env:GitVersion_NuGetVersionV2"
14+
$newBranch = "$env:APPVEYOR_REPO_BRANCH-nfbot/update-version/nanoFramework.Networking.Sntp/$env:NBGV_NuGetPackageVersion"
3115

3216
# create branch to perform updates
3317
git checkout -b "$newBranch" develop -q
3418

3519
# replace version in assembly declaration
36-
$newVersion = $env:GitVersion_AssemblySemFileVer -replace "\." , ", "
20+
$newVersion = $env:NBGV_GitBuildVersion -replace "\." , ", "
3721
$newVersion = "{ $newVersion }"
3822

3923
$versionRegex = "\{\s*\d+\,\s*\d+\,\s*\d+\,\s*\d+\s*}"
@@ -56,7 +40,7 @@ if ($env:APPVEYOR_REPO_TAG -eq "true")
5640
}
5741
else
5842
{
59-
$commitMessage = "Update nanoFramework.Networking.Sntp version to $env:GitVersion_NuGetVersionV2"
43+
$commitMessage = "Update nanoFramework.Networking.Sntp version to $env:NBGV_NuGetPackageVersion"
6044

6145
# commit changes
6246
git add -A 2>&1

generate-change-log.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ else
1414
if ($env:APPVEYOR_REPO_BRANCH -eq "master" -or $env:APPVEYOR_REPO_BRANCH -match "^release*")
1515
{
1616
# generate change log including future version
17-
bundle exec github_changelog_generator --token $env:GitHubToken --future-release "v$env:GitVersion_MajorMinorPatch"
17+
bundle exec github_changelog_generator --token $env:GitHubToken --future-release "v$env:NBGV_GitBuildVersion"
1818
}
1919
else
2020
{
@@ -25,7 +25,7 @@ else
2525

2626
# updated changelog and the updated assembly info files
2727
git add CHANGELOG.md
28-
git commit -m "Update CHANGELOG for v$env:GitVersion_NuGetVersionV2"
28+
git commit -m "Update CHANGELOG for v$env:NBGV_NuGetPackageVersion"
2929
# need to wrap the git command bellow so it doesn't throw an error because of redirecting the output to stderr
3030
git push origin --porcelain | Write-Host
3131
}

install-nf-vs-extension.ps1

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
# | Select-VSSetupInstance `
1818
# | Select-Object -ExpandProperty InstallationPath
1919

20-
# # extension path
21-
# $vsixPath = Join-Path $env:Agent_TempDirectory "nanoFramework.Tools.VS2017.Extension.vsix"
20+
# extension path
21+
$vsixPath = Join-Path $env:Agent_TempDirectory "nanoFramework.Tools.VS2017.Extension.vsix"
22+
# installer path
23+
$INSTALLER_PATH = Join-Path $env:Agent_TempDirectory "install-vsix.cmd"
24+
Write-Host ("##vso[task.setvariable variable=INSTALLER_PATH;]$INSTALLER_PATH")
2225

2326
# "Downloading extension from marketplace..." | Write-Host -ForegroundColor White
2427

@@ -40,33 +43,23 @@ $FilePath = "${env:Temp}\$Name"
4043

4144
Invoke-WebRequest -Uri $Url -OutFile $FilePath
4245

43-
$ArgumentList = ('/quiet', $FilePath)
46+
# $ArgumentList = ('/quiet /a', $FilePath)
4447

48+
# install on normal process
4549
Write-Host "Starting Install $Name..."
46-
$process = Start-Process -FilePath 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VSIXInstaller.exe' -ArgumentList $ArgumentList -Wait -PassThru -NoNewWindow
47-
$exitCode = $process.ExitCode
48-
49-
if ($exitCode -eq 0 -or $exitCode -eq 3010)
50-
{
51-
Write-Host -Object 'Installation successful'
52-
return $exitCode
53-
}
54-
else
55-
{
56-
Write-Host -Object "Non zero exit code returned by the installation process : $exitCode."
57-
return $exitCode
58-
}
59-
60-
# install on process with timeout
50+
Start-Process -FilePath 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VSIXInstaller.exe' -ArgumentList " /skuName:Enterprise /skuVersion:15.0 /quiet /a $FilePath" -Wait -PassThru
51+
52+
# # install on process with timeout
6153
# Write-Host "Starting Install $Name..."
6254

63-
# $proc = Start-Process -FilePath 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VSIXInstaller.exe' -ArgumentList $ArgumentList -Wait -PassThru
55+
# $proc = Start-Process -FilePath 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VSIXInstaller.exe' -ArgumentList "/q /a $FilePath" -Wait -PassThru
6456

6557
# # keep track of timeout event
6658
# $timeouted = $null # reset any previously set timeout
6759

6860
# # wait up to 4 minutes (4 * 60 = 240 seconds) for normal termination
69-
# $proc | Wait-Process -Timeout 240 -ErrorAction SilentlyContinue -ErrorVariable timeouted
61+
# Wait-Process -Name "VSIXInstaller" -Timeout 240 -ErrorAction SilentlyContinue -ErrorVariable $timeouted
62+
# # $proc | Wait-Process -Timeout 240 -ErrorAction SilentlyContinue -ErrorVariable timeouted
7063

7164
# if ($timeouted)
7265
# {
@@ -85,6 +78,9 @@ else
8578
# ("`"$vsInstallPath\Common7\IDE\VSIXInstaller.exe`" /q $vsixPath" | Out-File $installScript -Encoding ASCII)
8679

8780
# # "`"$vsInstallPath\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
81+
# "`"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VSIXInstaller.exe`" /skuName:Enterprise /skuVersion:15.0 /q /a `"$vsixPath`"" | out-file $INSTALLER_PATH -Encoding ASCII
82+
"`"$vsInstallPath\Common7\IDE\VSIXInstaller.exe`" /skuName:Enterprise /skuVersion:15.0 /q `"$vsixPath`"" | out-file $INSTALLER_PATH -Encoding ASCII
83+
8884
# Start-Process -FilePath "$vsInstallPath\Common7\IDE\VSIXInstaller.exe" -ArgumentList "/q $extension" -Wait -PassThru
8985

9086
# 'Installing nanoFramework VS extension ...' | Write-Host -ForegroundColor White -NoNewline

source/Nuget.nanoFramework.Networking.Sntp.DELIVERABLES/Nuget.nanoFramework.Networking.Sntp.DELIVERABLES.nuproj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
<Platform>AnyCPU</Platform>
1111
</ProjectConfiguration>
1212
</ItemGroup>
13-
<PropertyGroup>
14-
<GitVersion_NuGetVersionV2 Condition=" '$(GitVersion_NuGetVersionV2)' == '' ">1.0.0-preview001</GitVersion_NuGetVersionV2>
15-
</PropertyGroup>
1613
<ItemGroup>
1714
<Folder Include="content\" />
1815
</ItemGroup>
@@ -44,13 +41,21 @@
4441
<PropertyGroup Label="Globals">
4542
<ProjectGuid>03FE7E57-992E-421E-A1A4-13EAEE114254</ProjectGuid>
4643
</PropertyGroup>
44+
<Target Name="GetNuPkgVersion" DependsOnTargets="GetBuildVersion">
45+
<PropertyGroup>
46+
<Version>$(NuGetPackageVersion)</Version>
47+
</PropertyGroup>
48+
</Target>
4749
<PropertyGroup>
4850
<NuProjPath>..\packages\NuProj.0.20.4-beta\tools\</NuProjPath>
4951
</PropertyGroup>
52+
<ImportGroup Label="ExtensionTargets">
53+
<Import Project="..\..\packages\Nerdbank.GitVersioning.2.2.13\build\NerdBank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.2.13\build\NerdBank.GitVersioning.targets')" />
54+
</ImportGroup>
5055
<Import Project="$(NuProjPath)\NuProj.props" Condition="Exists('$(NuProjPath)\NuProj.props')" />
5156
<PropertyGroup Label="Configuration">
5257
<Id>nanoFramework.Networking.Sntp.DELIVERABLES</Id>
53-
<Version>$(GitVersion_NuGetVersionV2)</Version>
58+
<Version>1.0.0</Version>
5459
<Title>nanoFramework.Networking.Sntp.DELIVERABLES</Title>
5560
<Authors>nanoFramework project contributors</Authors>
5661
<Owners>nanoFramework project contributors</Owners>

source/Nuget.nanoFramework.Networking.Sntp/Nuget.nanoFramework.Networking.Sntp.nuproj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
<Platform>AnyCPU</Platform>
1111
</ProjectConfiguration>
1212
</ItemGroup>
13-
<PropertyGroup>
14-
<GitVersion_NuGetVersionV2 Condition=" '$(GitVersion_NuGetVersionV2)' == '' ">1.0.0-preview001</GitVersion_NuGetVersionV2>
15-
</PropertyGroup>
1613
<ItemGroup>
1714
<Content Include="..\nanoFramework.Networking.Sntp\bin\$(Configuration)\nanoFramework.Networking.Sntp.dll">
1815
<Link>lib\nanoFramework.Networking.Sntp.dll</Link>
@@ -41,13 +38,21 @@
4138
<PropertyGroup Label="Globals">
4239
<ProjectGuid>6CC7C231-8DEA-4227-9577-DD427EC45562</ProjectGuid>
4340
</PropertyGroup>
41+
<Target Name="GetNuPkgVersion" DependsOnTargets="GetBuildVersion">
42+
<PropertyGroup>
43+
<Version>$(NuGetPackageVersion)</Version>
44+
</PropertyGroup>
45+
</Target>
4446
<PropertyGroup>
4547
<NuProjPath>..\packages\NuProj.0.20.4-beta\tools\</NuProjPath>
4648
</PropertyGroup>
49+
<ImportGroup Label="ExtensionTargets">
50+
<Import Project="..\..\packages\Nerdbank.GitVersioning.2.2.13\build\NerdBank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.2.13\build\NerdBank.GitVersioning.targets')" />
51+
</ImportGroup>
4752
<Import Project="$(NuProjPath)\NuProj.props" Condition="Exists('$(NuProjPath)\NuProj.props')" />
4853
<PropertyGroup Label="Configuration">
4954
<Id>nanoFramework.Networking.Sntp</Id>
50-
<Version>$(GitVersion_NuGetVersionV2)</Version>
55+
<Version>1.0.0</Version>
5156
<Title>nanoFramework.Networking.Sntp</Title>
5257
<Authors>nanoFramework project contributors</Authors>
5358
<Owners>nanoFramework project contributors</Owners>

0 commit comments

Comments
 (0)