Add profile section in Publish project UI (#21906)

* Add profile section in Publish project UI

* Move publish profile row below Publish Target

* Add contract for savePublishProfie and SaveProfileAs button functionality

* Make the DacFx contract functional

* Send values from UI to DacFx service call

* Fix build error

* Address comment, remove print statements

* Address comments

* Set correct connection string
This commit is contained in:
Sakshi Sharma
2023-02-13 14:06:42 -08:00
committed by GitHub
parent 93f5581bc7
commit cb58286247
10 changed files with 126 additions and 23 deletions

View File

@@ -121,3 +121,11 @@ async function readConnectionString(xmlDoc: any): Promise<{ connectionId: string
server: server
};
}
/**
* saves publish settings to the specified profile file
*/
export async function savePublishProfile(profilePath: string, databaseName: string, connectionString: string, sqlCommandVariableValues?: Record<string, string>, deploymentOptions?: mssql.DeploymentOptions): Promise<void> {
const dacFxService = await utils.getDacFxService();
await dacFxService.savePublishProfile(profilePath, databaseName, connectionString, sqlCommandVariableValues, deploymentOptions);
}