Handle unsupported browser warnings (#43363)
authorBuyaa <bunamnan@microsoft.com>
Wed, 25 Nov 2020 21:20:52 +0000 (13:20 -0800)
committerGitHub <noreply@github.com>
Wed, 25 Nov 2020 21:20:52 +0000 (21:20 +0000)
commitabc525d0c2a5b0be09e4d7e4c1e67571afb77c80
treee282a36e602d60b5cc049d98179b2351553deea6
parent5a6c21cb6285a3c110f0048d9bf657042ea4ca10
Handle unsupported browser warnings (#43363)

* Handle browser warnings

* Apply feedback, revert updates handled with different PRs

* Add misssing diagnotic id

* Address multitargeted warnings

* Apply feedback

* Small type/comment updates

* Apply more feedback

* Use project settings instead adding Directory.Build.props

* Annotate APIs injecting unsupported type through DI

* Fix window support related warnings found with generic type parameter

* Fix another browser warning found with generic type parameter bug fix

* All public APIs of ConsoleLoggerExtensions are unsupported, so marking entire type as unsupported on browser

* Try handle mono warnings

* Revert mono related changes, it was mistake

* Try handle browser warninga in mono

* Apply feedback and fix new warnings caused from corelib changes

* Review update

* Apply feedback

* Move platform specific section from HttpTelemetry

* Revering unwanted changes

* Remove redundant attributes

* Exclude cross platform build with browser target

* small updates

* Annotate entire type DiagnosticCounter unsupported

* Apply feedback, improve suppression comments

* Remove Unsupported browser from TypeDescriptor.CreateInstance, TypeDescriptionProvider.CreateInstance and related updates
64 files changed:
eng/versioning.targets
src/libraries/Common/src/System/Net/WebSockets/ManagedWebSocket.cs
src/libraries/Microsoft.Extensions.Logging.Console/ref/Microsoft.Extensions.Logging.Console.cs
src/libraries/Microsoft.Extensions.Logging.Console/ref/Microsoft.Extensions.Logging.Console.csproj
src/libraries/Microsoft.Extensions.Logging.Console/src/AnsiParsingLogConsole.cs
src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLogger.cs
src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLoggerExtensions.cs
src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLoggerProcessor.cs
src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLoggerProvider.cs
src/libraries/Microsoft.Extensions.Logging.Console/src/Microsoft.Extensions.Logging.Console.csproj
src/libraries/System.Collections.Concurrent/ref/System.Collections.Concurrent.cs
src/libraries/System.Collections.Concurrent/src/System/Collections/Concurrent/BlockingCollection.cs
src/libraries/System.ComponentModel.TypeConverter/ref/System.ComponentModel.TypeConverter.cs
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TypeDescriptionProvider.cs
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TypeDescriptor.cs
src/libraries/System.Diagnostics.TextWriterTraceListener/src/System/Diagnostics/XmlWriterTraceListener.cs
src/libraries/System.Diagnostics.Tracing/ref/System.Diagnostics.Tracing.Counters.cs
src/libraries/System.Linq.Parallel/Directory.Build.props
src/libraries/System.Net.Connections/Directory.Build.props
src/libraries/System.Net.Http/ref/System.Net.Http.cs
src/libraries/System.Net.Http/src/System.Net.Http.csproj
src/libraries/System.Net.Http/src/System/Net/Http/BrowserHttpHandler/HttpTelemetry.Browser.cs [new file with mode: 0644]
src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpTelemetry.AnyOS.cs [new file with mode: 0644]
src/libraries/System.Net.Http/src/System/Net/Http/HttpTelemetry.cs
src/libraries/System.Net.ServicePoint/ref/System.Net.ServicePoint.cs
src/libraries/System.Net.ServicePoint/src/System/Net/ServicePointManager.cs
src/libraries/System.Net.WebProxy/src/System/Net/WebProxy.cs
src/libraries/System.Net.WebSockets.WebSocketProtocol/Directory.Build.props
src/libraries/System.Net.WebSockets.WebSocketProtocol/ref/System.Net.WebSockets.WebSocketProtocol.cs
src/libraries/System.Net.WebSockets.WebSocketProtocol/src/System/Net/WebSockets/WebSocketProtocol.cs
src/libraries/System.Net.WebSockets/ref/System.Net.WebSockets.cs
src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/WebSocket.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/CounterGroup.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/DiagnosticCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/IncrementingEventCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/IncrementingPollingCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/PollingCounter.cs
src/libraries/System.Private.CoreLib/src/System/IO/FileStream.Unix.cs
src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs
src/libraries/System.Private.CoreLib/src/System/Threading/ManualResetEventSlim.cs
src/libraries/System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/FutureFactory.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/ThreadPoolTaskScheduler.cs
src/libraries/System.Private.Xml/src/System/Xml/XmlDownloadManagerAsync.cs
src/libraries/System.Private.Xml/src/System/Xml/XmlUrlResolver.cs
src/libraries/System.Runtime/ref/System.Runtime.cs
src/libraries/System.Security.Permissions/Directory.Build.props
src/libraries/System.Security.Permissions/ref/System.Security.Permissions.netcoreapp.cs
src/libraries/System.Security.Permissions/src/System/Xaml/Permissions/XamlLoadPermission.cs
src/libraries/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/Parallel.cs
src/libraries/System.Threading/ref/System.Threading.cs
src/libraries/System.Threading/src/System/Threading/Barrier.cs
src/libraries/System.Threading/src/System/Threading/CountdownEvent.cs
src/libraries/System.Threading/src/System/Threading/ReaderWriterLock.cs
src/libraries/System.Transactions.Local/ref/System.Transactions.Local.cs
src/libraries/System.Transactions.Local/src/System/Transactions/CommittableTransaction.cs
src/libraries/System.Transactions.Local/src/System/Transactions/Transaction.cs
src/libraries/System.Transactions.Local/src/System/Transactions/TransactionScope.cs
src/libraries/System.Xml.ReaderWriter/ref/System.Xml.ReaderWriter.cs
src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj