diff --git a/extensions/sql-database-projects/src/common/constants.ts b/extensions/sql-database-projects/src/common/constants.ts index 7b565a687b..b3c1428d98 100644 --- a/extensions/sql-database-projects/src/common/constants.ts +++ b/extensions/sql-database-projects/src/common/constants.ts @@ -282,6 +282,7 @@ export const databaseNameServerNameVariableRequired = localize('databaseNameServ export const otherServer = 'OtherServer'; export const otherSeverVariable = 'OtherServer'; export const databaseProject = localize('databaseProject', "Database project"); +export const dacpacMustBeOnSameDrive = localize('dacpacNotOnSameDrive', "Dacpac references need to be located on the same drive as the project file."); export const dacpacNotOnSameDrive = (projectLocation: string): string => { return localize('dacpacNotOnSameDrive', "Dacpac references need to be located on the same drive as the project file. The project file is located at {0}", projectLocation); }; export const referenceType = localize('referenceType', "Reference type"); diff --git a/extensions/sql-database-projects/src/dialogs/addDatabaseReferenceQuickpick.ts b/extensions/sql-database-projects/src/dialogs/addDatabaseReferenceQuickpick.ts index 7d7d4a466e..b90accb48f 100644 --- a/extensions/sql-database-projects/src/dialogs/addDatabaseReferenceQuickpick.ts +++ b/extensions/sql-database-projects/src/dialogs/addDatabaseReferenceQuickpick.ts @@ -46,7 +46,7 @@ export async function addDatabaseReferenceQuickpick(project: Project): Promise { +async function addDacpacReference(project: Project): Promise { // (steps continued from addDatabaseReferenceQuickpick) // 2. Prompt for location const location = await promptLocation(); @@ -141,17 +141,34 @@ async function addDacpacReference(): Promise