-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7304c07
commit 49119e9
Showing
5 changed files
with
88 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.5.002.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "faas-metrics", "src\faas-metrics.csproj", "{FDCFBC51-D7A7-4D1A-9FBE-9626D034E822}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{FDCFBC51-D7A7-4D1A-9FBE-9626D034E822}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{FDCFBC51-D7A7-4D1A-9FBE-9626D034E822}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{FDCFBC51-D7A7-4D1A-9FBE-9626D034E822}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{FDCFBC51-D7A7-4D1A-9FBE-9626D034E822}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {A5213363-8D95-455E-BCDC-594F3DB7B6A0} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Reflection; | ||
|
||
namespace System; | ||
|
||
internal static class AppVersion | ||
{ | ||
private static readonly Lazy<string> lazyValue = new( () => | ||
{ | ||
var assembly = Assembly.GetExecutingAssembly(); | ||
var value = assembly.GetName().Version?.ToString( 3 ) ?? "0.0.0"; | ||
var infoVerAttr = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>(); | ||
if ( infoVerAttr != null ) | ||
{ | ||
return infoVerAttr.InformationalVersion; | ||
} | ||
return value; | ||
} ); | ||
|
||
public static string Value => lazyValue.Value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters