Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions public/Publish-DbaDacPackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,16 @@ function Publish-DbaDacPackage {

return $instance.ToString().Replace('\', '-').Replace('(', '').Replace(')', '')
}

if ($DacFxPath) {
try {
Add-Type -Path $DacFxPath
Write-Message -Level Verbose -Message "Dac Fx loaded from [$DacFxPath]."
} catch {
Stop-Function -Message "Dac Fx could not be loaded from [$DacFxPath]." -ErrorRecord $_
return
}
}
}

process {
Expand Down