Feature/outer paths for project (#11445)

* allow relative paths in project file outside of project folder

* Adding some tests

* Adding error string to loc strings

* Fixed test

* fix error message

* PR comments and some more fixes
This commit is contained in:
Udeesha Gautam
2020-07-22 19:28:03 -07:00
committed by GitHub
parent efc8182954
commit 196b3752a9
13 changed files with 112 additions and 36 deletions

View File

@@ -84,8 +84,8 @@ export class BuildHelper {
}
public constructBuildArguments(projectPath: string, buildDirPath: string): string {
projectPath = utils.getSafePath(projectPath);
buildDirPath = utils.getSafePath(buildDirPath);
projectPath = utils.getQuotedPath(projectPath);
buildDirPath = utils.getQuotedPath(buildDirPath);
return ` build ${projectPath} /p:NetCoreBuild=true /p:NETCoreTargetsPath=${buildDirPath}`;
}
}

View File

@@ -100,7 +100,7 @@ export class NetCoreTool {
throw new Error(NetCoreInstallationConfirmation);
}
const dotnetPath = utils.getSafePath(path.join(this.netcoreInstallLocation, dotnet));
const dotnetPath = utils.getQuotedPath(path.join(this.netcoreInstallLocation, dotnet));
const command = dotnetPath + ' ' + options.argument;
try {