Skip to content

Commit

Permalink
Remove CheckAndReturnRazorSourceGeneratorPath
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianAmbrosini committed May 7, 2024
1 parent c9c3920 commit 8eb8ef3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ public static class SourceGeneratorProvider

public static AnalyzerFileReference[] SourceGenerators { get; } =
[
new(CheckAndReturnRazorSourceGeneratorPath(), new AssemblyLoader())
new(RazorSourceGeneratorPath, new AssemblyLoader())
];

public static string CheckAndReturnRazorSourceGeneratorPath() =>
File.Exists(RazorSourceGeneratorPath) ? RazorSourceGeneratorPath : throw new FileNotFoundException($"Razor sourcegenerator not found: {RazorSourceGeneratorPath}");

public static string LatestSdkFolder()
{
var objectAssembly = typeof(object).Assembly;
Expand Down

0 comments on commit 8eb8ef3

Please sign in to comment.