Skip to content

Commit

Permalink
Split the informational version on both SemVer2 separators when calcu…
Browse files Browse the repository at this point in the history
…lating TFM (#91758)
  • Loading branch information
jkoritzinsky authored Sep 8, 2023
1 parent 7b06a5c commit 773c180
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public static class AnalyzerConfigOptionsExtensions
// Parse from the informational version as that is the only version that always matches the TFM version
// even in debug builds.
private static readonly Version ThisAssemblyVersion = Version.Parse(
typeof(IncrementalGeneratorInitializationContextExtensions).Assembly
.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion.Split('-')[0]);
typeof(AnalyzerConfigOptionsExtensions).Assembly
.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion.Split('-', '+')[0]);

public static TargetFrameworkSettings GetTargetFrameworkSettings(this AnalyzerConfigOptions options)
{
Expand Down

0 comments on commit 773c180

Please sign in to comment.