Skip to content

Commit ab170f3

Browse files
committed
Fixes to use Path.Combine
1 parent 8958b1c commit ab170f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ServiceManagement/Services/Commands/Websites/PublishAzureWebsiteProject.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ public override void ExecuteCmdlet()
8989

9090
if (!File.Exists(fullSetParametersFile))
9191
{
92-
if (File.Exists(Path.GetDirectoryName(fullPackage) + "\\" + fullSetParametersFile))
92+
if (File.Exists(Path.Combine(Path.GetDirectoryName(fullPackage), fullSetParametersFile)))
9393
{
94-
WriteVerbose("Setting path for Parameters file to local one to package: " + Path.GetDirectoryName(fullPackage) + "\\" + fullSetParametersFile);
95-
fullSetParametersFile = Path.GetDirectoryName(fullPackage) + "\\" + fullSetParametersFile;
94+
WriteVerbose("Setting path for Parameters file to local one to package: " + Path.Combine(Path.GetDirectoryName(fullPackage), fullSetParametersFile));
95+
fullSetParametersFile = Path.Combine(Path.GetDirectoryName(fullPackage),fullSetParametersFile);
9696
}
9797
}
9898

0 commit comments

Comments
 (0)