6 references to GetDirectivePreamble
aspire (6)
Projects\FallbackProjectParser.cs (3)
28=> PackageDirectiveRegex().Matches(GetDirectivePreamble(content)).Any(match => 32=> SdkDirectiveRegex().IsMatch(GetDirectivePreamble(content)); 161var fileContent = GetDirectivePreamble(File.ReadAllText(projectFile.FullName));
Projects\ProjectUpdater.cs (3)
1019var match = SdkDirectiveRegex().Match(FallbackProjectParser.GetDirectivePreamble(fileContent)); 1058return LegacyAppHostPackageDirectiveRegex().IsMatch(FallbackProjectParser.GetDirectivePreamble(fileContent)); 1081var matches = LegacyAppHostPackageDirectiveRegex().Matches(FallbackProjectParser.GetDirectivePreamble(content));