diff --git a/docs/core/project-sdk/msbuild-props.md b/docs/core/project-sdk/msbuild-props.md index ef4f1402a2aa7..8f64a2cff063a 100644 --- a/docs/core/project-sdk/msbuild-props.md +++ b/docs/core/project-sdk/msbuild-props.md @@ -684,6 +684,7 @@ The following MSBuild properties are documented in this section: - [DisableImplicitFrameworkReferences](#disableimplicitframeworkreferences) - [Restore-related properties](#restore-related-properties) - [ValidateExecutableReferencesMatchSelfContained](#validateexecutablereferencesmatchselfcontained) +- [DisableFrameworkReferenceAnalyzers](#disableframeworkreferenceanalyzers) ### AssetTargetFallback @@ -729,6 +730,16 @@ The `ValidateExecutableReferencesMatchSelfContained` property can be used to dis ``` +### DisableFrameworkReferenceAnalyzers + +The `DisableFrameworkReferenceAnalyzers` property can be used to disable all analyzers and source generators that are resolved from `FrameworkReference` items. This property is similar to [EnableNETAnalyzers](#enablenetanalyzers), which controls analyzers that come from the SDK. However, `DisableFrameworkReferenceAnalyzers` disables analyzers that are part of the framework itself, for example, `net6.0`. + +```xml + + true + +``` + ## Run-related properties The following properties are used for launching an app with the [`dotnet run`](../tools/dotnet-run.md) command: