mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
fix SDK style projects not being able to find system dacpacs (#18218)
* fix SDK style projects not being able to find system dacpacs * fix tests
This commit is contained in:
@@ -83,8 +83,12 @@ export class BuildHelper {
|
||||
public constructBuildArguments(projectPath: string, buildDirPath: string, isSdkStyleProject: boolean): string {
|
||||
projectPath = utils.getQuotedPath(projectPath);
|
||||
buildDirPath = utils.getQuotedPath(buildDirPath);
|
||||
|
||||
// Right now SystemDacpacsLocation and NETCoreTargetsPath get set to the same thing, but separating them out for if we move
|
||||
// the system dacpacs somewhere else and also so that the variable name makes more sense if building from the commandline,
|
||||
// since SDK style projects don't to specify the targets path, just where the system dacpacs are
|
||||
if (isSdkStyleProject) {
|
||||
return ` build ${projectPath} /p:NetCoreBuild=true`;
|
||||
return ` build ${projectPath} /p:NetCoreBuild=true /p:SystemDacpacsLocation=${buildDirPath}`;
|
||||
} else {
|
||||
return ` build ${projectPath} /p:NetCoreBuild=true /p:NETCoreTargetsPath=${buildDirPath}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user