Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/core/project-sdk/msbuild-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -729,6 +730,16 @@ The `ValidateExecutableReferencesMatchSelfContained` property can be used to dis
</PropertyGroup>
```

### 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
<PropertyGroup>
<DisableFrameworkReferenceAnalyzers>true</DisableFrameworkReferenceAnalyzers>
</PropertyGroup>
```

## Run-related properties

The following properties are used for launching an app with the [`dotnet run`](../tools/dotnet-run.md) command:
Expand Down