protected void DeployDatabase() { var dacPacPath = Path.Combine(AppContext.BaseDirectory, @"..\..\..\..\..", FixtureHelper.ComplianceDacPac); var fileInfo = new FileInfo(dacPacPath); if (!fileInfo.Exists) { throw new FileNotFoundException("Couldn't find dacpac file. Please make sure the database project has been built."); } var args = $"/Action:Publish /SourceFile:\"{fileInfo.FullName}\" /TargetConnectionString:\"{connString}"; FixtureHelper.RunExternalProcess(FindSqlPackage(), args); }