6 references to GetDirectivePreamble
aspire (6)
Projects\FallbackProjectParser.cs (3)
29=> PackageDirectiveRegex().Matches(GetDirectivePreamble(content)).Any(match => 33=> SdkDirectiveRegex().IsMatch(GetDirectivePreamble(content)); 162var fileContent = GetDirectivePreamble(File.ReadAllText(projectFile.FullName));
Projects\ProjectUpdater.cs (3)
1307var match = SdkDirectiveRegex().Match(FallbackProjectParser.GetDirectivePreamble(fileContent)); 1346return LegacyAppHostPackageDirectiveRegex().IsMatch(FallbackProjectParser.GetDirectivePreamble(fileContent)); 1369var matches = LegacyAppHostPackageDirectiveRegex().Matches(FallbackProjectParser.GetDirectivePreamble(content));