From cfd2f065bb93738e288e7ce09011e4068d770392 Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Tue, 29 Jun 2021 00:13:43 -0700 Subject: [PATCH 1/2] Add docs for DisableFrameworkReferenceAnalyzers --- docs/core/project-sdk/msbuild-props.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/core/project-sdk/msbuild-props.md b/docs/core/project-sdk/msbuild-props.md index ef4f1402a2aa7..dbae1e1a98a8a 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/or source generators that are resolved from `FrameworkReference` items. Similar to [EnableNETAnalyzers](#enablenetanalyzers) which controls analyzers that come from the SDK, however this property can be used to disable 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: From c8bdcaad3fbda5351e89c9706ef96896141fe947 Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Mon, 2 Aug 2021 15:42:24 -0700 Subject: [PATCH 2/2] Update docs/core/project-sdk/msbuild-props.md Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --- docs/core/project-sdk/msbuild-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/project-sdk/msbuild-props.md b/docs/core/project-sdk/msbuild-props.md index dbae1e1a98a8a..8f64a2cff063a 100644 --- a/docs/core/project-sdk/msbuild-props.md +++ b/docs/core/project-sdk/msbuild-props.md @@ -732,7 +732,7 @@ The `ValidateExecutableReferencesMatchSelfContained` property can be used to dis ### DisableFrameworkReferenceAnalyzers -The `DisableFrameworkReferenceAnalyzers` property can be used to disable all analyzers and/or source generators that are resolved from `FrameworkReference` items. Similar to [EnableNETAnalyzers](#enablenetanalyzers) which controls analyzers that come from the SDK, however this property can be used to disable analyzers that are part of the framework itself (for example, `net6.0`). +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