Граф коммитов

106400 Коммитов

Автор SHA1 Сообщение Дата
github-actions[bot] cc705af6d3
[release/5.0] Fix an over-constrained use of a byte reg (#41642)
* Fix an over-constrained use of a byte reg

Fix #40963

Co-authored-by: Carol Eidt <carol.eidt@microsoft.com>
2020-09-01 07:50:02 -07:00
dotnet-maestro[bot] 16a16a061d
Update dependencies from https://github.com/dotnet/arcade build 20200831.1 (#41631)
Microsoft.DotNet.GenFacades , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk , Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat
 From Version 5.0.0-beta.20427.5 -> To Version 5.0.0-beta.20431.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2020-09-01 07:33:00 -07:00
github-actions[bot] 54e597d3a5
[release/5.0] Fix null check in S.Diagnostics.Contract regressed by nullability annotations (#41464)
* Fix null check in S.Diagnostics.Contract regressed by nullability annotations

* fix product per Jan's recommendation

Co-authored-by: Krzysztof Wicher <kwicher@microsoft.com>
2020-08-31 21:56:50 -07:00
Carlos Sanchez fe9059ef55
Merge pull request #41348 from carlossanlop/nullabilityBackport50
[release/5.0] Backport nullability annotations to release/5.0
2020-08-31 20:52:03 -07:00
github-actions[bot] 7b4014e007
[release/5.0] Fix infinite recursion in configuration manager (#41645)
* Revert "Remove unused local in System.Configuration.ConfigurationManager (#40583)"

This reverts commit a4eba0a0e1.

* Rename unused variable and add regression test

* PR feedback

Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>

Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
2020-08-31 20:13:41 -07:00
Jon Fortescue f7bad72908 test from windesktop 2020-08-31 19:02:22 -07:00
Immo Landwerth 74dc622915 Add nullable annotations for XmlDataDocument (#41541)
* Add nullable annotations for XmlDataDocument

* Address code review feedback

* More code review feedback

* Address Eric's feedback

* Annotate _dataSet as not null when AttachDataSet is called

* Fix GetElementById return type annotation

In order to match with src

Co-authored-by: Jeff Handley <jeff.handley@microsoft.com>
Co-authored-by: David Cantú <dacantu@microsoft.com>
2020-08-31 18:11:48 -07:00
Anirudh Agnihotry a74b5988c0
Donot ship Internal.Transport and Numerics.tensors package in rc1 (#41632) 2020-08-31 17:55:57 -07:00
github-actions[bot] 3bcbbd5b74
[release/5.0] Do not add bundle deps file to APP_CONTEXT_DEPS_FILES on single-file apps (#41624)
* App Context deps file should be empty for single file apps
2020-08-31 16:00:32 -07:00
Miha Zupan 6b1b038344
[release/5.0] Http telemetry changes backport (#41610)
* System.Net Telemetry style changes (#41527)

* Change HandshakeStop SslProtocols parameter to enum

* Parameterize Http11/Http20 events

* Add dummy request to ensure Http2 settings are received

* Moved HTTP request telemetry to HttpClient.SendAsync (#41022)

* Moved HTTP request telemetry to HttpClient.SendAsync

* Added ResponseContent and helper methods events.

* Rework helper method activity nesting

* Expand Telemetry tests

* Also log RequestStart/Stop in HttpMessageInvoker

* Update RequestStart signature

* RequestAborted => RequestFailed rename

* ResponseContent Begin => Start/Stop

* Fix HttpMessageInvoker implementation

* Add Synchronous request Telemetry tests

* Check telemetryStarted before ResponseContentStart

Co-authored-by: MihaZupan <mihazupan.zupan1@gmail.com>

* Add Request/Response Headers/Content Start/Stop events (#41590)

Co-authored-by: Marie Píchová <11718369+ManickaP@users.noreply.github.com>
2020-09-01 00:31:07 +02:00
github-actions[bot] af1a3dceb0
[release/5.0] Fix reading cpu cache size for Alpine(musl) (#41547)
* Fix reading cpu cache size for Alpine(musl)

* limiting the fallback to Linux only

* exclude ARM

* fixing copy-paste error

Co-authored-by: Manish Godse <61718172+mangod9@users.noreply.github.com>
2020-08-31 08:59:08 -07:00
Alexander Köplinger 4328059b4e
Bump emscripten version to 2.0.1 (#41509) (#41588)
Updates the emscripten Docker container we use to build in CI. We no longer need to explicitly set `EMSDK_PATH` since the container already does it.
Also remove `--embedded` flag from `./emsdk activate` since it was deprecated and is now the default.
2020-08-31 15:18:25 +02:00
Layomi Akinrinade 95baa7ae2d
[release/5.0] Remove obsolete attribute from IgnoreNullValues (#41538)
* Update IgnoreNullValues obsoletion message (#41141)

* Update IgnoreNullValues obsoletion message

* Add attributes to ref file

* Remove obsolete attribute from IgnoreNullValues
2020-08-30 14:40:02 -07:00
Cory Nelson 1f6cf4f227
HTTP/3 interop fixes (#41298) (#41364)
Support DNS-based quic connections for SNI.
Support multiple ALPN values.
Update H3 ALPN from "h3" to "h3-29".
2020-08-30 10:54:11 -07:00
dotnet-maestro[bot] ef47b653d6
Update dependencies from https://github.com/dotnet/arcade build 20200827.5 (#41533)
Microsoft.DotNet.GenFacades , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk , Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat
 From Version 5.0.0-beta.20419.21 -> To Version 5.0.0-beta.20427.5

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2020-08-29 09:44:26 -07:00
Eric Erhardt 4969648a6b Nullable annotations for System.Runtime.Serialization.Xml and System.Runtime.Serialization.Json (#41476)
* Initial nullable annotations of System.Private.DataContractSerialization

Contributes to #2339

* Mark DataMember.Name as non-nullable.

* Fix a few simple nullable compile errors.

* Assert attributes is non-null in XmlObjectSerializerReadContext

* Ensure XmlObjectSerializerContext.serializer is never null

* Fix a few simple nullable errors

* Remove any checks that DataMember.MemberInfo can be null.

* Mark EnumDataContract.Members as non-nullable.

Fix nullable errors in SchemaExporter.

* Correctly annotate CollectionDataContract.IsCollectionOrTryCreate.

* Assert DataContractResolver is non-null.

* Suppress https://github.com/dotnet/runtime/issues/41465

* Update System.Runtime.Serialization.Json ref source for nullable annotations.

* Update System.Runtime.Serializaiton.Xml ref source for nullable annotations.

* Update for Xml.ReaderWriter nullable annotations

* Work around compiler issue.

* Fix test failure.

Reference compiler issue in TODO comment.

* Revert nullable suppression now that XmlSchemaAppInfo.Markup is annotated correctly.

* Fix build for latest annotations in master.

* PR feedback round 1

* Address PR feedback round 2
2020-08-28 15:07:39 -07:00
David Cantú caeed09ad3 Switch Markup property to XmlNode?[]? to reflect it can contain null elements (#41488)
* Switch Markup property to XmlNode?[]? to reflect it can contain null elements

* Update ref
2020-08-28 15:07:38 -07:00
David Cantú 181bca2f0f Port nullability annotations from System.Private.Xml.Linq to contracts (#41086)
* Enable nullability on System.Xml.XPath.XDocument src

* Port nullability annotations to System.Xml.XPath.XDocument

* Port nullability annotations to System.Xml.XDocument

* Add ? to XmlAttribute argument in int? explicit operator
2020-08-28 15:07:38 -07:00
David Cantú 71627b9503 Port nullability annotations to refs XmlDocument and XmlSerializer (#41474)
* Port nullability annotations to refs XmlDocument and XmlSerializer

* Fix new System.Data.Common nullability related errors

* Switch nullability of parameter in SoapElementAttribute ctor
2020-08-28 15:07:38 -07:00
David Cantú d5defc51cb Switch text param to nullable in WriteProcessingInstructionAsync (#41481) 2020-08-28 15:07:38 -07:00
David Cantú 7413e8f165 Port nullability annotations to System.Xml.ReaderWriter contract (#41083)
* Port nullability annotations to System.Xml.ReaderWriter contract assembly

* Port annotations of recently updated members in Xml/Serialization

* Fix anontations on XmlElement discovered while updating System.Data.Common Xml related annotations

* Fix Xml related annotations on System.Data.Common

* address feedback

Co-authored-by: Krzysztof Wicher <kwicher@microsoft.com>
2020-08-28 15:07:38 -07:00
Krzysztof Wicher a4c673e8a5 Globally enable nullability in XML (#41438)
* Globally enable nullability in XML

* remove double #nullable enable in the file
2020-08-28 15:07:37 -07:00
Krzysztof Wicher 24fe3c9d7b Nullable: System.Xml, part 7 (Serialization) (#41261)
* Nullable: System.Xml, part 7 (Serialization)

* Fix build errors on Release (ifdef-ed code)

* fix incidental product bug

* address PR feedback

* Make XmlSerializer._rootType nullable
2020-08-28 15:07:37 -07:00
Prashanth Govindarajan b9f3fcc3ab Nullability annotations for HttpListener (#41189)
* src files annotated

* ref file

* Address feedback
2020-08-28 15:07:37 -07:00
Shay Rojansky 631231f5d7 Annotate DbDataReader.GetSchemaTable as nullable (#41082)
Reverts decision made in #509
2020-08-28 15:07:36 -07:00
David Cantú 1e723cef58 Change nullability of public IXmlNamespaceResolver parameters where appropriate (#41079) 2020-08-28 15:07:36 -07:00
David Cantú 44390bcfa3 Enable nullability on System.Xml.XPath (#41060)
* Enable nullability on System.Xml.XPath

* Switch XPathException ctor's message parameter to string?
2020-08-28 15:07:36 -07:00
David Cantú c131a1aeba Add nullability annotations to System.Private.Xml.Linq project (#40744)
* Add nullability annotations to Xml.Linq project

* Fix misplaced assertion

* Address feedback

* Add missing NotNullIfNotNull attributes to operators
2020-08-28 15:07:36 -07:00
github-actions[bot] 10068f4363
[release/5.0] Fix OS version check and testhost copying in stress tests (#41321)
Co-authored-by: Alexander Nikolaev <alnikola@microsoft.com>
Co-authored-by: Marie Píchová <mapichov@microsoft.com>
2020-08-28 21:58:56 +02:00
github-actions[bot] 4f904c2ff6
[release/5.0] Remove if-def from JSON ref file previously used to support linker attributes (#41490)
* Remove if-def from JSON ref file previously used to support linker attributes

* Run GenerateReferenceSource target on ref project

Co-authored-by: Layomi Akinrinade <laakinri@microsoft.com>
2020-08-28 12:28:56 -07:00
github-actions[bot] 1dfd943814
Allow return null from ConnectionListener.AcceptAsync (#41453)
Co-authored-by: Natalia Kondratyeva <knatalia@microsoft.com>

Backport of #41442 to release/5.0

As it was discussed in #41304, with current System.Net.Connections APIs, listeners need to throw from AcceptAsync when shutting down since AcceptAsync cannot return null. This PR allows AcceptAsync to return null, to avoid unnecessary first-chance exceptions when listeners are gracefully shutting down.
2020-08-28 12:00:18 +03:00
github-actions[bot] cb2023c5fc
Update SYSLIB0012 obsoletion messages to be clear and consistent (#41483)
Co-authored-by: Jeff Handley <jeff.handley@microsoft.com>
2020-08-27 18:07:58 -07:00
Layomi Akinrinade d5e0627b44
[release/5.0] Support polymorphic value-type converters and add validation on values returned by custom converters (#40914) (#41366)
* Support polymorphic value-type converters and add validation on values returned by custom converters (#40914)

* IL emit Box/Unbox in member access

* Test case for object converter

* Test case for class with primitive members and object converter

* Address feedback

* Fixed issues with JsonConverter<object>and nullable value-types

* Address feedback

* Fix test for .NETStandard version

* Fix #41146

* Accidentally commited the local test hack

* Throw JsonException when a deserialized value cannot be assigned to the property/field

* Fix merge

* Fix merge again

* Undo Fix #41146

* Consolidate nullable annotations

* Addressed feedback

* Addressed feedback

* Fixup JSON equality checks in polymorphic converter tests

* Limit deserialization value validation to custom _polymorphic_ converters

Co-authored-by: devsko <devsko@users.noreply.github.com>
2020-08-27 16:00:03 -07:00
github-actions[bot] 3d21b4c0c6
[release/5.0] add extra padding for icmp6stat to support macOS 11 (#41370)
* add extra padding for icmp6stat to support macOS 11

* update SystemNative_GetIcmpv6GlobalStatistics to use variable size

* add cast

* avoid realloc

Co-authored-by: wfurt <tweinfurt@yahoo.com>
2020-08-27 09:19:18 -07:00
github-actions[bot] ba5b5d1891
[release/5.0] Reset all Uri fields when reusing an instance (#41393)
* Reset all Uri fields when reusing an instance

* Test combined Uri's AbsoluteUri

Co-authored-by: MihaZupan <mihazupan.zupan1@gmail.com>
2020-08-27 14:22:54 +02:00
github-actions[bot] 7d2968eb2d
fix GetAsync_SupportedSSLVersion_Succeeds test (#41371)
Co-authored-by: wfurt <tweinfurt@yahoo.com>
2020-08-27 00:08:09 -07:00
github-actions[bot] e195368aca
set TLS versions explicitly to prevent SNI test failure on Deb10 (#41372)
Co-authored-by: wfurt <tweinfurt@yahoo.com>
2020-08-27 00:07:32 -07:00
github-actions[bot] 49485629f5
Retry up to three times for X509Chain timeout tests
Co-authored-by: Kevin Jones <kevin@vcsjones.com>
2020-08-26 17:04:58 -07:00
github-actions[bot] 976e0efcb7
Add netcoreapp build of System.Formats.Asn1
This avoids the library causing a cyclic dependency in generating netstandard.dll.
The netcoreapp version is not included in the NuGet package,
following the pattern of
  * System.Text.Json
  * System.Collections.Immutable
  * System.Reflection.Metadata

Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
2020-08-26 17:03:54 -07:00
Andrew Au bfc00e4e13
Restrict generational aware analysis to processes that matches the command line configuration (#41052) 2020-08-26 14:25:18 -07:00
Andy Gocke 94e7aa7bc3
Merge pull request #41385 from dotnet/backport/pr-41019-to-release/5.0
[release/5.0] Port API fixes for single file apps

Backport of #41019 and #40974 to release/5.0
2020-08-26 12:48:12 -07:00
github-actions[bot] d1672db881
[release/5.0] Fix GetAppdomainStaticAddress for non-collectible assemblies (#41297)
Backport of #41076 to release/5.0
2020-08-26 11:23:06 -07:00
Egor Bogatov e271b51f7c
[release/5.0] Update ICU package (#41320) 2020-08-26 19:42:55 +03:00
github-actions[bot] 764ac11a98
[release/5.0] Fix \u00A7 char Unicode category (#41361)
Co-authored-by: Tarek Mahmoud Sayed <tarekms@microsoft.com>
2020-08-26 09:32:03 -07:00
Andy Gocke b17d68361c Throw from CodeBase if assembly is in the bundle (#40974)
Also adds test for Module.FullyQualifiedName

(cherry picked from commit 0546bd55c2)
2020-08-26 01:39:32 -07:00
mateoatr 2fbb63c8ae Split test 2020-08-26 08:31:27 +00:00
mateoatr b53f87eb02 Remove bundle header 2020-08-26 08:31:27 +00:00
Mateo Torres Ruiz 9cfde56fe0 Look for the called exe 2020-08-26 08:31:27 +00:00
Mateo Torres Ruiz c3284544e8 Return host's path when using GetCommandLineArgs from within a single-file app 2020-08-26 08:31:26 +00:00
github-actions[bot] 55ab8ce696
[release/5.0] map macOS compat 10.16 version to 11.0 (#41294)
* map macOS compat 10.16 version to 11.0

* feedback from review

Co-authored-by: wfurt <tweinfurt@yahoo.com>
2020-08-25 22:24:41 -07:00