Skip to content

Commit b123ec5

Browse files
committed
Default to the local package SetParameters.xml
1 parent 31796d0 commit b123ec5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ public override void ExecuteCmdlet()
8787
}
8888
}
8989

90+
if (!File.Exists(fullSetParametersFile))
91+
{
92+
if (File.Exists(Path.GetDirectoryName(fullPackage) + "\\" + fullSetParametersFile))
93+
{
94+
WriteVerbose("Setting path for Parameters file to local one to package: " + Path.GetDirectoryName(fullPackage) + "\\" + fullSetParametersFile);
95+
fullSetParametersFile = Path.GetDirectoryName(fullPackage) + "\\" + fullSetParametersFile;
96+
}
97+
}
98+
9099
// If tokens are passed in, update the parameters file if there is one
91100
if (Tokens != null && !string.IsNullOrEmpty(fullSetParametersFile))
92101
{

0 commit comments

Comments
 (0)