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