|
8 | 8 | using System.Reflection;
|
9 | 9 | using System.Text.RegularExpressions;
|
10 | 10 | using Tools.Common.Helpers;
|
| 11 | +using Tools.Common.Issues; |
11 | 12 | using Tools.Common.Loaders;
|
12 | 13 | using Tools.Common.Loggers;
|
13 | 14 | using Tools.Common.Models;
|
@@ -255,6 +256,7 @@ public Version GetVersionBumpForCommonCode()
|
255 | 256 | /// <returns>Version enum representing the version bump to be applied.</returns>
|
256 | 257 | public Version GetVersionBumpUsingSerialized(bool serialize = true)
|
257 | 258 | {
|
| 259 | + Console.WriteLine("Comparing the cmdlet assumblies with metadata from JSON file..."); |
258 | 260 | var outputModuleManifestPath = _fileHelper.OutputModuleManifestPath;
|
259 | 261 | var outputModuleDirectory = _fileHelper.OutputModuleDirectory;
|
260 | 262 | var outputDirectories = _fileHelper.OutputDirectories;
|
@@ -311,6 +313,14 @@ public Version GetVersionBumpUsingSerialized(bool serialize = true)
|
311 | 313 | CheckBreakingChangesInModules(oldModuleMetadata, newModuleMetadata, issueLogger);
|
312 | 314 | if (issueLogger.Records.Any())
|
313 | 315 | {
|
| 316 | + var currentColor = Console.ForegroundColor; |
| 317 | + Console.ForegroundColor = ConsoleColor.Yellow; |
| 318 | + Console.WriteLine($"Detected below {issueLogger.Records.Count} breack change(s):"); |
| 319 | + foreach (IReportRecord record in issueLogger.Records) |
| 320 | + { |
| 321 | + Console.WriteLine(((BreakingChangeIssue)record).Target + " " + record.ProblemId + " " + record.Description); |
| 322 | + } |
| 323 | + Console.ForegroundColor = currentColor; |
314 | 324 | tempVersionBump = Version.MAJOR;
|
315 | 325 | }
|
316 | 326 | else if (!oldModuleMetadata.Equals(newModuleMetadata))
|
@@ -349,6 +359,7 @@ public Version GetVersionBumpUsingSerialized(bool serialize = true)
|
349 | 359 | /// <returns>Version enum representing the version bump to be applied.</returns>
|
350 | 360 | public Version GetVersionBumpUsingGallery()
|
351 | 361 | {
|
| 362 | + Console.WriteLine("Comparing the cmdlet assumblies with seemblies in the saved gallery folder..."); |
352 | 363 | var outputModuleManifestPath = _fileHelper.OutputModuleManifestPath;
|
353 | 364 | var outputModuleDirectory = _fileHelper.OutputModuleDirectory;
|
354 | 365 | var outputDirectories = _fileHelper.OutputDirectories;
|
|
0 commit comments