@@ -53,29 +53,24 @@ $root = Resolve-Path "$PSScriptRoot\.."
53
53
$paramSet = $PsCmdlet.ParameterSetName
54
54
$projFile = " $root \UnitsNet\UnitsNet.csproj"
55
55
$numberExtensionsProjFile = " $root \UnitsNet.NumberExtensions\UnitsNet.NumberExtensions.csproj"
56
+ $nanoFrameworkNuspecGeneratorFile = " $root \CodeGen\Generators\NanoFrameworkGen\NuspecGenerator.cs"
56
57
$winrtAssemblyInfoFile = " $root \UnitsNet.WindowsRuntimeComponent\Properties\AssemblyInfo.cs"
57
58
$winrtNuspecFile = " $root \UnitsNet.WindowsRuntimeComponent\UnitsNet.WindowsRuntimeComponent.nuspec"
58
59
$versionFiles = @ ($projFile , $numberExtensionsProjFile , $winrtAssemblyInfoFile , $winrtNuspecFile )
59
60
60
61
# Use UnitsNet.Common.props version as base if bumping major/minor/patch
61
62
$newVersion = Get-NewProjectVersion $projFile $paramSet $setVersion $bumpVersion
62
63
63
- # # Update project files
64
+ # Update project files
64
65
Set-ProjectVersion $projFile $newVersion
65
66
Set-ProjectVersion $numberExtensionsProjFile $newVersion
66
67
67
- # # Update AssemblyInfo.cs files
68
+ # Update AssemblyInfo.cs files
68
69
Set-AssemblyInfoVersion $winrtAssemblyInfoFile $newVersion
69
70
70
- # # Update .nuspec files
71
+ # Update .nuspec files
71
72
Set-NuspecVersion $winrtNuspecFile $newVersion
72
-
73
- # # Update .nuspec files for nanoFramework
74
- Get-ChildItem - Path " $root \UnitsNet.NanoFramework\GeneratedCode" - Include ' *.nuspec' - Recurse |
75
- Foreach-object {
76
- Set-NuspecVersion $_.FullName $newVersion
77
- $versionFiles += $_.FullName
78
- }
73
+ Set-NuspecVersion $nanoFrameworkNuspecGeneratorFile $newVersion
79
74
80
75
# Git commit and tag
81
76
Invoke-CommitVersionBump @ (" UnitsNet" ) $versionFiles $newVersion
0 commit comments