Skip to content

Commit

Permalink
Updated to reflect the version number from Git in the local run of th…
Browse files Browse the repository at this point in the history
…e tool.
  • Loading branch information
MrHinsh committed Nov 8, 2023
1 parent 06bc3d1 commit e64db8e
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 2 deletions.
95 changes: 95 additions & 0 deletions docs/Reference/Generated/MigrationTools.Host.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/MigrationTools.Host/MigrationToolHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ public static IHostBuilder CreateDefaultBuilder(string[] args)
private static string GetVersionTextForLog()
{
Version runningVersion = DetectVersionService2.GetRunningVersion();
string textVersion = $"v" + ((runningVersion.Major > 1) ? runningVersion : "Local");
return textVersion;
string textVersion = ((runningVersion.Major > 1) ? "$v" + runningVersion : ThisAssembly.Git.BaseTag.Replace("v", "") + "-local");
return textVersion;
}

public static async Task RunMigrationTools(this IHostBuilder hostBuilder, string[] args)
Expand Down
4 changes: 4 additions & 0 deletions src/MigrationTools.Host/MigrationTools.Host.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="GitInfo" Version="3.3.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.ApplicationInsights.PerfCounterCollector" Version="2.21.0" />
<PackageReference Include="Microsoft.ApplicationInsights.TraceListener" Version="2.21.0" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.21.0" />
Expand Down

0 comments on commit e64db8e

Please sign in to comment.