File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Extensions/Versioning/VersionDacpacTask/src Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -240,29 +240,27 @@ else {
240
240
}
241
241
Write-Verbose " Version: $NewVersion "
242
242
243
-
244
- $ToolPath = Get-Toolpath - ToolPath $ToolPath - VSVersion $VSVersion - SDKVersion $SDKVersion
245
-
246
-
243
+ Write-Host " Scanning for DACPAC files under $PATH ." - Verbose
247
244
$DacPacFiles = Get-ChildItem - Path $Path - Include * .dacpac - Exclude master.dacpac, msdb.dacpac - Recurse
248
245
Write-Host " Found $ ( $DacPacFiles.Count ) DACPAC files." - Verbose
249
246
250
247
if (($DacPacFiles.Count -gt 0 ) -and ([System.Convert ]::ToBoolean($SkipDacPac ) -eq $false )) {
248
+ Write-Host " Finding DACPAC Tools to process the $ ( $DacPacFiles.Count ) DACPAC files." - Verbose
249
+ $ToolPath = Get-Toolpath - ToolPath $ToolPath - VSVersion $VSVersion - SDKVersion $SDKVersion
250
+
251
251
Write-Host " Apply updated version number $NewVersion to each DACPAC file." - Verbose
252
-
253
252
Foreach ($DacPac in $DacPacFiles ) {
254
253
Update-DacpacVerion - Path $DacPac.FullName - VersionNumber ([System.Version ]::Parse($NewVersion )) - ToolPath $ToolPath
255
254
}
256
255
}
257
256
else {
258
- Write-Host " Found no DACPAC files, or SkipDacPac parameter is set. Checking for sqlproj files to version instead" - Verbose
257
+ Write-Host " Found no DACPAC files, or SkipDacPac parameter is set. Checking for .SQLPROJ files to version instead" - Verbose
259
258
$SqlProjFiles = Get-ChildItem - Path $Path - Include * .sqlproj - Recurse
260
259
261
260
if ($SqlProjFiles ) {
262
261
Write-Host " Found $ ( $SqlProjFiles.Count ) sqlproj files. Adding or updating DacVersion field." - Verbose
263
-
264
262
foreach ($SqlProj in $SqlProjFiles ) {
265
- Write-Host " Updating $ ( $SqlProj.Basename ) SQL Proj file."
263
+ Write-Host " Updating $ ( $SqlProj.Basename ) .SQLProj file."
266
264
Update-SqlProjVersion - Path $SqlProj.Fullname - VersionNumber ([System.Version ]::Parse($NewVersion )) - RegexPattern $VersionRegex
267
265
}
268
266
}
You can’t perform that action at this time.
0 commit comments