Skip to content

Commit

Permalink
Dump Proxy Version on every command (#5715)
Browse files Browse the repository at this point in the history
* Dump the proxy version everywhere.
  • Loading branch information
scbedd authored Mar 15, 2023
1 parent 847f49e commit 787a6cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ private static async Task Run(object commandObj)
new GitProcessHandler().VerifyGitMinVersion();
DefaultOptions defaultOptions = (DefaultOptions)commandObj;

var assembly = System.Reflection.Assembly.GetExecutingAssembly();
var semanticVersion = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
System.Console.WriteLine($"Running proxy version is Azure.Sdk.Tools.TestProxy {semanticVersion}");

TargetLocation = resolveRepoLocation(defaultOptions.StorageLocation);
Resolver = new StoreResolver();
DefaultStore = Resolver.ResolveStore(defaultOptions.StoragePlugin ?? "GitStore");
Expand Down

0 comments on commit 787a6cc

Please sign in to comment.