mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 17:22:42 -05:00
support building msbuild sdk style projects (#17675)
* support building msbuild sdk style projects * fixes after merge
This commit is contained in:
@@ -14,7 +14,7 @@ describe('BuildHelper: Build Helper tests', function (): void {
|
||||
it('Should get correct build arguments', function (): void {
|
||||
// update settings and validate
|
||||
const buildHelper = new BuildHelper();
|
||||
const resultArg = buildHelper.constructBuildArguments('dummy\\project path\\more space in path', 'dummy\\dll path');
|
||||
const resultArg = buildHelper.constructBuildArguments('dummy\\project path\\more space in path', 'dummy\\dll path', false);
|
||||
|
||||
if (os.platform() === 'win32') {
|
||||
should(resultArg).equal(' build "dummy\\\\project path\\\\more space in path" /p:NetCoreBuild=true /p:NETCoreTargetsPath="dummy\\\\dll path"');
|
||||
@@ -24,6 +24,19 @@ describe('BuildHelper: Build Helper tests', function (): void {
|
||||
}
|
||||
});
|
||||
|
||||
it('Should get correct build arguments for sdk style projects', function (): void {
|
||||
// update settings and validate
|
||||
const buildHelper = new BuildHelper();
|
||||
const resultArg = buildHelper.constructBuildArguments('dummy\\project path\\more space in path', 'dummy\\dll path', true);
|
||||
|
||||
if (os.platform() === 'win32') {
|
||||
should(resultArg).equal(' build "dummy\\\\project path\\\\more space in path" /p:NetCoreBuild=true');
|
||||
}
|
||||
else {
|
||||
should(resultArg).equal(' build "dummy/project path/more space in path" /p:NetCoreBuild=true');
|
||||
}
|
||||
});
|
||||
|
||||
it('Should get correct build folder', async function (): Promise<void> {
|
||||
const buildHelper = new BuildHelper();
|
||||
await buildHelper.createBuildDirFolder();
|
||||
|
||||
Reference in New Issue
Block a user