platform/upstream/dotnet/runtime.git
6 years agoFix a few WebSocketHandle.Managed issues (dotnet/corefx#25010)
Stephen Toub [Thu, 2 Nov 2017 14:35:38 +0000 (10:35 -0400)]
Fix a few WebSocketHandle.Managed issues (dotnet/corefx#25010)

- At least until socket send/receives respect cancellation, we need to poll for cancellation after the handler's SendAsync completes.
- We're unnecessarily allocating another CTS if no external cancellation was provided.
- We're not disposing of the response object in the case of an error after SendAsync completes.

Commit migrated from https://github.com/dotnet/corefx/commit/baf2128a7cdf4a7638be1e86a6fc18651f3945d3

6 years agoFix concurrency in MultipleWaitingClients_ServerServesOneAtATime test (dotnet/corefx...
Stephen Toub [Thu, 2 Nov 2017 03:43:42 +0000 (23:43 -0400)]
Fix concurrency in MultipleWaitingClients_ServerServesOneAtATime test (dotnet/corefx#25004)

The Unix implementation works by having clients connect to the server socket, and connects are satisifed not when an accept happens but when there's room in the listen backlog.  Thus multiple clients might end up having their connects immediately satisfied, and we might try to then read/write the wrong client, and end up deadlocking.

Commit migrated from https://github.com/dotnet/corefx/commit/9495387c0faa0ab252f36049d148fbb50677721d

6 years agoAdd a simple way to test wmi remote (dotnet/corefx#24989)
Paulo Janotti [Thu, 2 Nov 2017 03:36:09 +0000 (20:36 -0700)]
Add a simple way to test wmi remote (dotnet/corefx#24989)

Simply using an environment variable, WmiTestTargetMachine, to specify
the target machine. When running the tests ensure that the account
running the tests has rights on the target machine.

There is not much value in adding similar scope to other tests since
regarding remote connectivity they actually end up hitting the same
code, so keep this just for some key tests.

Commit migrated from https://github.com/dotnet/corefx/commit/4e16caee7a21f17dd646e65db4e1d2765118c7bc

6 years agoMerge pull request dotnet/corefx#25001 from dotnet/tfUrlUpdate
JC Aguilera [Wed, 1 Nov 2017 22:41:27 +0000 (15:41 -0700)]
Merge pull request dotnet/corefx#25001 from dotnet/tfUrlUpdate

TransportFeed URL update

Commit migrated from https://github.com/dotnet/corefx/commit/44e7a3e79a399aad60427fcc2c0d16b7d3b277e0

6 years agoMerge pull request dotnet/corefx#24999 from weshaggard/SnapToStandard20
Wes Haggard [Wed, 1 Nov 2017 21:42:26 +0000 (14:42 -0700)]
Merge pull request dotnet/corefx#24999 from weshaggard/SnapToStandard20

Fix standard dependency to 2.0.0 release branch

Commit migrated from https://github.com/dotnet/corefx/commit/a3b906bcc338151954ec7e3759129526feb426cf

6 years agoMerge pull request dotnet/corefx#24883 from Drawaes/ALPN-Linux
Lakshmi Priya Sekar [Wed, 1 Nov 2017 21:37:58 +0000 (14:37 -0700)]
Merge pull request dotnet/corefx#24883 from Drawaes/ALPN-Linux

Fix matching algo

Commit migrated from https://github.com/dotnet/corefx/commit/c9c292c28943c84d82afe1d263017be7dbed2b28

6 years agoFix standard dependency to 2.0.0 release branch
Wes Haggard [Wed, 1 Nov 2017 15:56:04 +0000 (08:56 -0700)]
Fix standard dependency to 2.0.0 release branch

Commit migrated from https://github.com/dotnet/corefx/commit/a8aed31b440d5308ebdf5dec1f56f2650a07be82

6 years agoUpdate CoreClr, ProjectNTfs, ProjectNTfsTestILC, Standard to preview1-25901-01, beta...
dotnet-maestro-bot [Wed, 1 Nov 2017 15:49:48 +0000 (08:49 -0700)]
Update CoreClr, ProjectNTfs, ProjectNTfsTestILC, Standard to preview1-25901-01, beta-25831-01, beta-25831-01, preview1-25901-01, respectively (dotnet/corefx#24991)

Commit migrated from https://github.com/dotnet/corefx/commit/2d4a639cfd1fd908d0e3051a5f0c51c6193e277a

6 years agoDisable a few new pipes tests that may be causing a CI hang on OSX (dotnet/corefx...
Stephen Toub [Wed, 1 Nov 2017 15:47:40 +0000 (11:47 -0400)]
Disable a few new pipes tests that may be causing a CI hang on OSX (dotnet/corefx#24995)

Commit migrated from https://github.com/dotnet/corefx/commit/0a16ff4757eb478a40bd96618ae26332bd95e09d

6 years agoAdd -g flag to generate debuginfo on unix platforms (dotnet/corefx#24979)
Omair Majid [Wed, 1 Nov 2017 04:13:41 +0000 (00:13 -0400)]
Add -g flag to generate debuginfo on unix platforms (dotnet/corefx#24979)

The windows build already includes /Zi /Zl as part of commit 920fd2f3
(PR dotnet/corefx#7840). It looks like it was simply missed on Unix.

This change also makes the native debug information closer to what
CoreCLR does on all platforms. See
https://github.com/dotnet/coreclr/pull/3445 for more information.

This is also needed for the end-to-end debuginfo generation as part of
source-build. See https://github.com/dotnet/source-build/issues/267

Commit migrated from https://github.com/dotnet/corefx/commit/efe76524067c7948e2ccdbf735c5419a7554ddc3

6 years agoFind native dll via registry (dotnet/corefx#24983)
Paulo Janotti [Wed, 1 Nov 2017 03:28:24 +0000 (20:28 -0700)]
Find native dll via registry (dotnet/corefx#24983)

* Find native dll via registry

Perform a best effort to throw PNSE for Windows versions without the
full framework.

* Using Dan's message for PNSE

Commit migrated from https://github.com/dotnet/corefx/commit/362afc07aa7ed9b0cf2be9178035b6bee46fd93b

6 years agoUpdate BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC, Stand...
dotnet-maestro-bot [Wed, 1 Nov 2017 03:15:46 +0000 (20:15 -0700)]
Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC, Standard to prerelease-02201-02, preview1-25831-09, preview1-25831-01, preview1-25830-04, beta-25831-00, beta-25831-00, preview1-25831-01, respectively (dotnet/corefx#24964)

Commit migrated from https://github.com/dotnet/corefx/commit/3b8cfbf49c8dc9c1b2671fab6f39a27e7a595077

6 years agoMerge pull request dotnet/corefx#24798 from stephentoub/namedpipes_lifetime
Stephen Toub [Wed, 1 Nov 2017 02:42:20 +0000 (22:42 -0400)]
Merge pull request dotnet/corefx#24798 from stephentoub/namedpipes_lifetime

Change lifetime of Socket used in NamedPipeServerStream on Unix

Commit migrated from https://github.com/dotnet/corefx/commit/b5d0c3277dc384a23fee2e57a0b5c232c99dbd88

6 years agoEventLog tests enabled on windows 7 (dotnet/corefx#24959)
Anirudh Agnihotry [Wed, 1 Nov 2017 02:34:44 +0000 (19:34 -0700)]
EventLog tests enabled on windows 7 (dotnet/corefx#24959)

* Extention function added

* Last or default corrected

* write entry event corrected

* windows 7 enabled and icollection done

* Copy collection corrected

* EventLog tests editing

* extebtion class name corrected

* copy collection retrive bug

* empty line corrected

* write event corrected in eventlogtests file

* Entry written file made robust

* calling using reflection method

* using delegates

* eventlogwriteEntry corrected

* Entry Retrive corrected

* tests mostly replaced

* delete done

* Combining generics left

* Generics Optimised

* Write event corrected

* infinite wait corrected

* make changes according to review

* Minor changes

* Empty line removed

Commit migrated from https://github.com/dotnet/corefx/commit/436ed2e8d744f0eb26fc12b8374a7a7d6996787d

6 years agoMake wmi test with Win32_Process more reliable (dotnet/corefx#24975)
Paulo Janotti [Wed, 1 Nov 2017 01:36:29 +0000 (18:36 -0700)]
Make wmi test with Win32_Process more reliable (dotnet/corefx#24975)

This should fix 24912: it seems that the process id is being re-used and
the call to Get is not throwing the expected exception. This change
should prevent re-use of process id while the test is running.

undo sln changes

Commit migrated from https://github.com/dotnet/corefx/commit/79ef2120ec939cf94b07aa81d960a32dcef72666

6 years agoFix System.DirectoryServices configurations and generate PNS assembly correctly for...
Santiago Fernandez Madero [Tue, 31 Oct 2017 23:14:22 +0000 (16:14 -0700)]
Fix System.DirectoryServices configurations and generate PNS assembly correctly for UAP (dotnet/corefx#24878)

* Fix System.DirectoryServices configurations and generate PNS assembly correctly

* Fix CI adding UapVNext as a target framework for the pkg

* Fix configurations to be PNSE when targeting netstandard or any non-windows configuration

* Disable test that is using DirectoryServices and is getting PNSE

Commit migrated from https://github.com/dotnet/corefx/commit/3be15ca3d519fafc149c08b20727f88cb0f76e6a

6 years agoImprove code comments around TextWriter.NewLine for xplat (dotnet/corefx#24982)
Jared Nance [Tue, 31 Oct 2017 22:52:41 +0000 (17:52 -0500)]
Improve code comments around TextWriter.NewLine for xplat (dotnet/corefx#24982)

Commit migrated from https://github.com/dotnet/corefx/commit/b3d44d26342260d516993c52b4e8e8422a0bad43

6 years agoUpdate dogfooding.md
Dan Moseley [Tue, 31 Oct 2017 21:52:59 +0000 (14:52 -0700)]
Update dogfooding.md

Commit migrated from https://github.com/dotnet/corefx/commit/bd45cc9809cfe936d18e99d46eedbe79be0bbd16

6 years agoMerge pull request dotnet/corefx#24924 from karajas/addFeedToRestore
Wes Haggard [Tue, 31 Oct 2017 17:42:55 +0000 (10:42 -0700)]
Merge pull request dotnet/corefx#24924 from karajas/addFeedToRestore

Add blob feed as a restore source

Commit migrated from https://github.com/dotnet/corefx/commit/2ba93796dcf132de447886d4d634414ee8cb069d

6 years agoImplement maxNumberOfServerInstances support on Unix
Stephen Toub [Mon, 23 Oct 2017 18:51:21 +0000 (14:51 -0400)]
Implement maxNumberOfServerInstances support on Unix

Only supported with multiple servers in the same process, but that's a common-enough case to make it worthwhile to implement, e.g. a server process wanting to handle multiple named pipes clients concurrently.

Commit migrated from https://github.com/dotnet/corefx/commit/4c6fcfc30410c9f915d79e6344cc83445d976049

6 years agoUpdate dogfooding.md
Dan Moseley [Tue, 31 Oct 2017 16:05:19 +0000 (09:05 -0700)]
Update dogfooding.md

Commit migrated from https://github.com/dotnet/corefx/commit/2e4c07f4af4a2e4d8cec870fc85b71c74c042b3f

6 years agoChange lifetime of Socket used in NamedPipeServerStream on Unix
Stephen Toub [Sun, 22 Oct 2017 13:23:52 +0000 (09:23 -0400)]
Change lifetime of Socket used in NamedPipeServerStream on Unix

We currently create and destroy the unix domain socket each time WaitForConnection{Async} is called, and it lives until the client connects.  This causes problems when multiple clients try to connect before WaitForConnection{Async} is called; any number that's under the min listen limit applied by the OS will have their connections completed, even though Accept hasn't been called, and then when the socket is closed, the connections will all fail.  This change moves the UDS creation to when the NamedPipeServerStream is created, deleting it when the NPSS is disposed.

Commit migrated from https://github.com/dotnet/corefx/commit/16b29a8ca2f075edfb27a720782320e720bb8941

6 years agoRemove dead code from System.Private.Uri (dotnet/corefx#24937)
Stano Peťko [Tue, 31 Oct 2017 13:35:16 +0000 (14:35 +0100)]
Remove dead code from System.Private.Uri (dotnet/corefx#24937)

* Deleted dead code from System.Private.Uri.

* Reverted changes in UriSyntax.cs.

Commit migrated from https://github.com/dotnet/corefx/commit/a7d59c16e8e1f7975b26e0f9780eadcd8526cbab

6 years agoRemove irrelevant material from dogfooding.md
Dan Moseley [Tue, 31 Oct 2017 03:40:37 +0000 (20:40 -0700)]
Remove irrelevant material from dogfooding.md

Commit migrated from https://github.com/dotnet/corefx/commit/c0e459bf4638bd10d080d44125a7329941535ee7

6 years agoAdd information on myget feed and local SDK (dotnet/corefx#24958)
Dan Moseley [Tue, 31 Oct 2017 03:37:37 +0000 (20:37 -0700)]
Add information on myget feed and local SDK (dotnet/corefx#24958)

* Add information on myget feed and local SDK

* More edits

* Numbering

* change to 2.1

Commit migrated from https://github.com/dotnet/corefx/commit/c53e2c9269172543f93f576e58f1e0103d64b4d6

6 years agoRemove private reflection agaist RuntimeWrappedException constructor (dotnet/corefx...
Jan Kotas [Mon, 30 Oct 2017 19:06:02 +0000 (12:06 -0700)]
Remove private reflection agaist RuntimeWrappedException constructor (dotnet/corefx#24945)

RuntimeWrappedException constructor is public in CoreLib now. It can be called directly.

Commit migrated from https://github.com/dotnet/corefx/commit/778dd1f8766578a3822083287ce819fcd7642d15

6 years agoDelete unnecessary internal forwarders (dotnet/corefx#24939)
Jan Kotas [Mon, 30 Oct 2017 19:05:18 +0000 (12:05 -0700)]
Delete unnecessary internal forwarders (dotnet/corefx#24939)

The optimized enum comparers used can never show up in the binary serialization payload. We do not need the internal forwarders for them.

Commit migrated from https://github.com/dotnet/corefx/commit/aca208104d2013e4c3c7fd56c8f169080fbb4ea1

6 years agoRemove dead code from System.Net.WebSocket.Client (dotnet/corefx#24932)
Stano Peťko [Mon, 30 Oct 2017 19:04:15 +0000 (20:04 +0100)]
Remove dead code from System.Net.WebSocket.Client (dotnet/corefx#24932)

* Deleted dead code from System.Neet.WebSocket.Client.

* Reverted changes in WinHttpWebSocketCallback.

Commit migrated from https://github.com/dotnet/corefx/commit/7a3d591c8e4e308c32e9f4932eaf8fa9ed1d760b

6 years agoDeleted dead code from System.Net.WebClient. (dotnet/corefx#24930)
Stano Peťko [Mon, 30 Oct 2017 19:03:08 +0000 (20:03 +0100)]
Deleted dead code from System.Net.WebClient. (dotnet/corefx#24930)

Commit migrated from https://github.com/dotnet/corefx/commit/16b1d87149c8ee7984d29ab2f3ebb1ee92112bde

6 years agoAdd ManagedHandler support for cancelling connect operations (dotnet/corefx#24873)
Stephen Toub [Mon, 30 Oct 2017 19:02:27 +0000 (15:02 -0400)]
Add ManagedHandler support for cancelling connect operations (dotnet/corefx#24873)

Commit migrated from https://github.com/dotnet/corefx/commit/0e517d15d2a90aceffdd6bbc6c1de80b8582a154

6 years agoAddress System.Threading.Channels PR feedback (dotnet/corefx#24955)
Stephen Toub [Mon, 30 Oct 2017 19:02:02 +0000 (15:02 -0400)]
Address System.Threading.Channels PR feedback (dotnet/corefx#24955)

Addressing a few pieces of feedback on the previous PR, plus some auto-cleanup.

Commit migrated from https://github.com/dotnet/corefx/commit/9a90c2e1fcfb3276275a39f6cdc383e8a3012df0

6 years agoUpdate BuildTools, CoreClr, CoreFx to prerelease-02128-02, preview1-25829-02, preview...
dotnet-maestro-bot [Mon, 30 Oct 2017 19:01:29 +0000 (12:01 -0700)]
Update BuildTools, CoreClr, CoreFx to prerelease-02128-02, preview1-25829-02, preview1-25830-01, respectively (master) (dotnet/corefx#24944)

* WIP: Move OpenCommPort to api set

It will fail until changes in buildtools (https://github.com/dotnet/buildtools/pull/1766) reach corefx.

* Including OpenCommPort only for Uap

It was already only used in uap but per review it is better to make it
explicit on the project too.

* Update BuildTools, CoreClr, CoreFx to prerelease-02128-02, preview1-25829-02, preview1-25830-01, respectively

Commit migrated from https://github.com/dotnet/corefx/commit/51a96959a764e25932735f22fa41b93a960b241f

6 years agoFix System.DirectoryServices.AccountManagement configurations (dotnet/corefx#24887)
Santiago Fernandez Madero [Mon, 30 Oct 2017 17:54:55 +0000 (10:54 -0700)]
Fix System.DirectoryServices.AccountManagement configurations (dotnet/corefx#24887)

* Fix System.DirectoryServices.AccountManagement configurations

* Update comment to AssemblyInfo.cs

* Delete AssemblyInfo.cs file and netfx configuration in tests

* Make netstandard PNSE assembly and netfx only a placeholder in the pkgproj

Commit migrated from https://github.com/dotnet/corefx/commit/bb52baa59e4ebe0cc4e962f5895fc2566c7b0c14

6 years agoDisable reflection-based debugger System.Threading.Channels tests on uapaot (dotnet...
Stephen Toub [Mon, 30 Oct 2017 16:19:50 +0000 (12:19 -0400)]
Disable reflection-based debugger System.Threading.Channels tests on uapaot (dotnet/corefx#24956)

Also remove the duplicated DebuggerAttributes.cs file.

Commit migrated from https://github.com/dotnet/corefx/commit/2544e71349ce03259d0141486dc5e2d52716768b

6 years agoFix DirectoryServices.Protocols packaging and configurations for compat pack (dotnet...
Santiago Fernandez Madero [Mon, 30 Oct 2017 14:14:08 +0000 (07:14 -0700)]
Fix DirectoryServices.Protocols packaging and configurations for compat pack (dotnet/corefx#24905)

* Fix DirectoryServices.Protocols packaging and configurations for compat
pack

* Set configurations to generate PNSE when target group is netstandard since net45 is inbox and we don't support uap

Commit migrated from https://github.com/dotnet/corefx/commit/39566c3c02061db78c6068ed8310a55d4757866c

6 years agoRemove dead code from System.Net.Sockets (dotnet/corefx#24904)
Stano Peťko [Mon, 30 Oct 2017 14:13:16 +0000 (15:13 +0100)]
Remove dead code from System.Net.Sockets (dotnet/corefx#24904)

* Deleted dead code from System.Net.Sockets.

* Deleted stuff related to socket perf counters.

Commit migrated from https://github.com/dotnet/corefx/commit/ed3874a12ff4852c9621be20614f98b9eddefaed

6 years agoMerge pull request dotnet/corefx#24846 from stephentoub/websockets_memory
Stephen Toub [Mon, 30 Oct 2017 13:35:08 +0000 (09:35 -0400)]
Merge pull request dotnet/corefx#24846 from stephentoub/websockets_memory

Add `Memory<byte>` support to WebSockets

Commit migrated from https://github.com/dotnet/corefx/commit/1cce3631a78c11271f34762253b3a3273a8207fc

6 years agoMerge pull request dotnet/corefx#24896 from dseefeld/master
Dan Seefeldt [Mon, 30 Oct 2017 13:29:45 +0000 (08:29 -0500)]
Merge pull request dotnet/corefx#24896 from dseefeld/master

Add retry logic for setup of dotnet cli

Commit migrated from https://github.com/dotnet/corefx/commit/2a9da9751174c1a53c48240b68eed172e92c2210

6 years agoUpdate BuildTools, Standard to prerelease-02127-10, preview1-25827-06, respectively...
dotnet-maestro-bot [Sun, 29 Oct 2017 20:38:41 +0000 (13:38 -0700)]
Update BuildTools, Standard to prerelease-02127-10, preview1-25827-06, respectively (dotnet/corefx#24922)

Commit migrated from https://github.com/dotnet/corefx/commit/dedd93c1bd227cf84cecba2772f435ea2d855539

6 years agoFix system formatter tests hitting netfx inbox binplace issue (dotnet/corefx#24935)
Santiago Fernandez Madero [Sat, 28 Oct 2017 06:19:10 +0000 (23:19 -0700)]
Fix system formatter tests hitting netfx inbox binplace issue (dotnet/corefx#24935)

* Fix Serialization.Formatter tests hitting PNSE in DirectoryServices.Protocols

* Fix Serialization.Formatter tests hitting PNSE in DirectoryServices.AccountManagement

* Fix Serialization.Formatter tests hitting PNSE in DirectoryServices

Commit migrated from https://github.com/dotnet/corefx/commit/853d4c4b66d010ab430a2454c9c6fe95e6dffd78

6 years agoMove InAttribute from S.R.InteropServices to System.Runtime next to OutAttribute...
Ahson Khan [Sat, 28 Oct 2017 06:04:03 +0000 (23:04 -0700)]
Move InAttribute from S.R.InteropServices to System.Runtime next to OutAttribute (dotnet/corefx#24933)

Commit migrated from https://github.com/dotnet/corefx/commit/0419678bd9ceddcb22b0535f7891571f65c28a61

6 years agoAdd S.SM.Syndication in Compat-pack. (dotnet/corefx#24934)
Shin Mao [Sat, 28 Oct 2017 05:43:15 +0000 (22:43 -0700)]
Add S.SM.Syndication in Compat-pack. (dotnet/corefx#24934)

Commit migrated from https://github.com/dotnet/corefx/commit/48fd0ab99fdc220ae0482c3d66502230847fd2d2

6 years agoFixed Bugs with DateTime Parsing (dotnet/corefx#24899)
Shin Mao [Sat, 28 Oct 2017 00:10:08 +0000 (17:10 -0700)]
Fixed Bugs with DateTime Parsing (dotnet/corefx#24899)

* Fixed Bugs with Parsing DateTime String.

Fix dotnet/corefx#24894

* Improved error message.

* Fixed feed name.

* Use Rfc3339DateTimeFormat.

* Refactor the code.

* removed unused code

* Fixed Rfc3339DateTimeParser.

Commit migrated from https://github.com/dotnet/corefx/commit/a6c58c0efaa43967b63cc5ef676ba7cc81e00218

6 years agoMerge pull request dotnet/corefx#24025 from vancem/PortablePdbsAndSourceServer
Vance Morrison [Fri, 27 Oct 2017 23:58:48 +0000 (16:58 -0700)]
Merge pull request dotnet/corefx#24025 from vancem/PortablePdbsAndSourceServer

Use Portable PDBs and turn on SourceLink

Commit migrated from https://github.com/dotnet/corefx/commit/968cfcf373633a82e1dc1850e9852e0c491112dd

6 years agoAdd pkg for System.Diagnostics.PerformanceCounter (dotnet/corefx#24811)
Michelle McDaniel [Fri, 27 Oct 2017 23:56:19 +0000 (16:56 -0700)]
Add pkg for System.Diagnostics.PerformanceCounter (dotnet/corefx#24811)

* Add pkg for System.Diagnostics.PerformanceCounter

This change adds System.Diagnostics.PerformanceCounter to the compat
pack.

* Add AllXamarinFrameworks to PerformanceCounter pkgproj

* Update PerformanceCounter pkgproj for xamarin/mono

* Change InboxOnTargetFramework to AllXamarinFrameworks

Commit migrated from https://github.com/dotnet/corefx/commit/c17b2dd417eaacbf5640bb218f7d14b16826f86c

6 years agoRemoving Span<byte> extension methods and using the generic ones (dotnet/corefx#24911)
Ahson Khan [Fri, 27 Oct 2017 22:55:40 +0000 (15:55 -0700)]
Removing Span<byte> extension methods and using the generic ones (dotnet/corefx#24911)

* Removing Span<byte> extension methods and use the generic ones.

* Addressing PR feedback.

* Fixing nits and moving type check to public API.

Commit migrated from https://github.com/dotnet/corefx/commit/42582c350c33515ddea2f211afb23840dbab260a

6 years agoRemove pointer math (dotnet/corefx#5)
Tim Seaward [Fri, 27 Oct 2017 22:45:47 +0000 (23:45 +0100)]
Remove pointer math (dotnet/corefx#5)

Commit migrated from https://github.com/dotnet/corefx/commit/9f1d87e048e2f277b58ca4bed74c2c7b4e3d94d4

6 years agoChange System.Management configurations to create PNSE assembly when targetgroup...
Santiago Fernandez Madero [Fri, 27 Oct 2017 21:42:27 +0000 (14:42 -0700)]
Change System.Management configurations to create PNSE assembly when targetgroup is netstandard and non-windows (dotnet/corefx#24926)

Commit migrated from https://github.com/dotnet/corefx/commit/8fc78d92aeae154ac40f58ef2ab3636557a0aa3c

6 years agoSkip one wmi test in Win Server Core (dotnet/corefx#24927)
Paulo Janotti [Fri, 27 Oct 2017 21:27:06 +0000 (14:27 -0700)]
Skip one wmi test in Win Server Core (dotnet/corefx#24927)

The test requires notepad.exe and that is not available on Win Server
Core. Fixes dotnet/corefx#24912.

Commit migrated from https://github.com/dotnet/corefx/commit/b94869b1c55b17361f3931da1274e4b58f2a18e6

6 years agoFix System.Drawing.Configurations to be netstandard compatible (dotnet/corefx#24758)
Santiago Fernandez Madero [Fri, 27 Oct 2017 20:27:51 +0000 (13:27 -0700)]
Fix System.Drawing.Configurations to be netstandard compatible (dotnet/corefx#24758)

* Fix System.Drawing.Configurations to be netstandard compatible

* PR Feedback and Add net461 to pkgproj supported frameworks

* Add xamarin frameworks as inbox

* Change InboxOnTargetFramework to include $(AllXamarinFrameworks)

Commit migrated from https://github.com/dotnet/corefx/commit/46ea605b5df6a3fe4ac635a426e31488c30c64b0

6 years agoChange functions to not us CamelCase.
dseefeld [Fri, 27 Oct 2017 19:38:28 +0000 (19:38 +0000)]
Change functions to not us CamelCase.

Commit migrated from https://github.com/dotnet/corefx/commit/32a99cc58f67a4baa27b46a910a44d772ad3ff5d

6 years agoRenamed execute() function to include Retry in the name.
dseefeld [Fri, 27 Oct 2017 19:26:26 +0000 (19:26 +0000)]
Renamed execute() function to include Retry in the name.

Commit migrated from https://github.com/dotnet/corefx/commit/5ff873c65181cb0e378b383156602da85b0f1094

6 years agoRevert "Move to DotNetCore-Build agent pool (dotnet/corefx#24870)"
Matt Galbraith [Fri, 27 Oct 2017 19:00:58 +0000 (12:00 -0700)]
Revert "Move to DotNetCore-Build agent pool (dotnet/corefx#24870)"

This reverts commit dotnet/corefx@2faf454f9ad49bdc5672169d0a08d58407c40d7c.

Commit migrated from https://github.com/dotnet/corefx/commit/f54ac603947973b8da8ef7feb6bedce11bf3d649

6 years agoAdding System.DirectoryServices.Protocols Tests (dotnet/corefx#24872)
Tarek Mahmoud Sayed [Fri, 27 Oct 2017 17:48:56 +0000 (10:48 -0700)]
Adding System.DirectoryServices.Protocols Tests (dotnet/corefx#24872)

Commit migrated from https://github.com/dotnet/corefx/commit/ed49e27862404cb4b19793ebc3c14da0bbd522dd

6 years agoUse ConfigureAwait(false) for all await's
Matt Connew [Thu, 26 Oct 2017 20:58:29 +0000 (13:58 -0700)]
Use ConfigureAwait(false) for all await's

Commit migrated from https://github.com/dotnet/corefx/commit/fc82aed8f5a7af4968debb2682416f6aa25ca2d9

6 years agoMerge branch 'master' into PortablePdbsAndSourceServer
Vance Morrison [Fri, 27 Oct 2017 17:04:25 +0000 (10:04 -0700)]
Merge branch 'master' into PortablePdbsAndSourceServer

Commit migrated from https://github.com/dotnet/corefx/commit/daf476121cdd3907e195689ec603c3652f6b7aaa

6 years agoMerge branch 'master' into PortablePdbsAndSourceServer
Vance Morrison [Fri, 27 Oct 2017 17:01:25 +0000 (10:01 -0700)]
Merge branch 'master' into PortablePdbsAndSourceServer

Commit migrated from https://github.com/dotnet/corefx/commit/d554a50280849814476ac41409a4caed1f51a0b8

6 years agoMake ServicePointManager tests run out of proc (dotnet/corefx#24890)
Dan Moseley [Fri, 27 Oct 2017 16:56:30 +0000 (09:56 -0700)]
Make ServicePointManager tests run out of proc (dotnet/corefx#24890)

* Make ServicePointManager tests run out of proc

* cleaner

* Update UAP testbase

* Comment

* Ensure CEC is false for UAP

* Revert buildtools

Commit migrated from https://github.com/dotnet/corefx/commit/3deef79652ee5abb5e6dc2d6741fa5f9e5fbd89f

6 years agoUpdate ProjectNTfs, ProjectNTfsTestILC to beta-25827-01, beta-25827-01, respectively...
dotnet-maestro-bot [Fri, 27 Oct 2017 16:15:40 +0000 (09:15 -0700)]
Update ProjectNTfs, ProjectNTfsTestILC to beta-25827-01, beta-25827-01, respectively (dotnet/corefx#24917)

Commit migrated from https://github.com/dotnet/corefx/commit/a26c00761c4102e8fabf864450d5da1a175f4762

6 years agoMake corefx exceptions serializable and add typeforwards (dotnet/corefx#24427)
Viktor Hofer [Fri, 27 Oct 2017 16:00:52 +0000 (18:00 +0200)]
Make corefx exceptions serializable and add typeforwards (dotnet/corefx#24427)

* Add serializable attribute and typeforward and adding serialization impl
* Expose ZLibException in impl assembly
* Remove deserialization negative tests
* Adding tests for exceptions
* Adding SqlError data to base exception data table
* System Data Facade
* Add netfx471 blob diffs for Hashtable and ListDictionary
* Build Microsoft.NETCore.App.deps.json after manual shims
* Disable currently failing uap/uapaot tests because of shim assembly load errors

Commit migrated from https://github.com/dotnet/corefx/commit/e3f74deb999571d3f34a6b2b8011caebcf06dbfc

6 years agoAdd defaulting of params inside the function.
dseefeld [Fri, 27 Oct 2017 15:49:39 +0000 (15:49 +0000)]
Add defaulting of params inside the function.

Commit migrated from https://github.com/dotnet/corefx/commit/1f34f613b20895bc5fa03429ddaf467e9a62732a

6 years agoUpdate to latest build tools
Vance Morrison [Fri, 27 Oct 2017 15:37:43 +0000 (08:37 -0700)]
Update to latest build tools

Commit migrated from https://github.com/dotnet/corefx/commit/4f6e3ef97f7bc426263a3f87ebfee92f4c7b02f8

6 years agoAdd Span<T> Base64 conversion APIs that support UTF-8 (dotnet/corefx#24888)
Ahson Khan [Fri, 27 Oct 2017 04:56:47 +0000 (21:56 -0700)]
Add Span<T> Base64 conversion APIs that support UTF-8 (dotnet/corefx#24888)

* Add Span<T> Base64 conversion APIs that support UTF-8.

* Optimize the encoding loop when there is plenty of available space

* Optimize EncodeInPlace and update DecodeBaseline perf test.

* Addressing PR feedback, encode optimization, throw for negative lengths

* Reenable commented out perf tests.

* Cap the amount of data to process based on how much that will fit.

* Being explicit with access modifiers to follow guidelines.

Commit migrated from https://github.com/dotnet/corefx/commit/b7b34392afa430caf03d197789a493fd122db445

6 years agoUpdate BuildTools to prerelease-02126-05 (dotnet/corefx#24908)
dotnet-maestro-bot [Fri, 27 Oct 2017 02:20:53 +0000 (19:20 -0700)]
Update BuildTools to prerelease-02126-05 (dotnet/corefx#24908)

Commit migrated from https://github.com/dotnet/corefx/commit/dfb4bf4b7454fdbacbcada8ff8fe344a32fc527e

6 years agoMerge pull request dotnet/corefx#24889 from dotnet-maestro-bot/master-UpdateDependencies
Wes Haggard [Thu, 26 Oct 2017 22:18:43 +0000 (15:18 -0700)]
Merge pull request dotnet/corefx#24889 from dotnet-maestro-bot/master-UpdateDependencies

Update BuildTools, ProjectNTfs, ProjectNTfsTestILC to prerelease-02126-01, beta-25826-00, beta-25826-00, respectively (master)

Commit migrated from https://github.com/dotnet/corefx/commit/e9669afcf6551d7e99e92476e3ce96c521bbd4bb

6 years agoCultureInfoConverter added (dotnet/corefx#24855)
Anirudh Agnihotry [Thu, 26 Oct 2017 22:06:44 +0000 (15:06 -0700)]
CultureInfoConverter added (dotnet/corefx#24855)

* Culture Converter added

* space formatting

* Expected and actual argument reordered

* Removed to string

* Reference Converter and its test added

* fixing reference Converter

* Skipping test on framework

* CultureInfo added with others

* Removed Reference Connverter

Commit migrated from https://github.com/dotnet/corefx/commit/c6115c50849d1524a26b2aa4c44e905a31570870

6 years agoDisable alpine official tests build (dotnet/corefx#24898)
Jan Vorlicek [Thu, 26 Oct 2017 21:39:08 +0000 (23:39 +0200)]
Disable alpine official tests build (dotnet/corefx#24898)

* Disable alpine official tests build

* Fix parentheses

* Rename PB_EnableTestBuild to PB_DisableTestBuild

* Add Create Helix Test Jobs condition for Windows

Commit migrated from https://github.com/dotnet/corefx/commit/b5e3ba2bf0d42f42d2dde77b0ecd0e587a60d7a6

6 years agoMove to DotNetCore-Build agent pool (dotnet/corefx#24870)
Karthik Rajasekaran [Thu, 26 Oct 2017 20:18:58 +0000 (13:18 -0700)]
Move to DotNetCore-Build agent pool (dotnet/corefx#24870)

Commit migrated from https://github.com/dotnet/corefx/commit/2faf454f9ad49bdc5672169d0a08d58407c40d7c

6 years agoReacting to review enabling tests
drawaes [Thu, 26 Oct 2017 18:00:59 +0000 (19:00 +0100)]
Reacting to review enabling tests

Commit migrated from https://github.com/dotnet/corefx/commit/968ff23df8c555502223633244efcf4a574cbb97

6 years agoModifications to cleanup code.
dseefeld [Thu, 26 Oct 2017 18:38:15 +0000 (18:38 +0000)]
Modifications to cleanup code.

Commit migrated from https://github.com/dotnet/corefx/commit/374ab21a017eecf7ee10954b536dab6559c4d810

6 years agoAdd EventCounter to Microsoft.Diagnostics.Tracing.EventSource.Redist (dotnet/corefx...
Brian Robbins [Thu, 26 Oct 2017 18:29:50 +0000 (20:29 +0200)]
Add EventCounter to Microsoft.Diagnostics.Tracing.EventSource.Redist (dotnet/corefx#24893)

* Share EventSource tests with Microsoft.Diagnostics.Tracing.EventSource.Redist nuget package.

* Add EventCounter to Microsoft.Diagnostics.Tracing.

* Enable EventCounter tests on Microsoft.Diagnostics.Tracing.

Commit migrated from https://github.com/dotnet/corefx/commit/b87b7d304f85e5adbc665e326ed219bafa7b5eb1

6 years agoUpdated build tools needed to make sure CodeCoverage works
Vance Morrison [Thu, 19 Oct 2017 23:38:32 +0000 (16:38 -0700)]
Updated build tools needed to make sure CodeCoverage works

Also update docs about code coverage.

Commit migrated from https://github.com/dotnet/corefx/commit/54cfca559f6773326fcc0a646c163fbe53356674

6 years agoAdding more WMI tests (dotnet/corefx#24879)
Paulo Janotti [Thu, 26 Oct 2017 17:43:38 +0000 (10:43 -0700)]
Adding more WMI tests (dotnet/corefx#24879)

* Adding more WMI tests

* Opportunistically updating projects: removing suppression not needed
anymore, and add netfx for test

* Addressing review feedback

* Renaming test conditions

Commit migrated from https://github.com/dotnet/corefx/commit/9b5c2cd0899ac38728d37f61f539ff9b250bb88b

6 years agoMerge pull request dotnet/corefx#24881 from stephentoub/port_channels
Stephen Toub [Thu, 26 Oct 2017 16:40:28 +0000 (12:40 -0400)]
Merge pull request dotnet/corefx#24881 from stephentoub/port_channels

Add System.Threading.Channels to corefx

Commit migrated from https://github.com/dotnet/corefx/commit/f2600077158312adf605bc58d08a48a1e259b738

6 years agoSyndication test (dotnet/corefx#24570)
JimboWei [Thu, 26 Oct 2017 16:28:58 +0000 (00:28 +0800)]
Syndication test (dotnet/corefx#24570)

* Add SyndicationFeed Test case

* Add Xml compare Utils class

* Add CompareHelper for incomplete standard  feed files.

* Add issue dotnet/corefx#24571 and dotnet/corefx#24572 for failed test case.

* Change to use async method and mark failed case with active issue dotnet/corefx#24604

* Refactored code

* Add Feed files for AtomFees test

* Update

* Remove useless feeds files , and mark  the cause of the failed feeds files

* Update

* Modify test case from Async to Sync. Remove issue attribute dotnet/corefx#24571 dotnet/corefx#24572 dotnet/corefx#24604,
mark with new issue dotnet/corefx#24894.

Commit migrated from https://github.com/dotnet/corefx/commit/76baca36b0d678b9edb218c1aa08fec037a81a72

6 years agoAdded cleanup code if install dotnet cli fails
dseefeld [Thu, 26 Oct 2017 16:27:47 +0000 (16:27 +0000)]
Added cleanup code if install dotnet cli fails

Commit migrated from https://github.com/dotnet/corefx/commit/a2764c670dcec4fcfaa027e35a9e963132e5be5d

6 years agoChanged retry logic to use a function based on PR review feedback
dseefeld [Thu, 26 Oct 2017 16:11:39 +0000 (16:11 +0000)]
Changed retry logic to use a function based on PR review feedback

Commit migrated from https://github.com/dotnet/corefx/commit/5145fb1cec796cd4060b2393d7b58a6568866c24

6 years agoUpdate BuildTools, ProjectNTfs, ProjectNTfsTestILC to prerelease-02126-01, beta-25826...
dotnet-maestro-bot [Thu, 26 Oct 2017 13:39:25 +0000 (06:39 -0700)]
Update BuildTools, ProjectNTfs, ProjectNTfsTestILC to prerelease-02126-01, beta-25826-00, beta-25826-00, respectively

Commit migrated from https://github.com/dotnet/corefx/commit/0fd2fa29e3fe652e239e741daeecc7b7c867a872

6 years agoFix offical Alpine build - sync arguments (dotnet/corefx#24884)
Jan Vorlicek [Thu, 26 Oct 2017 10:32:42 +0000 (12:32 +0200)]
Fix offical Alpine build - sync arguments (dotnet/corefx#24884)

* Fix offical Alpine build - sync arguments

It turns out that the sync.sh command needs to be passed the -SkipTests
option too so that it doesn't try to sync core-setup packages that
are used only for running tests. Since there are no core-setup packages
for Alpine yet, the sync was failing.
I have also noticed that there was a recent change in the sync arguments
that I have not discovered after rebase of my changes to master. So I
have added the new option there.

* Replace SkipTests with BuildTests=false

I have realized that the build.sh and sync.sh command should be getting
-BuildTests=false instead of the -SkipTests to fix the problem.

Commit migrated from https://github.com/dotnet/corefx/commit/3f0bd5d8c3d019ad8b1561395030a58bc38ddfe9

6 years agoShare EventSource tests with Microsoft.Diagnostics.Tracing.EventSource.Redist nuget...
Brian Robbins [Thu, 26 Oct 2017 08:21:32 +0000 (10:21 +0200)]
Share EventSource tests with Microsoft.Diagnostics.Tracing.EventSource.Redist nuget package. (dotnet/corefx#24859)

Commit migrated from https://github.com/dotnet/corefx/commit/4583f3f5941a08a6baf1dfd5df4983703f1c7130

6 years agoFixed some issues with reader/writer wrapper. (dotnet/corefx#24882)
Shin Mao [Thu, 26 Oct 2017 06:29:07 +0000 (23:29 -0700)]
Fixed some issues with reader/writer wrapper. (dotnet/corefx#24882)

Commit migrated from https://github.com/dotnet/corefx/commit/59c4fe3716adb1746772400f1fe74c3fe72f9974

6 years agoadd some code to make sure we sent datagram before we try to receive it (dotnet/coref...
Tomas Weinfurt [Thu, 26 Oct 2017 04:56:36 +0000 (21:56 -0700)]
add some code to make sure we sent datagram before we try to receive it (dotnet/corefx#24615)

* add some code to make sure we sent datagram before we try to receive it. dotnet/corefx#17681

* use synchronous send with timeout instead of task to avoid race condition

Commit migrated from https://github.com/dotnet/corefx/commit/0911d81e8d7371fa06236562c1ad702e818af295

6 years agoRemove dead code from System.Net.Security (dotnet/corefx#24816)
Stano Peťko [Thu, 26 Oct 2017 03:58:58 +0000 (05:58 +0200)]
Remove dead code from System.Net.Security (dotnet/corefx#24816)

* Deleted dead code from System.Net.Security.

* Returned back strings used in other platforms.

* Returned back strings used in OSX platform.

* Returned back event_ strings.

Commit migrated from https://github.com/dotnet/corefx/commit/56623123ed2dcf664499c297c1652c68de623769

6 years agoUpdate CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC, Standard to previ...
dotnet-maestro-bot [Thu, 26 Oct 2017 03:57:47 +0000 (20:57 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC, Standard to preview1-25826-01, preview1-25825-08, preview1-25825-07, beta-25825-00, beta-25825-00, preview1-25825-02, respectively (dotnet/corefx#24864)

Commit migrated from https://github.com/dotnet/corefx/commit/41a72f2cfbf0a504febe8f3c5bd67c29f876fdfa

6 years agoMerge pull request dotnet/corefx#24820 from stephentoub/fix_http_issues
Stephen Toub [Thu, 26 Oct 2017 02:43:54 +0000 (22:43 -0400)]
Merge pull request dotnet/corefx#24820 from stephentoub/fix_http_issues

Fix a few ManagedHandler issues

Commit migrated from https://github.com/dotnet/corefx/commit/4b1137f8d46955904462acff7b2da34a9aa96d39

6 years agoFix matching algo, remove pin because of client buffer use, moved gchandle to ssl...
Drawaes [Wed, 25 Oct 2017 23:51:21 +0000 (00:51 +0100)]
Fix matching algo, remove pin because of client buffer use, moved gchandle to ssl context

Commit migrated from https://github.com/dotnet/corefx/commit/01709e234375bf1aecd9d2362d4a311a8094114e

6 years agoBoost code coverage
Stephen Toub [Wed, 25 Oct 2017 23:43:10 +0000 (19:43 -0400)]
Boost code coverage

And a few minor resulting fixes.

Commit migrated from https://github.com/dotnet/corefx/commit/283af038c1c09b324e76acc8bb2c8a447b6664e6

6 years agoConsistently check for cancellation before operations
Stephen Toub [Wed, 25 Oct 2017 22:59:46 +0000 (18:59 -0400)]
Consistently check for cancellation before operations

Commit migrated from https://github.com/dotnet/corefx/commit/0558ff46df30b93b22d7567d2f58f9b1755df7cd

6 years agoAdd System.Threading.Channels to corefx
Stephen Toub [Wed, 25 Oct 2017 22:55:40 +0000 (18:55 -0400)]
Add System.Threading.Channels to corefx

Bring the source over from corefxlab, add a package, get everything building, etc.

Commit migrated from https://github.com/dotnet/corefx/commit/c8ec3a850bd05aa8d8a6067071b723366b5648a3

6 years agoEnable official builds for Alpine Linux (dotnet/corefx#24876)
Jan Vorlicek [Wed, 25 Oct 2017 22:45:03 +0000 (00:45 +0200)]
Enable official builds for Alpine Linux (dotnet/corefx#24876)

* Enable official builds for Alpine Linux

This change enables official builds for Alpine 3.6. It doesn't enable
tests since we don't have a way to create Alpine queue.

* Reflect PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/789035424aa1d3940baa3acde7b78fd78641b5e4

6 years agoAdd retry logic for setup of dotnet cli
dseefeld [Wed, 25 Oct 2017 22:06:32 +0000 (22:06 +0000)]
Add retry logic for setup of dotnet cli

Commit migrated from https://github.com/dotnet/corefx/commit/bb848b9b6d83d87dfe2f6bd21922f8fc58db9d3f

6 years agoMerge pull request dotnet/corefx#24830 from weshaggard/MergeDevRelease200
Wes Haggard [Wed, 25 Oct 2017 22:02:02 +0000 (15:02 -0700)]
Merge pull request dotnet/corefx#24830 from weshaggard/MergeDevRelease200

Merge dev/release/2.0.0 into master

Commit migrated from https://github.com/dotnet/corefx/commit/74279f3945dac92132835c924cce3e1ecc794b66

6 years agoUse the Host header for the SSL handshake
Stephen Toub [Mon, 23 Oct 2017 19:32:19 +0000 (15:32 -0400)]
Use the Host header for the SSL handshake

Commit migrated from https://github.com/dotnet/corefx/commit/5ecea8ff47c03a073a77916a9c7d1d806f8c7ce3

6 years agoDon't fail a redirect that's missing a Location header
Stephen Toub [Mon, 23 Oct 2017 19:31:51 +0000 (15:31 -0400)]
Don't fail a redirect that's missing a Location header

Commit migrated from https://github.com/dotnet/corefx/commit/ddfab940fcc2d571c2da85250c13e457ab1933a2

6 years agoFix DecompressionHandler ContentEncoding logic
Stephen Toub [Mon, 23 Oct 2017 19:23:29 +0000 (15:23 -0400)]
Fix DecompressionHandler ContentEncoding logic

Not clear what it's currently trying to do.  It should be simple.

Commit migrated from https://github.com/dotnet/corefx/commit/3c17c2251b4bda98273e57ef153cc9bc267805c8

6 years agoReorder cookie handling in handler chain
Stephen Toub [Mon, 23 Oct 2017 19:22:51 +0000 (15:22 -0400)]
Reorder cookie handling in handler chain

It should come lower in the stack than proxy or credentials so that any responses that trigger re-requests and that have Set-Cookie headers are appropriately processed.

Commit migrated from https://github.com/dotnet/corefx/commit/8b5dced9d6b8df49c6dfa49af8015bd47f9a811d

6 years agoSSLStream Fixing GC Hole (dotnet/corefx#24799)
Tim Seaward [Wed, 25 Oct 2017 16:44:05 +0000 (17:44 +0100)]
SSLStream Fixing GC Hole (dotnet/corefx#24799)

* Fixing GC Hole

* Moved back to original pin location

* Added Finializer

* Make tests async

* Reacting to review
Putting back the init code in the cpp file for the out params (lost in a reset)

* Added active issue on the failure test

* React to review

* Added Active Issue for Linux success tests

Commit migrated from https://github.com/dotnet/corefx/commit/2bd69b97b763e0acdfa082eed1a281a5f5afffa5

6 years agoAllow publish to continue (dotnet/corefx#24867)
Karthik Rajasekaran [Wed, 25 Oct 2017 16:04:14 +0000 (09:04 -0700)]
Allow publish to continue (dotnet/corefx#24867)

Commit migrated from https://github.com/dotnet/corefx/commit/a5d4213b24f37ff1dbccbe29b2eba1cb65970f30

6 years agoUpdate dependencies to match master and new property names
Wes Haggard [Mon, 23 Oct 2017 23:43:06 +0000 (16:43 -0700)]
Update dependencies to match master and new property names

Commit migrated from https://github.com/dotnet/corefx/commit/ad6fbdf70583ef0b8c7a73530e426d6a66f1b8af

6 years agoFix a couple merge issues in init-tools.sh
Wes Haggard [Tue, 24 Oct 2017 00:02:35 +0000 (17:02 -0700)]
Fix a couple merge issues in init-tools.sh

Commit migrated from https://github.com/dotnet/corefx/commit/afc229b0eda9c1bd2ae596ad2bac40508d2b6ff5