This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string GetTargetSqlServerVersion(){ | |
var dte = (DTE)GetService(typeof(DTE)); | |
var project = dte.ActiveDocument.ProjectItem.ContainingProject; | |
return project.GetType().GetProperty("Globals").GetValue(project).GetType().GetProperty("Parent").GetValue(project.GetType().GetProperty("Globals").GetValue(project)).GetType().GetProperty("DatabaseSchemaProvider").GetValue(project.GetType().GetProperty("Globals").GetValue(project).GetType().GetProperty("Parent").GetValue(project.GetType().GetProperty("Globals").GetValue(project))).GetType().GetProperty("Platform").GetValue(project.GetType().GetProperty("Globals").GetValue(project).GetType().GetProperty("Parent").GetValue(project.GetType().GetProperty("Globals").GetValue(project)).GetType().GetProperty("DatabaseSchemaProvider").GetValue(project.GetType().GetProperty("Globals").GetValue(project).GetType().GetProperty("Parent").GetValue(project.GetType().GetProperty("Globals").GetValue(project)))) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET PATH=C:\Program Files (x86)\Microsoft SQL Server\120\DAC\bin;%PATH% | |
SET SourceDacpac=%1 | |
SET Server=%2 | |
SET Database=%3 | |
SET DBUser=%4 | |
SET DBPass=%5 | |
SET SqlDeployScript=%6 | |
SET Variables=%7 | |
SET PublishProfile=%8 |