Skip to content

Commit 348b495

Browse files
authored
Use release binaries for bumping version (#12624)
1 parent 9335d18 commit 348b495

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tools/RunVersionController.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ switch ($PSCmdlet.ParameterSetName)
219219
$ModuleName = $JsonFile.Replace('Microsoft.Azure.PowerShell.Cmdlets.', '').Replace('.dll.json', '')
220220
if (!$ExpectJsonHashSet.Contains($JsonFile))
221221
{
222-
Write-Host "Module ${ModuleName} is not GA yet. Remove the json file: ${JsonFile}." -ForegroundColor Red
223-
rm $(Join-Path -Path "$PSScriptRoot\Tools.Common\SerializedCmdlets" -ChildPath $JsonFile)
222+
Write-Warning "Module ${ModuleName} is not GA yet. The json file: ${JsonFile} is for reference"
223+
# rm $(Join-Path -Path "$PSScriptRoot\Tools.Common\SerializedCmdlets" -ChildPath $JsonFile)
224224
}
225225
}
226226
try

tools/VersionController/Models/VersionFileHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public VersionFileHelper(string rootDirectory, string outputModuleManifestPath,
1616
OutputModuleManifestPath = outputModuleManifestPath;
1717
ProjectModuleManifestPath = projectModuleManifestPath;
1818

19-
_outputDirectories = new List<string>{ DebugDirectory };
19+
_outputDirectories = new List<string>{ ReleaseDirectory };
2020

2121
_projectDirectories = new List<string>{ Path.Combine(RootDirectory, @"src") };
2222
}
@@ -27,7 +27,7 @@ public VersionFileHelper(string rootDirectory, string outputModuleManifestPath,
2727

2828
public string PackageDirectory => Path.Combine(RootDirectory, @"artifacts");
2929

30-
public string DebugDirectory => Path.Combine(PackageDirectory, @"Debug");
30+
public string ReleaseDirectory => Path.Combine(PackageDirectory, @"Release");
3131

3232
public string ArtifactsVersionControllerDirectory => Path.Combine(PackageDirectory, @"VersionController");
3333

tools/VersionController/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static void Main(string[] args)
3838

3939
_rootDirectory = Directory.GetParent(artifactsDirectory).FullName;
4040
_projectDirectories = new List<string>{ Path.Combine(_rootDirectory, @"src\") }.Where((d) => Directory.Exists(d)).ToList();
41-
_outputDirectories = new List<string>{ Path.Combine(_rootDirectory, @"artifacts\Debug\") }.Where((d) => Directory.Exists(d)).ToList();
41+
_outputDirectories = new List<string>{ Path.Combine(_rootDirectory, @"artifacts\Release\") }.Where((d) => Directory.Exists(d)).ToList();
4242

4343
var exceptionsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Exceptions");
4444
if (args != null && args.Length > 0)

0 commit comments

Comments
 (0)