Skip to content

Move PlatformDocAnalyzer to Analyzers.targets and gate behind EnablePlatformDocAnalyzer#128864

Merged
ericstj merged 4 commits into
dotnet:mainfrom
ericstj:optInPlatformDocAnalyzer
Jun 3, 2026
Merged

Move PlatformDocAnalyzer to Analyzers.targets and gate behind EnablePlatformDocAnalyzer#128864
ericstj merged 4 commits into
dotnet:mainfrom
ericstj:optInPlatformDocAnalyzer

Conversation

@ericstj
Copy link
Copy Markdown
Member

@ericstj ericstj commented Jun 1, 2026

Move the PlatformDocAnalyzer ProjectReference and props import from generators.targets to Analyzers.targets, gated behind a new EnablePlatformDocAnalyzer property that defaults to true for src/libraries source projects. This scopes the analyzer to libraries src projects unless explicitly opted in. Regenerate the affected library slnx files to include the analyzer project.

…latformDocAnalyzer

Move the PlatformDocAnalyzer ProjectReference and props import from
generators.targets to Analyzers.targets, gated behind a new
EnablePlatformDocAnalyzer property that defaults to true for src/libraries
source projects. This scopes the analyzer to libraries src projects unless
explicitly opted in. Regenerate the affected library slnx files to include
the analyzer project.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR moves the PlatformDocAnalyzer wiring from eng/generators.targets into eng/Analyzers.targets, and introduces an EnablePlatformDocAnalyzer property that is default-enabled for src/libraries source projects. It also regenerates affected library .slnx files so the analyzer project appears in those solutions.

