mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
support building msbuild sdk style projects (#17675)
* support building msbuild sdk style projects * fixes after merge
This commit is contained in:
@@ -80,10 +80,14 @@ export class BuildHelper {
|
||||
return this.extensionBuildDir;
|
||||
}
|
||||
|
||||
public constructBuildArguments(projectPath: string, buildDirPath: string): string {
|
||||
public constructBuildArguments(projectPath: string, buildDirPath: string, isNetCoreSdkStyleProject: boolean): string {
|
||||
projectPath = utils.getQuotedPath(projectPath);
|
||||
buildDirPath = utils.getQuotedPath(buildDirPath);
|
||||
return ` build ${projectPath} /p:NetCoreBuild=true /p:NETCoreTargetsPath=${buildDirPath}`;
|
||||
if (isNetCoreSdkStyleProject) {
|
||||
return ` build ${projectPath} /p:NetCoreBuild=true`;
|
||||
} else {
|
||||
return ` build ${projectPath} /p:NetCoreBuild=true /p:NETCoreTargetsPath=${buildDirPath}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user