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