7 references to GetDirectivePreamble
aspire (7)
Projects\DotNetAppHostProject.cs (1)
1384var preamble = FallbackProjectParser.GetDirectivePreamble(content);
Projects\FallbackProjectParser.cs (3)
31=> PackageDirectiveRegex().Matches(GetDirectivePreamble(content)).Any(match => 35=> SdkDirectiveRegex().IsMatch(GetDirectivePreamble(content)); 164var fileContent = GetDirectivePreamble(File.ReadAllText(projectFile.FullName));
Projects\ProjectUpdater.cs (3)
1353var match = SdkDirectiveRegex().Match(FallbackProjectParser.GetDirectivePreamble(fileContent)); 1392return LegacyAppHostPackageDirectiveRegex().IsMatch(FallbackProjectParser.GetDirectivePreamble(fileContent)); 1415var matches = LegacyAppHostPackageDirectiveRegex().Matches(FallbackProjectParser.GetDirectivePreamble(content));