File tree Expand file tree Collapse file tree 1 file changed +22
-10
lines changed Expand file tree Collapse file tree 1 file changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -74,15 +74,7 @@ Function New-Release
74
74
Update-ReleaseNotesInModuleManifest $newVer $oldVer
75
75
76
76
# build the module
77
- pushd $solutionRoot
78
- remove-item out/ - recurse - force
79
- dotnet restore
80
- .\buildCoreClr.ps1 - Framework net451 - Configuration Release - Build
81
- .\buildCoreClr.ps1 - Framework net451 - Configuration PSV3Release - Build
82
- .\buildCoreClr.ps1 - Framework netstandard1.6 - Configuration Release - Build
83
- .\build.ps1 - BuildDocs
84
- popd
85
-
77
+ New-ReleaseBuild
86
78
}
87
79
88
80
function Get-VersionsFromChangeLog
@@ -94,6 +86,25 @@ function Get-VersionsFromChangeLog
94
86
$versions
95
87
}
96
88
89
+ function New-ReleaseBuild
90
+ {
91
+ $solutionPath = Get-SolutionPath
92
+ pushd $solutionPath
93
+ try
94
+ {
95
+ remove-item out/ - recurse - force
96
+ dotnet restore
97
+ .\buildCoreClr.ps1 - Framework net451 - Configuration Release - Build
98
+ .\buildCoreClr.ps1 - Framework net451 - Configuration PSV3Release - Build
99
+ .\buildCoreClr.ps1 - Framework netstandard1.6 - Configuration Release - Build
100
+ .\build.ps1 - BuildDocs
101
+ }
102
+ finally
103
+ {
104
+ popd
105
+ }
106
+ }
107
+
97
108
function Update-ReleaseNotesInModuleManifest
98
109
{
99
110
[CmdletBinding ()]
@@ -173,4 +184,5 @@ function Set-ContentUtf8NoBom {
173
184
[System.IO.File ]::WriteAllLines($path , $content , $utfNoBom )
174
185
}
175
186
176
- Export-ModuleMember - Function New-Release
187
+ Export-ModuleMember - Function New-Release
188
+ Export-ModuleMember - Function New-ReleaseBuild
You can’t perform that action at this time.
0 commit comments