Skip to content

Commit 51b090b

Browse files
committed
Revert back to updating nanoFramework nuspec files on version bump
Codegen would touch all .nuspec files, now the version is only changed when bumping the version.
1 parent be101cf commit 51b090b

File tree

109 files changed

+115
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+115
-108
lines changed

Build/set-version-UnitsNet.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,14 @@ Set-AssemblyInfoVersion $winrtAssemblyInfoFile $newVersion
7272

7373
# Update .nuspec files
7474
Set-NuspecVersion $winrtNuspecFile $newVersion
75+
76+
# Update codegen and .nuspec files for nanoFramework
7577
Set-NuspecVersion $nanoFrameworkNuspecGeneratorFile $newVersion
78+
Get-ChildItem -Path "$root\UnitsNet.NanoFramework\GeneratedCode" -Include '*.nuspec' -Recurse |
79+
Foreach-object {
80+
Set-NuspecVersion $_.FullName $newVersion
81+
$versionFiles += $_.FullName
82+
}
7683

7784
# Git commit and tag
7885
Invoke-CommitVersionBump @("UnitsNet") $newVersion

CodeGen/Generators/NanoFrameworkGen/NuspecGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using CodeGen.JsonTypes;
33

44
namespace CodeGen.Generators.NanoFrameworkGen

UnitsNet.NanoFramework/GeneratedCode/Acceleration/UnitsNet.NanoFramework.Acceleration.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet.nanoFramework.Acceleration</id>
5-
<version>updated_by_codegen</version>
5+
<version>4.95.0</version>
66
<title>Units.NET Acceleration - nanoFramework</title>
77
<authors>Andreas Gullberg Larsen,nanoFramework project contributors</authors>
88
<owners>UnitsNet</owners>

UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/UnitsNet.NanoFramework.AmountOfSubstance.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet.nanoFramework.AmountOfSubstance</id>
5-
<version>updated_by_codegen</version>
5+
<version>4.95.0</version>
66
<title>Units.NET AmountOfSubstance - nanoFramework</title>
77
<authors>Andreas Gullberg Larsen,nanoFramework project contributors</authors>
88
<owners>UnitsNet</owners>

UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/UnitsNet.NanoFramework.AmplitudeRatio.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet.nanoFramework.AmplitudeRatio</id>
5-
<version>updated_by_codegen</version>
5+
<version>4.95.0</version>
66
<title>Units.NET AmplitudeRatio - nanoFramework</title>
77
<authors>Andreas Gullberg Larsen,nanoFramework project contributors</authors>
88
<owners>UnitsNet</owners>

UnitsNet.NanoFramework/GeneratedCode/Angle/UnitsNet.NanoFramework.Angle.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet.nanoFramework.Angle</id>
5-
<version>updated_by_codegen</version>
5+
<version>4.95.0</version>
66
<title>Units.NET Angle - nanoFramework</title>
77
<authors>Andreas Gullberg Larsen,nanoFramework project contributors</authors>
88
<owners>UnitsNet</owners>

UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/UnitsNet.NanoFramework.ApparentEnergy.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet.nanoFramework.ApparentEnergy</id>
5-
<version>updated_by_codegen</version>
5+
<version>4.95.0</version>
66
<title>Units.NET ApparentEnergy - nanoFramework</title>
77
<authors>Andreas Gullberg Larsen,nanoFramework project contributors</authors>
88
<owners>UnitsNet</owners>

UnitsNet.NanoFramework/GeneratedCode/ApparentPower/UnitsNet.NanoFramework.ApparentPower.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet.nanoFramework.ApparentPower</id>
5-
<version>updated_by_codegen</version>
5+
<version>4.95.0</version>
66
<title>Units.NET ApparentPower - nanoFramework</title>
77
<authors>Andreas Gullberg Larsen,nanoFramework project contributors</authors>
88
<owners>UnitsNet</owners>

UnitsNet.NanoFramework/GeneratedCode/Area/UnitsNet.NanoFramework.Area.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet.nanoFramework.Area</id>
5-
<version>updated_by_codegen</version>
5+
<version>4.95.0</version>
66
<title>Units.NET Area - nanoFramework</title>
77
<authors>Andreas Gullberg Larsen,nanoFramework project contributors</authors>
88
<owners>UnitsNet</owners>

UnitsNet.NanoFramework/GeneratedCode/AreaDensity/UnitsNet.NanoFramework.AreaDensity.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>UnitsNet.nanoFramework.AreaDensity</id>
5-
<version>updated_by_codegen</version>
5+
<version>4.95.0</version>
66
<title>Units.NET AreaDensity - nanoFramework</title>
77
<authors>Andreas Gullberg Larsen,nanoFramework project contributors</authors>
88
<owners>UnitsNet</owners>

0 commit comments

Comments
 (0)