We completed the opening of this port because we could not find another solution. For reference, here we run the script (our Deploy.ps1 script, executed by NuGet for each deployment).
# SOURCE: http://danpiessens.com/blog/2014/06/10/deploying-databases-with-octopus-deploy-part-2/ # Get the exe name based on the directory $contentPath = (Join-Path $OctopusOriginalPackageDirectoryPath "content") $fullPath = (Join-Path $OctopusOriginalPackageDirectoryPath "content\migrate.exe") Write-Host "Content Path:" $contentPath Write-Host "Migrate Path:" $fullPath cd $contentPath write-host "Working Dir: "$(get-location) # Run the migration utility & "$fullPath" MyApp.Data.dll /startUpConfigurationFile=MyApp.Web.dll.config /connectionString=$ApplicationConnectionString /connectionProviderName="System.Data.SqlClient" /verbose | Write-Host
source share