Standardize slashes in sqlproj (#11174)

* standardize slashes that go in sqlproj

* update tests to not have os specific baselines

* fix test

* fix delete tests

* some cleanup
This commit is contained in:
Kim Santiago
2020-07-06 13:17:55 -07:00
committed by GitHub
parent b0cab3125e
commit b238819c89
10 changed files with 46 additions and 316 deletions

View File

@@ -100,6 +100,14 @@ export function getPlatformSafeFileEntryPath(filePath: string): string {
return parts.join('/');
}
/**
* Standardizes slashes to be "\\" for consistency between platforms and compatibility with SSDT
*/
export function convertSlashesForSqlProj(filePath: string): string {
const parts = filePath.split('/');
return parts.join('\\');
}
/**
* Read SQLCMD variables from xmlDoc and return them
* @param xmlDoc xml doc to read SQLCMD variables from. Format must be the same that sqlproj and publish profiles use