Changes:

  • Add EnablePlatformDocAnalyzer defaulting logic for src/libraries source projects.
  • Move PlatformDocAnalyzer ProjectReference + .props import from eng/generators.targets to eng/Analyzers.targets, gated by EnablePlatformDocAnalyzer.
  • Update many src/libraries/*/*.slnx files to include the PlatformDocAnalyzer project under the /gen/ folder.
Show a summary per file
File Description
src/libraries/System.Xml.XPath/System.Xml.XPath.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Xml.XPath.XDocument/System.Xml.XPath.XDocument.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Xml.XmlSerializer/System.Xml.XmlSerializer.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Xml.XDocument/System.Xml.XDocument.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Xml.ReaderWriter/System.Xml.ReaderWriter.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Windows.Extensions/System.Windows.Extensions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Web.HttpUtility/System.Web.HttpUtility.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Transactions.Local/System.Transactions.Local.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Threading/System.Threading.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Threading.ThreadPool/System.Threading.ThreadPool.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Threading.Thread/System.Threading.Thread.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Threading.Tasks.Parallel/System.Threading.Tasks.Parallel.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Threading.RateLimiting/System.Threading.RateLimiting.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Threading.Overlapped/System.Threading.Overlapped.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Threading.Channels/System.Threading.Channels.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Threading.AccessControl/System.Threading.AccessControl.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Text.RegularExpressions/System.Text.RegularExpressions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Text.Json/System.Text.Json.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Text.Encodings.Web/System.Text.Encodings.Web.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Text.Encoding.Extensions/System.Text.Encoding.Extensions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Text.Encoding.CodePages/System.Text.Encoding.CodePages.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Speech/System.Speech.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.ServiceProcess.ServiceController/System.ServiceProcess.ServiceController.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.ServiceModel.Syndication/System.ServiceModel.Syndication.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Security.Principal.Windows/System.Security.Principal.Windows.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Security.Permissions/System.Security.Permissions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Security.Cryptography/System.Security.Cryptography.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Security.Cryptography.Xml/System.Security.Cryptography.Xml.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Security.Cryptography.ProtectedData/System.Security.Cryptography.ProtectedData.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Security.Cryptography.Pkcs/System.Security.Cryptography.Pkcs.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Security.Cryptography.Cose/System.Security.Cryptography.Cose.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Security.Claims/System.Security.Claims.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Security.AccessControl/System.Security.AccessControl.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime/System.Runtime.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.Serialization.Xml/System.Runtime.Serialization.Xml.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.Serialization.Schema/System.Runtime.Serialization.Schema.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.Serialization.Primitives/System.Runtime.Serialization.Primitives.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.Serialization.Json/System.Runtime.Serialization.Json.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.Serialization.Formatters/System.Runtime.Serialization.Formatters.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.Numerics/System.Runtime.Numerics.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.Loader/System.Runtime.Loader.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.Intrinsics/System.Runtime.Intrinsics.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.InteropServices/System.Runtime.InteropServices.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.InteropServices.JavaScript/System.Runtime.InteropServices.JavaScript.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.CompilerServices.VisualC/System.Runtime.CompilerServices.VisualC.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Runtime.Caching/System.Runtime.Caching.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Resources.Writer/System.Resources.Writer.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Resources.Extensions/System.Resources.Extensions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Reflection.TypeExtensions/System.Reflection.TypeExtensions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Reflection.Primitives/System.Reflection.Primitives.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Reflection.MetadataLoadContext/System.Reflection.MetadataLoadContext.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Reflection.Metadata/System.Reflection.Metadata.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Reflection.Emit/System.Reflection.Emit.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Reflection.Emit.Lightweight/System.Reflection.Emit.Lightweight.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Reflection.Emit.ILGeneration/System.Reflection.Emit.ILGeneration.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Reflection.DispatchProxy/System.Reflection.DispatchProxy.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Reflection.Context/System.Reflection.Context.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Private.Xml/System.Private.Xml.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Private.Xml.Linq/System.Private.Xml.Linq.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Private.Uri/System.Private.Uri.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Private.DataContractSerialization/System.Private.DataContractSerialization.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.ObjectModel/System.ObjectModel.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Numerics.Vectors/System.Numerics.Vectors.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Numerics.Tensors/System.Numerics.Tensors.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.WebSockets/System.Net.WebSockets.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.WebSockets.Client/System.Net.WebSockets.Client.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.WebProxy/System.Net.WebProxy.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.WebHeaderCollection/System.Net.WebHeaderCollection.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.WebClient/System.Net.WebClient.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.Sockets/System.Net.Sockets.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.ServerSentEvents/System.Net.ServerSentEvents.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.Security/System.Net.Security.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.Requests/System.Net.Requests.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.Quic/System.Net.Quic.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.Primitives/System.Net.Primitives.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.Ping/System.Net.Ping.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.NetworkInformation/System.Net.NetworkInformation.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.NameResolution/System.Net.NameResolution.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.Mail/System.Net.Mail.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.HttpListener/System.Net.HttpListener.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.Http/System.Net.Http.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.Http.WinHttpHandler/System.Net.Http.WinHttpHandler.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Net.Http.Json/System.Net.Http.Json.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Memory/System.Memory.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Memory.Data/System.Memory.Data.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Management/System.Management.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Linq/System.Linq.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Linq.Queryable/System.Linq.Queryable.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Linq.Parallel/System.Linq.Parallel.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Linq.Expressions/System.Linq.Expressions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Linq.AsyncEnumerable/System.Linq.AsyncEnumerable.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.Ports/System.IO.Ports.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.Pipes/System.IO.Pipes.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.Pipes.AccessControl/System.IO.Pipes.AccessControl.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.Pipelines/System.IO.Pipelines.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.Packaging/System.IO.Packaging.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.MemoryMappedFiles/System.IO.MemoryMappedFiles.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.IsolatedStorage/System.IO.IsolatedStorage.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.Hashing/System.IO.Hashing.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.FileSystem.Watcher/System.IO.FileSystem.Watcher.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.FileSystem.DriveInfo/System.IO.FileSystem.DriveInfo.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.FileSystem.AccessControl/System.IO.FileSystem.AccessControl.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.Compression/System.IO.Compression.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.Compression.ZipFile/System.IO.Compression.ZipFile.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.IO.Compression.Brotli/System.IO.Compression.Brotli.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Formats.Tar/System.Formats.Tar.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Formats.Nrbf/System.Formats.Nrbf.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Formats.Cbor/System.Formats.Cbor.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Formats.Asn1/System.Formats.Asn1.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Drawing.Primitives/System.Drawing.Primitives.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.DirectoryServices/System.DirectoryServices.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.DirectoryServices.Protocols/System.DirectoryServices.Protocols.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.DirectoryServices.AccountManagement/System.DirectoryServices.AccountManagement.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Diagnostics.Tracing/System.Diagnostics.Tracing.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Diagnostics.TraceSource/System.Diagnostics.TraceSource.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Diagnostics.TextWriterTraceListener/System.Diagnostics.TextWriterTraceListener.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Diagnostics.StackTrace/System.Diagnostics.StackTrace.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Diagnostics.Process/System.Diagnostics.Process.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Diagnostics.PerformanceCounter/System.Diagnostics.PerformanceCounter.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Diagnostics.FileVersionInfo/System.Diagnostics.FileVersionInfo.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Diagnostics.EventLog/System.Diagnostics.EventLog.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Diagnostics.DiagnosticSource/System.Diagnostics.DiagnosticSource.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Diagnostics.Contracts/System.Diagnostics.Contracts.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Data.OleDb/System.Data.Oledb.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Data.Odbc/System.Data.Odbc.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Data.Common/System.Data.Common.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Console/System.Console.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Configuration.ConfigurationManager/System.Configuration.ConfigurationManager.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Composition/System.Composition.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Composition.TypedParts/System.Composition.TypedParts.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Composition.Runtime/System.Composition.Runtime.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Composition.Hosting/System.Composition.Hosting.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Composition.Convention/System.Composition.Convention.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Composition.AttributedModel/System.Composition.AttributedModel.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.ComponentModel/System.ComponentModel.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.ComponentModel.TypeConverter/System.ComponentModel.TypeConverter.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.ComponentModel.Primitives/System.ComponentModel.Primitives.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.ComponentModel.EventBasedAsync/System.ComponentModel.EventBasedAsync.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.ComponentModel.Composition/System.ComponentModel.Composition.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.ComponentModel.Composition.Registration/System.ComponentModel.Composition.Registration.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.ComponentModel.Annotations/System.ComponentModel.Annotations.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Collections/System.Collections.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Collections.Specialized/System.Collections.Specialized.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Collections.NonGeneric/System.Collections.NonGeneric.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Collections.Immutable/System.Collections.Immutable.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.Collections.Concurrent/System.Collections.Concurrent.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/System.CodeDom/System.CodeDom.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.XmlSerializer.Generator/Microsoft.XmlSerializer.Generator.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Win32.SystemEvents/Microsoft.Win32.SystemEvents.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Win32.Registry/Microsoft.Win32.Registry.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Win32.Registry.AccessControl/Microsoft.Win32.Registry.AccessControl.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Win32.Primitives/Microsoft.Win32.Primitives.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.VisualBasic.Core/Microsoft.VisualBasic.Core.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.NETCore.Platforms/Microsoft.NETCore.Platforms.slnx Add /gen/ folder and include PlatformDocAnalyzer project.
src/libraries/Microsoft.Extensions.Primitives/Microsoft.Extensions.Primitives.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Options/Microsoft.Extensions.Options.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Options.DataAnnotations/Microsoft.Extensions.Options.DataAnnotations.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Options.ConfigurationExtensions/Microsoft.Extensions.Options.ConfigurationExtensions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Logging/Microsoft.Extensions.Logging.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Logging.TraceSource/Microsoft.Extensions.Logging.TraceSource.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Logging.EventSource/Microsoft.Extensions.Logging.EventSource.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Logging.EventLog/Microsoft.Extensions.Logging.EventLog.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Logging.Debug/Microsoft.Extensions.Logging.Debug.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Logging.Console/Microsoft.Extensions.Logging.Console.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Logging.Configuration/Microsoft.Extensions.Logging.Configuration.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Logging.Abstractions/Microsoft.Extensions.Logging.Abstractions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Http/Microsoft.Extensions.Http.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Hosting/Microsoft.Extensions.Hosting.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Hosting.WindowsServices/Microsoft.Extensions.Hosting.WindowsServices.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Hosting.Systemd/Microsoft.Extensions.Hosting.Systemd.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Hosting.Abstractions/Microsoft.Extensions.Hosting.Abstractions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.HostFactoryResolver/Microsoft.Extensions.HostFactoryResolver.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.FileSystemGlobbing/Microsoft.Extensions.FileSystemGlobbing.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.FileProviders.Physical/Microsoft.Extensions.FileProviders.Physical.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.FileProviders.Composite/Microsoft.Extensions.FileProviders.Composite.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.FileProviders.Abstractions/Microsoft.Extensions.FileProviders.Abstractions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Diagnostics/Microsoft.Extensions.Diagnostics.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Diagnostics.Abstractions/Microsoft.Extensions.Diagnostics.Abstractions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.DependencyModel/Microsoft.Extensions.DependencyModel.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.DependencyInjection/Microsoft.Extensions.DependencyInjection.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.DependencyInjection.Abstractions/Microsoft.Extensions.DependencyInjection.Abstractions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Configuration/Microsoft.Extensions.Configuration.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Configuration.Xml/Microsoft.Extensions.Configuration.Xml.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Configuration.UserSecrets/Microsoft.Extensions.Configuration.UserSecrets.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Configuration.Json/Microsoft.Extensions.Configuration.Json.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Configuration.Ini/Microsoft.Extensions.Configuration.Ini.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Configuration.FileExtensions/Microsoft.Extensions.Configuration.FileExtensions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Configuration.EnvironmentVariables/Microsoft.Extensions.Configuration.EnvironmentVariables.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Configuration.CommandLine/Microsoft.Extensions.Configuration.CommandLine.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Configuration.Binder/Microsoft.Extensions.Configuration.Binder.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Configuration.Abstractions/Microsoft.Extensions.Configuration.Abstractions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Caching.Memory/Microsoft.Extensions.Caching.Memory.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Extensions.Caching.Abstractions/Microsoft.Extensions.Caching.Abstractions.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.CSharp/Microsoft.CSharp.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Bcl.TimeProvider/Microsoft.Bcl.TimeProvider.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Bcl.Numerics/Microsoft.Bcl.Numerics.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Bcl.Memory/Microsoft.Bcl.Memory.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Bcl.Cryptography/Microsoft.Bcl.Cryptography.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Microsoft.Bcl.AsyncInterfaces/Microsoft.Bcl.AsyncInterfaces.slnx Include PlatformDocAnalyzer project in the solution’s /gen/ folder.
src/libraries/Directory.Build.props Default-enable EnablePlatformDocAnalyzer for src/libraries source projects.
eng/generators.targets Remove PlatformDocAnalyzer wiring from generators.
eng/Analyzers.targets Add PlatformDocAnalyzer wiring gated by EnablePlatformDocAnalyzer.

Copilot's findings

  • Files reviewed: 203/203 changed files
  • Comments generated: 2

Comment thread eng/Analyzers.targets
Comment thread eng/Analyzers.targets Outdated
Copy link
Copy Markdown
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@jakobbotsch jakobbotsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ericstj ericstj enabled auto-merge (squash) June 2, 2026 15:34
Since Analyzers.targets sets RunAnalyzers to false we must use it in the condition in the same file.
Copilot AI review requested due to automatic review settings June 2, 2026 15:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 203/203 changed files
  • Comments generated: 1

Comment thread src/libraries/Directory.Build.props Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 2, 2026 15:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 203/203 changed files
  • Comments generated: 0 new

@ericstj ericstj merged commit 5ae8c0f into dotnet:main Jun 3, 2026
176 of 178 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants