Skip to content

Commit

Permalink
Fix build task
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju committed Dec 31, 2023
1 parent 9f472cc commit fdc1181
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@ BuildWorkflow:

Check_SqlServer_Availability: |
{
try
{
[Microsoft.SqlServer.Management.Smo.Server] -as [Type] | Out-Null
}
catch
{
throw 'The SqlServer types are not available. Please install the SqlServer module or load SMO stubs types and try again.'
}
Import-Module -Name SqlServer -ErrorAction 'SilentlyContinue'
try
{
[Microsoft.SqlServer.Management.Smo.Server] -as [Type] | Out-Null
}
catch
{
throw 'The SqlServer types are not available. Please install the SqlServer module or load SMO stubs types and try again.'
}
}
Package_WikContent: |
Expand Down

0 comments on commit fdc1181

Please sign in to comment.