Skip to content

Commit f194aed

Browse files
authored
[release/10.0.1xx-preview6] Update namespace for interceptors used by ValidationsGenerator (#49447)
2 parents 7058ff2 + 9e1e665 commit f194aed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/WebSdk/ProjectSystem/Targets/Microsoft.NET.Sdk.Web.ProjectSystem.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Copyright (c) .NET Foundation. All rights reserved.
7070
<!-- Set the namespaces emitted by the ConfigurationBindingGenerator for interception when applicable. -->
7171
<InterceptorsPreviewNamespaces Condition="'$(EnableConfigurationBindingGenerator)' == 'true'">$(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration</InterceptorsPreviewNamespaces>
7272
<!-- Set the namespaces emitted by the ValidationsGenerator for interception when applicable (.NET 10 and above). -->
73-
<InterceptorsPreviewNamespaces Condition="'$(_TargetFrameworkVersionWithoutV)' != '' and $([MSBuild]::VersionGreaterThanOrEquals('$(_TargetFrameworkVersionWithoutV)', '10.0'))">$(InterceptorsPreviewNamespaces);Microsoft.AspNetCore.Http.Validation.Generated</InterceptorsPreviewNamespaces>
73+
<InterceptorsPreviewNamespaces Condition="'$(_TargetFrameworkVersionWithoutV)' != '' and $([MSBuild]::VersionGreaterThanOrEquals('$(_TargetFrameworkVersionWithoutV)', '10.0'))">$(InterceptorsPreviewNamespaces);Microsoft.Extensions.Validation.Generated</InterceptorsPreviewNamespaces>
7474
</PropertyGroup>
7575

7676
<!--

test/Microsoft.NET.Build.Tests/GivenThatWeWantToUseAnalyzers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void It_enables_validationsgenerator_correctly_for_TargetFramework(string
8585
.WithTargetFramework(targetFramework);
8686

8787
VerifyValidationsGeneratorIsUsed(asset, expectEnabled);
88-
VerifyInterceptorsFeatureProperties(asset, expectEnabled, "Microsoft.AspNetCore.Http.Validation.Generated");
88+
VerifyInterceptorsFeatureProperties(asset, expectEnabled, "Microsoft.Extensions.Validation.Generated");
8989
}
9090

9191
[Fact]

0 commit comments

Comments
 (0)