Commit Graph
137 Commits
Author SHA1 Message Date
Jeff Handley 895c99cc50 Remove old fwlink from Obsolete messages and make message improvements (#56690)
* Remove old fwlink from Obsolete messages and make message improvements

* Thorough review and update of Obsolete messages

* Cleanup

* Make messages about unsupported APIs more consistent

* Update RequiresUnreferencedCodeAttribute messages to be consistent between ref and src

* Cleanup

* Cleanup

* Use 'not supported' instead of 'no longer supported'

* Omit unnecessary error:false from Obsolete attributes. Fix message typo.

* Remove old comment

* PR feedback
2021-08-04 14:58:10 -04:00
Stephen Toub ff72cc92a0 Add CookieContainer.GetAllCookies (#53441) 2021-05-29 09:10:48 -04:00
Santiago Fernandez Madero 689bac6222 Fix APICompat errors for atttributes on parameters (#49408) 2021-03-11 00:03:10 -08:00
Annchous 308ae6ad83 Add IsIPv6UniqueLocal property (#48853)
* Add IsIPv6UniqueLocal property
2021-02-27 21:06:21 -08:00
Stephen Toub 2b0e2785e5 Use [NotNullWhen(true)] in more places (#47598)
* Use [NotNullWhen(true)] in more places

Did a quick search/audit for methods that returned bool and took nullable object as the first input, and added [NotNullWhen(true)] where it was obviously correct.

* Address PR feedback
2021-01-30 06:09:28 -05:00
Geoff KizerandGeoffrey Kizer 6e5787f2c5 define HttpVersion.Version30 and use where appropriate (#47208)
* define HttpVersion.Version30 and use where appropriate

* add xmldoc to HttpVersion

* fix debug references

* readd HttpVersion30 to HttpClientHandlerTestBase

* revert changes to HttpClientHandlerTest.cs

Co-authored-by: Geoffrey Kizer <[email protected]>
2021-01-20 16:37:58 -05:00
Krzysztof Wicher 3ac170acc8 Ensure <Nullable>enable<Nullable> on System.IO.Packaging and S.Resources.Extensions (#41731)
Fix src ref diffs
2020-09-09 09:15:30 -07:00
aaecee0646 Remove System.Net.Connections and related features (#41648)
* remove System.Net.Connections and related features

* cleanup csproj changes

* Update src/libraries/pkg/baseline/packageIndex.json

Co-authored-by: Cory Nelson <[email protected]>

* Update src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.Tasks.cs

Co-authored-by: Cory Nelson <[email protected]>

Co-authored-by: Geoffrey Kizer <[email protected]>
Co-authored-by: Cory Nelson <[email protected]>
2020-09-01 19:31:14 -07:00
Anton Firszov 296c90a362 Add NetworkError.TimedOut, rename Unknown to Other (#40841)
Adds NetworkError.TimedOut,
Renames Unknown to Other assuming my proposal gets accepted, will revert if not,
Improves exception message
2020-08-17 13:12:05 +02:00
Geoff Kizer 4b593940ee add NetworkException (#40344)
* add NetworkException
2020-08-07 09:52:30 -07:00
Cory Nelson a34177e1ec QUIC and HTTP/3 fixes (#40468)
Update/fix MsQuic P/invoke layer.
Fix a race condition in MsQuicListener setting MsQuicConnection.Connected.
Some MsQuic cleanup.
Remove (un-reviewed) HttpVersion.Version30 and SslApplicationProtocol.Http3 APIs.
Fix Alt-Svc support.
Make Alt-Svc tests timeout properly.
2020-08-06 12:43:49 -07:00
Anirudh Agnihotry 621ed57461 Correcting Mismatch between ref and src (#39741)
* minor formatting

* ref changes
2020-07-30 14:52:46 -07:00
Anirudh Agnihotry e94cd90ad1 Adding attribute keyword to all the attributes in the ref (#39255) 2020-07-14 10:03:52 -07:00
Stephen Toub 6072e4d3a7 Update license headers (#38793) 2020-07-08 09:23:11 -04:00
Kevin JonesandStephen Toub 8f8cfd446d Additional nullable annotation on IPAddress (#34698)
* Additional nullable annotation on IPAddress.

* TryParse for System.Net.Http

* TryParse for System.Runtime.Numerics

* CoreLib TryParse nullable annotations

* Update Runtime reference source.

* NotNullWhen for Guid format.

* NotNullWhen for DateTime{Offset} format parameters

* Correct format parameter nullability for TimeSpan.

* Update reference source.

Co-authored-by: Stephen Toub <[email protected]>
2020-04-15 22:43:53 -04:00
Stephen Toub 1e3e7a9c36 Annotate System.Net.WebProxy for nullable reference types (#32612) 2020-02-22 21:11:01 -05:00
IlyaandStephen Toub b59225da89 Annotate System.Net.Primitives for nullable (#31794)
* Annotate System.Net.Primitives for nullable

* Fix build breaks in other libraries due to new annotations

Co-authored-by: Stephen Toub <[email protected]>
2020-02-21 17:59:19 +00:00
Levi Broderick 0d08b0232d API review URL should be HTTPS, not HTTP (#32281) 2020-02-14 08:07:46 -08:00
Anirudh Agnihotry 725968c3c5 New Configuration System (#1787)
* libraries -restore for vertical build without test restore

* Automatic test change and regex to remove the addition of an extra line at eof

* manual test restore fixed (restore completely done for vertical build)

* build native done

* Automatic ref change and regex to remove the last line

* manual reference assebly change and generated shims build

* automatic src change and regex

* native bin place and src build manual change

* apicompat and pretest.csproj done

* fixing the package build

* fixing all config

* packaging and feedback

* adding back placeholder configuration

* fixing the shims

* delete configuration.props

* making the build work in master

* Test Change

* fixing the packageing, test restore replacing TargetFramework -> OriginalTargetFramework

* delete test configuraiton.props, trailing semicolon and use targetFramework

* reverting the package change

* enable apicompat and fixing configurationGroup for individual projects

* fixing the api compat

* making ilproj work

* adding the outerBuildTest

* adding the arcade package version

* fixing the merge conflicts

* minor changes

* adding additional configs and setting the runtimeOS

* making the  vs stuff work

* removing the target Group to fix the apicompat

* fixing the linux build and some minor changes

* making additionalBuildTargetFramework LOcalProperty

* fixing the allConfigurations build

* fixing the netfx build

* fixing package Testing and restore

* Missing  TargetFrameworks tag

* making the VSdesgin stuff work

* Remove OriginalFramework Entirely

* some minor pr feedback

* RemoveExtraSemicolon

* use boolean exclude flag

* fixing yml scripts to pass tests

* adding comments and some minor feedback

* moving packaging property to correct plave

* fixing the build for web assembly

* Fixing the live ci build

* Fixing the live build for shims

* fixing the tests

* fixing the packaging and enterprise linux

* fixing  package sizes

* Fix the targetFramework

* updating the targetFramework sdl

* removing the buildOS and be able to use OSGroup as done in the old system

* Fixing the osgroup stuff for send to helix task

* Fix OSX failures

* Fixing the osx build

* uploading tmp folder to artifacts

* running restore for runtime.deproj correctly
2020-02-06 05:24:08 +00:00
Jan Kotas 099a512445 Merging small assemblies (part 1/N) (#2189)
* Delete unnecessary ClsCompliant

* Merge System.Diagnostics.Tools\src into CoreLib

* Merge System.Security.Pricipal\src into CoreLib

* Delete System.IO.UnmanagedMemoryStream\ref\System.IO.UnmanagedMemoryStream.cs

* Delete System.Reflection\ref\System.Reflection.cs

* Delete  System.Threading.Timer\src\ApiCompatBaseline.uapaot.txt

* Delete System.Buffers\src\Resources\Strings.resx

* Merge System.Buffers\ref into System.Runtime

* Merge System.Diagnostics.Debug\ref into System.Runtime

* Delete *\MatchingRefApiCompatBaseline.txt

* Merge System.Diagnostics.Tools into System.Runtime\ref

* Merge System.Resources.ResourceManager into System.Runtime\ref

* Cleanup System.IO.* project references

* Cleanup System.Reflection project references

* Cleanup System.Runtime.Handles project references

* Merge System.Threading.Thread\src into CoreLib

* Merge System.Threading.Timer\ref into System.Runtime

* Merge System.Threading.Tasks\ref into System.Runtime
2020-01-29 10:02:22 -08:00
Cory Nelson 6f6c94dbb2 Add HTTP/3 draft 25 support. (#1294) 2020-01-26 23:50:54 -08:00
Anirudh Agnihotry 3b9abae5aa Removing "netcoreapp" and "netfx" TargetGroup (#457)
* netcoreapp -> netcoreapp5.0 in .sln files

* netcoreapp; -> netcoreapp5.0;  , netcoreapp- to netcoreapp5.0-

* netcoreapp- -> netcoreapp5.0 in .csproj

* 'netcoreapp -> 'netcoreapp5.0 in .csproj

* done with libraries sub folder

* missed semicolon

* minor changes

* netcoreapp -> netcoreapp5.0 in some extra files

* vNext target variable in configurations.props

* netcoreapp => netcoreapp5/0 in some other .props file

* netcoreapp -> vnext in .csproj

* making the netcorepap framework switch work

* fixing sendToHelix and linux build

* TargetFrameworkVNext -> netcoreappCurrent

* case correct netcoreappcurrent

* fixing send to helix zip path

* netfx -> net472 in .sln

* netfx; -> net472; in .props

* netfx- -> net472- in .props

* netfx - -> net472- in .csproj

* 'netfx-> 'net472 in .csproj

* netfx -> net472 manual change

* fixing ci build for netfx

* Not trying to change the global property

* Fixing build failure due to master changes in net https tests

* adding documentaiton and fixing filtering

* netcoreapp -> netcore5.0 in py file

* changing the path to use netcoreapp5.0 version

* feedback and override corefx path corrected in installers

* remaing netcoreapp5.0 changes done

* netcoreapp-> netcoreapp5.0 after live builds

* net472 -> netframeworkcurrent
2019-12-14 12:22:29 -08:00
Viktor Hofer 9b88ca1d72 Remove UAP target (dotnet/corefx#41759)
* Remove Uap target

* Remove RemoteInvokeForUap wrapper calls entirely

* Harvest S.D.SqlClient on UWP

* Disable UWP PInvoke analyzer

* Enable WindowsRuntime* tests on netcoreapp

Commit migrated from https://github.com/dotnet/corefx/commit/3b6ec2ba944fb72f921f95b99b6ebf2e7bb3dc5a
2019-10-17 15:04:39 +02:00
Viktor Hofer d5079dda17 Remove ProjectGUIDs from project files and Project and Name attributes from P2Ps (dotnet/corefx#40926)
* Remove ProjectGUIDs from P2Ps

* Remove ProjectGUIDs from project files

Commit migrated from https://github.com/dotnet/corefx/commit/c22714d65151968a17c3b232748880d5e7961dee
2019-09-09 18:21:25 +02:00
Tomas Weinfurt 041930b6b1 followup on SocketAddress validation (dotnet/corefx#40165)
* followup on SocketAddress validation
* update unknow faimily tests
* feedback from review
* fix spelling
* add comments about new values
* feedback from review


Commit migrated from https://github.com/dotnet/corefx/commit/b129f7657a1b93ce9cf577d769d9d03c862e2338
2019-08-10 12:44:54 -07:00
Tomas Weinfurt 0cbbd884eb initial support for new network protocols (dotnet/corefx#37315)
* initial support for new network protocols

* feedback from review

* fix compilation of AF_CAN


Commit migrated from https://github.com/dotnet/corefx/commit/6f6790fa8219359f2acbe4b0624a3fa9a0a6943b
2019-05-22 11:31:10 -07:00
Tanner Gooding 5a5ed7652a Regenerating reference sources in order to reorder enum fields (dotnet/corefx#37045)
Commit migrated from https://github.com/dotnet/corefx/commit/17382def0f680653870c31af1acf086ac41dcc0b
2019-04-23 13:40:45 -07:00
Viktor Hofer f8a8530d0f Project msbuild syntax cleanup (dotnet/corefx#35686)
* Remove license header from non-shipping files

* Remove obsolete Project attributes

* Remove xml header and remove DefaultTargets


Commit migrated from https://github.com/dotnet/corefx/commit/c390ce7df50252e11f5d322276e9d19e046d1332
2019-03-03 18:55:25 +01:00
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08:00
Jeremy Barton cefe07725e Add initial support for TLS 1.3 to .NET Core
* TLS 1.3 connections have been tested on Ubuntu 18.10 (OpenSSL 1.1.1).
* There's no public version of Windows with TLS 1.3 enabled.
* There's no public version of macOS with TLS 1.3 enabled out of the box.

When making use of SslProtocols.None (system default) TLS 1.3 is already working on Ubuntu 18.10, this change mainly makes it so that EncryptionPolicy.None is better handled, and that we can restrict-to and report TLS 1.3.

Commit migrated from https://github.com/dotnet/corefx/commit/d30157d9e48cf73e267994e45953722d18ccd4c6
2018-11-12 17:49:05 -08:00
Blake Hensley e976d8889c Add IPEndPoint.Parse & IPEndPoint.TryParse (dotnet/corefx#33119)
* Added IPEndPoint.TryParse and unit tests for valid data. Need Parse and invalid data tests.

* Parse implemented and unit tests complete

* Update comments

* Misc small fixes

* Simplify TryParse

* Refactor to address feedback

* Fix logic error

* Change TryParse call

* Add unit test for plus sign in port number

* Remove check for neg on uint


Commit migrated from https://github.com/dotnet/corefx/commit/ba6a1037c4e3dd0f0cc46a02a8a2b649e6adec7c
2018-10-30 16:01:26 -04:00
Sam Neirinck 68b24b8b69 Cleanup MSDN URL's (dotnet/corefx#32663)
* Fix non-https msdn links

* Additional HTTPS treatment


Commit migrated from https://github.com/dotnet/corefx/commit/0bfc4f3cf62f6fc29162ad5b1b89acc14124a375
2018-10-09 11:59:36 -07:00
Eric Erhardt 8b6d5baf20 Change .csproj to new Configurations property
Change .sln to use the managed C# project system GUID.


Commit migrated from https://github.com/dotnet/corefx/commit/e05508a62d28f4807f85abe9cb7adf8382f792b4
2018-06-28 17:49:22 -05:00
Eric Erhardt 70091b9c8b Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ad505eb98c6a887db2d2932fec256d9e4e394169
2018-06-11 17:20:10 -05:00
Yevgeniy Redko 60ea7594b9 Implement ICollection<Cookie> on CookieCollection (dotnet/corefx#30080)
* Implement ICollection<Cookie> on CookieCollection

* Remove breaking change and improve tests

* Move netcoreapp Compile directives into separate ItemGroup in tests

* Revert m_list from List<Cookie> to ArrayList


Commit migrated from https://github.com/dotnet/corefx/commit/2c309c241329f66a79d004c12b05a9d82332b0eb
2018-06-03 00:42:33 +02:00
Martijn Laarman ea0ba1301e Add All enum value to DecompressionMethods (dotnet/corefx#30075)
Fixes dotnet/corefx#29243

Updates the Decompression tests to explicitly use
DecompressionMethods.All

Commit migrated from https://github.com/dotnet/corefx/commit/3c2ce7b352873d2faa088d07b06bc96a00f44e0e
2018-06-02 08:58:01 -04:00
wtgodbe f38ceb30be Convert all .csproj files in src to SDK-style projects
Commit migrated from https://github.com/dotnet/corefx/commit/91d7e62bbf28094a2b419b87847bcd6a7658564d
2018-05-21 11:53:46 -07:00
Stephen Toub 707aceaacc Add Brotli support to SocketsHttpHandler (dotnet/corefx#29729)
* Add Brotli support to SocketsHttpHandler

- Add DecompressionMethods.Brotli
- Add support for Brotli to SocketsHttpHandler
- Add some tests

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/91f2cd7e3de0c4eab799e4d946b1d50c4d15d930
2018-05-16 21:40:53 -04:00
Caesar Chen 5d76d98077 Update HttpStatusCode enum (dotnet/corefx#26727)
* Update HttpStatusCode enum

* address feedback


Commit migrated from https://github.com/dotnet/corefx/commit/504781cbfb166c71204b9077c0528623c85cf68c
2018-02-01 09:13:32 -08:00
Per Bjorklund 3396e90704 Implement Span overloads for IPAddress class
See issue dotnet/corefx#22607
This adds
public IPAddress(ReadOnlySpan<byte> address)
public IPAddress(ReadOnlySpan<byte> address, long scopeid)
public bool TryWriteBytes(Span<byte> destination, out int bytesWritten)
public static IPAddress Parse(ReadOnlySpan<char> ipSpan)
public static bool TryParse(ReadOnlySpan<char> ipSpan, out IPAddress address)
public static bool TryFormat(Span<char> destination, out int bytesWritten)


Commit migrated from https://github.com/dotnet/corefx/commit/0029b322154053a76b085ccb6f3f820a5c9a263f
2017-08-21 13:08:55 -04:00
Wes Haggard eb1f0e0530 Remove all .builds files under pkg/ref/src/tests library folders
Commit migrated from https://github.com/dotnet/corefx/commit/b60cbe5a2edb5ef3b88a7738507822d13d125d62
2017-02-15 16:32:03 -08:00
Wes Haggard 4effd546bc Add ProjectGuids for all projects and empty configs for projects without BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/d00bb5d18ac91189b12ed2fb7131d0ff62da9034
2017-02-02 15:02:57 -08:00
Eric St. John 2ef0e9bfd8 Sync PropertyGroups and BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/7e4792af39bd7faba20dd3390b411f3afaee3c66
2017-01-30 13:23:56 -08:00
Jose Perez Rodriguez dd708b105d Adding missing Configurations.props for refs and fixing the existing ones (dotnet/corefx#15291)
Adding missing Configurations.props for refs and fixing the existing ones

Commit migrated from https://github.com/dotnet/corefx/commit/2847e0ec9f7c9ac42d44d2bc8c6fd39e504b7a9b
2017-01-19 16:38:55 -08:00
Karthik Rajasekaran 4bbdadd88a Update project configuration and sln files (dotnet/corefx#15182)
* Add ValidateVSConfigurations

* Update project config and sln files.


Commit migrated from https://github.com/dotnet/corefx/commit/f6ab339f446e37505f93ef9f430801fa1dcc05b8
2017-01-17 14:31:23 -08:00
Alex Perovich 573869c47f Automated update of ns1.7->ns2.0 and nca1.1->nca2.0
Commit migrated from https://github.com/dotnet/corefx/commit/1f8b5264a8156f91c48b2dc344d5410ee6f574cb
2017-01-10 16:20:42 -08:00
Alex Perovich c3087a2ed5 Manual changes for ns2.0 rename
Commit migrated from https://github.com/dotnet/corefx/commit/7bba15c1d2518d3f0bb85c40ed87322edfdf87eb
2017-01-10 16:20:29 -08:00
Jose Perez Rodriguez 069a507017 Changes required to have the repo building after merge
Commit migrated from https://github.com/dotnet/corefx/commit/4ef4fa55c950367fdaed2749ea124ead6f8296db
2017-01-06 14:41:32 -08:00
Jose Perez Rodriguez 846d8ab24b Merge branch master into dev/eng
Commit migrated from https://github.com/dotnet/corefx/commit/44b68e694948065c1b61457cec125d3d64c1fa22
2017-01-05 14:03:56 -08:00
dotnet-bot f6c2208f04 Update CoreClr, CoreFx, ProjectNTfs to beta-24904-02, beta-24904-01, beta-24904-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/81832da776d1502b0a68219cba6b8cbaf9399ed6
2017-01-04 09:48:26 +00:00