Commit Graph
158 Commits
Author SHA1 Message Date
Eric StJohn a58e4fb648 Fix inconsistent attributes between ref and src (dotnet/corefx#32715)
Commit migrated from https://github.com/dotnet/corefx/commit/f42778ac1c71ed1646d07fb7293ccf11f18047f5
2018-10-11 15:19:17 +02: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
Marco Rossignoli bf24929564 Added System.Runtime.ProfileOptimization (dotnet/corefx#31067)
Commit migrated from https://github.com/dotnet/corefx/commit/23fab4631ed927f5657e4ab4a6ce4d45d08bcf7a
2018-08-02 21:16:26 -07:00
Dan Moseley 93db63864a Seal Appdomain to match NETFX (dotnet/corefx#31399)
Commit migrated from https://github.com/dotnet/corefx/commit/b9d82ae7fd6912b6c0c758e47d0824689adaeafc
2018-07-27 05:17:24 -07:00
Marco Rossignoli 8fd6014fec Add back most CreateInstance APIs to AppDomain and Activator (dotnet/corefx#30809)
Commit migrated from https://github.com/dotnet/corefx/commit/ab6f3daaab793f7146c4676d74a36dcd9601c555
2018-07-23 22:48:37 -07:00
Eric Erhardt cf57323259 Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/e72643b4aab4b33a33baad1fa74b0551cc2cf739
2018-07-05 19:22:10 -05:00
Anirudh Agnihotry b251c619a9 Exposing SetupInformation, TargetFramework and ApplicationBase (dotnet/corefx#30839)
* Exposing SetupInformation in AppDomain.cs and targetFramework, ApplicationBase in AppDomainSetup.cs

* Removing setter, local variables and ctor

* ctor added

* Disabling test on netfx and adding comment

* modify typo corrected


Commit migrated from https://github.com/dotnet/corefx/commit/8804b7d68dec4422ddb1a2577275af6e3e8eb74a
2018-07-05 13:33:24 -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 96c6a1b8fa Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/0c7364e3a25b0d20dd5b4181fcb3041d949b92b9
2018-06-19 15:51:04 -05:00
Vance Morrison 2587d3b5d8 Expose and Add tests for StringBuilder overloads of TextWriter (dotnet/corefx#30491)
* Expose and Add tests for StringBuilder overloads of TextWriter

Add tests for implementation in https://github.com/dotnet/coreclr/pull/18281
This supports the issue https://github.com/dotnet/corefx/issues/30048

* Remove empty line

* Added tests for empy and large strings for the Text.Write*(StringBuilder) APIs

* Add AppCompat overrides for UWP.

(lost in merge conflict)

* review feedback


Commit migrated from https://github.com/dotnet/corefx/commit/7e4093b9787b54da5329e5f752c34f42610c9e39
2018-06-18 19:00:42 -04:00
Marco Rossignoli 6a977d4bc5 Add Path.Join string overloads (dotnet/corefx#30447)
* update tests

* add null tests

* add null tests

* added uapaot ApiCompatBaseline


Commit migrated from https://github.com/dotnet/corefx/commit/2776b6373590a896833b8b0eec4446f22f502ab0
2018-06-18 11:53:25 -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
Anirudh Agnihotry 2f3b89b19c Tests For GetFullPath(string path,string basePath) (dotnet/corefx#27085)
Commit migrated from https://github.com/dotnet/corefx/commit/f8df80f76769aa842ecf2c79eb3e3250d473c7e3
2018-03-16 15:30:21 -07:00
Stephen Toub 7482b6a4b0 Expose and roll out ValueTask extensibility
This commit does several things:
- Exposes the new `ValueTask` extensibility model being added in coreclr.  The ValueTask-related files will separately be mirrored over to corefx to enable the netstandard build of System.Threading.Tasks.Extensions.
- Adapts all `Stream`-derived types to return `ValueTask` instead of `Task` from `WriteAsync`.
- Changes the new `WebSocket` `SendAsync` method to return `ValueTask` instead of `Task`, and updates the `ManagedWebSocket` implementation accordingly.  Most `SendAsync`s on `ManagedWebSocket` should now return a `ValueTask` that's either completed synchronously (no allocation) or using a pooled object.  It now uses the underlying transport's new `WriteAsync` overload that returns `ValueTask`.
- Switches more uses of `ReadAsync` and `WriteAsync` over to the new overloads, including in Process, DeflateStream, BrotliStream, File, HttpClient, SslStream, WebClient, BufferedStream, CryptoStream,
- Removed some unnecessary array clearing from various routines using ArrayPool (after the clearing was added we changed our minds and decided clearing was only necessary in very specific circumstances)
- Implements a custom `IValueTaskSource` in Socket, such that async receives and sends become allocation-free (ammortized).  `NetworkStream` then inherits this functionality, such that its new `ReadAsync` and `WriteAsync` are also allocation-free (in the unbounded channel implementations; we can subsequently add it in for bounded).
- Implements a custom `IValueTaskSource` in System.Threading.Channels, such that reading and writing are ammortized allocation-free up to one concurrent reader and writer.
- A few random things I noticed as I was going through, e.g. missing ConfigureAwait, some incorrect synchronization in tests, etc.
- Adds a ton of new tests, mainly in System.Threading.Tasks.Extensions, System.Threading.Channels, and System.Net.Sockets.


Commit migrated from https://github.com/dotnet/corefx/commit/6d1671b2cfcf130b7bc6c059bb0508073426532a
2018-03-02 09:56:25 -08:00
Jeremy Kuhne f72d454194 Expose Path.Join and tests (dotnet/corefx#27522)
* Expose Path.Join and test. Depends on https://github.com/dotnet/coreclr/pull/16561

* Update for final API review changes

* Address feedback

* Address more feedback.


Commit migrated from https://github.com/dotnet/corefx/commit/0a092a2ef5d192eba762ddff205dfa13861c37eb
2018-02-28 13:02:34 -08:00
Anirudh Agnihotry 7552566520 Tests for StringComparer Create(culture, CompareOptions) overload (dotnet/corefx#27051)
Commit migrated from https://github.com/dotnet/corefx/commit/e2fc82a68ba26767c2b0aa8e766573c32a422088
2018-02-23 10:38:19 -08:00
Tanner Gooding f67b83fcfb Adding the Acosh, Asinh, Atanh, and Cbrt functions to System.Math and System.MathF
Commit migrated from https://github.com/dotnet/corefx/commit/2aee413653a0661b47f1c168a13a89523b18c878
2018-02-07 14:20:39 -08:00
Anirudh Agnihotry dd44b47581 Tests for span overloaded path api (dotnet/corefx#26017)
tests added for span overload for path Apis

Commit migrated from https://github.com/dotnet/corefx/commit/1a21a67b178a4fdbfcc4d1e4f449e5c285af9056
2018-02-06 15:54:23 -08:00
Jan Kotas 27d98c0776 Delete unnecessary SecurityCritical and SecuritySafeCritical annotations
Commit migrated from https://github.com/dotnet/corefx/commit/0bb106232745aedfc0d0c5a84ff2b244bf190317
2017-11-19 10:37:38 -08:00
Stephen Toub 4c444a7bbd Override Read{Block}{Async}(Span/Memory) on StreamReader (dotnet/corefx#24734)
* Override Read{Block}{Async}(Span/Memory) on StreamReader

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/e2563988089e63c3ec0efcdad230a853c3b5c97c
2017-10-20 09:33:39 -04:00
Stephen Toub 16e24dd2e7 Add Span/Memory overrides to StreamWriter (dotnet/corefx#24725)
- Refactors StreamWriter to work in terms of Span/Memory.
- Adds TextWriter-overrides for the Span/Memory-based methods.
- Exposes the new members from the ref.
- Adds tests for the new methods.
- Respond to API review feedback that we should be naming parameters to match existing overloads, here using `buffer` instead of `source` or `destination`, since `buffer` is already used in overloads on these types.

Commit migrated from https://github.com/dotnet/corefx/commit/b272c1bde8d5d2e2b72772d2eb1f8b0496d05310
2017-10-19 12:40:56 -04:00
Stephen Toub decdd3df1a Expose/test Span-based Convert methods (dotnet/corefx#24474)
Commit migrated from https://github.com/dotnet/corefx/commit/602d2eda381f858ace4a9f6771a7272a044ee36a
2017-10-18 07:09:28 -04:00
Stephen Toub ca860429f9 Add TextReader/Writer Memory-based virtuals (dotnet/corefx#24434)
* Add Memory-based Read/WriteAsync virtuals to TextReader/Writer

* Override Span/Memory-based APIs on StringReader/Writer

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/03d705664c6c14b3ac3b1c73caae69e91542f530
2017-10-05 00:36:18 -04:00
Stephen Toub 495736cd43 Expose MemoryStream.Read/WriteAsync(Memory) from ref (dotnet/corefx#24397)
MemoryStream's other Read/Write{Async} overrides are exposed from the ref, but these two were missing.  The lack of them causes stream's derived from MemoryStream that then call down to the base methods to skip these and go instead to Stream's implementation.

Commit migrated from https://github.com/dotnet/corefx/commit/b6244c5260ee9433c3c62b56d085fc5db20b4bb1
2017-10-03 12:49:38 -04:00
Mandar Sahasrabuddhe cc30fac7cc CoreFx dotnet/corefx#22406 Span based APIs - Text Reader Writer (dotnet/corefx#23786)
Commit migrated from https://github.com/dotnet/corefx/commit/c09ce65e6de10572abe4058f514338db2ef47ed9
2017-09-21 10:39:23 -07:00
Kevin Gosse e61346fb20 Add BinaryReader Span-based APIs (dotnet/corefx#23589)
* Add BinaryReader Span-based APIs

* Add non-regression tests on impacted methods

* Move span tests to netcoreapp file

* Fix tests


Commit migrated from https://github.com/dotnet/corefx/commit/d9438cbfe9a203a009b5d1a6e5970d898f72fcc1
2017-09-11 03:17:36 -04:00
Maggie Tsang 3814417c6e Random span-based API tests (dotnet/corefx#23692)
* Random span extensions

* Random span tests

* random span tests

* Test configurations

* Fixed item group condition


Commit migrated from https://github.com/dotnet/corefx/commit/94a3498f3f8536e198e0e51c98fea3343e2e2a50
2017-09-07 15:03:42 -07:00
jp2masa 154fb093fb Added BinaryWriter Span-based APIs (dotnet/corefx#23253)
* Added tests for BinaryWriter Span-based APIs and exposed them from System.IO contract.

* Fixed BinaryWriter Span-based APIs test.

* Fixed encoding.

* Fixed tests.


Commit migrated from https://github.com/dotnet/corefx/commit/09318818b7a3226ecb19e4d5245aaafb6be20ebb
2017-08-27 00:50:23 -04:00
Nina Chikanov cda15a8a45 Expose and Add Tests for BitConverter APIs in Corefx (dotnet/corefx#23164)
Commit migrated from https://github.com/dotnet/corefx/commit/4a120148edaeb0e96aafbf15bd844b8022f63ad1
2017-08-17 17:46:53 -07:00
Stephanie Niu dd827e1350 IsPathFullyQualified() Tests, public API (dotnet/corefx#22795)
* tests for ispathfullyqualified

* updated tests

* moved isfullyqualified tests to net core app-specific file


Commit migrated from https://github.com/dotnet/corefx/commit/1b9a1f9ede940eb15f5aef01b15c7739b4012f75
2017-08-04 12:03:05 -07:00
Stephen Toub 208fc9c615 Add Stream and {Unmanaged}MemoryStream Span-based APIs (dotnet/corefx#22654)
- Add the new Span-based Read/Write overloads to the refs
- Add tests for the new methods

Commit migrated from https://github.com/dotnet/corefx/commit/fd615679687ff85d14a84432d63cbe4b2adc3ae3
2017-08-02 11:21:26 +02:00
Viktor Hofer fde4619c15 Hide obsolete platform IDs from Editor
Commit migrated from https://github.com/dotnet/corefx/commit/a6cfa45ccd90e735125c609600f18ea57465481e
2017-05-13 02:23:23 -07:00
Mike van Dongen db3fb0dfe2 StringComparer.FromComparison test (dotnet/corefx#19153)
* Test StringComparer.FromComparison

* Defined constant 'netcoreapp'

* Removed usage of compiler constant 'netcoreapp' in ref.


Commit migrated from https://github.com/dotnet/corefx/commit/bee0a52402bbe28ffb0402656117a1040c6fa288
2017-05-01 07:26:59 -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
Justin Van Patten ed946ce5ce Use throw null in refs (dotnet/corefx#15499)
Use `throw null` in refs instead of `return default(T)` or `return 0`.

Commit migrated from https://github.com/dotnet/corefx/commit/bcdf9da94ca6accfc17bc782c50c6ba1b0631b68
2017-01-25 22:14:27 -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
Eric St. John 4c5a187f16 Clean up depprojs
Remove depprojs that were being used for old references/API-compat

For any project mentioning depproj, remove reference and clean up any
Configurations we don't expect to build


Commit migrated from https://github.com/dotnet/corefx/commit/c9b7abbd031af702c236e82b9a56de608811756f
2017-01-18 14:02:31 -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
chcosta 692c3f7ed6 Use netcoreapp and netstandard for targetgroups (dotnet/corefx#14616)
* Use netcoreapp and netstandard for targetgroups

* Add configurations for some reference projects


Commit migrated from https://github.com/dotnet/corefx/commit/fa7a54ad6d9c785a5d68cc7ade7b4995f04f7823
2016-12-19 15:23:37 -08:00
chcosta 8670eb1802 Use static configurations for building a vertical (dotnet/corefx#14489)
* Build each configuration of corefx tools

* Fully qualify path to props files for import

* Build using static configurations

* Package build, ignore references to System.Threading.Overlapped and
System.Runtime.Serialization.Formatters which aren't being built at the
moment.

* Rename target

* Remove unintentional add of baseline file

* Configuration fixes, fix typo in netci.groovy, re-enable specifying
OSGroup property

* Interim build, overbuilds reference assemblies

* Reduce to passing Configurations

* Fix traversal, undefine configuration for contract projects, remove
trimunconverted (not used)

* lower message importance

* Minor fixes, changing messages, fixing comment

* system.runtime.extensions contract causes binclash because it requires a
configuration.  temporarily disable configuration

* Fix trimming of projects

* Eliminate circular dependency in package build

* Fix OSX build

* Cleanup, less msbuild invocations


Commit migrated from https://github.com/dotnet/corefx/commit/3398321b7a54c5d47e4530651d3bee43794c1320
2016-12-16 13:05:30 -08:00
chcosta 978dd4aeed vertical build port to Dev/eng [Do not merge] (dotnet/corefx#14171)
* Vertical build changes

* Build a vertical in dev/eng

* remove repro.bat from check-in

* Remove defaulttargetgroup from configurations.props files

* Remove configurations.props from test libraries

* Additional configuration files, updating traversal.

* Add default configurations for ref projects

* Remove default targetgroups, disable code analysis (currently breaking the
vertical build).

* Build vertical using Eric's changes to configurations

* Minor fixes to build from a clean enlitment

* Set targets properties in dir.props

* Make vertical build the default

* Include building src\tools in init-tools.cmd

* Add linux init-tools

* Fix msbuild.sh command

* Add build tools message to Linux

* Revert init-tools, investigate building corefx tools tomorrow

* Update configurations, remove empty targetgroup from all projects, modify
most conditionals to be positive conditions instead of negative

* Remove unneccessary generateprojectconfigurations project

* Build CoreFx.tools in init-tools

* Can't build corefx.tools in init-tools because packages aren't restored

* Hack build to build refs first

* Slightly less hacky reference project build, but still kind of hacky...

* Align properties for ref builds to prevent binclash and overbuilding

* Update BeforeTarget for rename

* Rework traversal to work with ref and corefx tools projects

* Add target for builds projects

* Fully qualify paths to projects

* Fully quality path name for corefx.tools

* testing removing osgroup from groovy on Windows

* Remove OSGroup from config.json

* revert change to groovy

* return os property

* Try changing osgroup to hostos

* hack around osgroup setting

* Fix passing groups

* Add system.collections which was missing from system.console

* Add some missing references for Unix build

* Add references for unix

* Unix support changes

* Fix typo in system.net.http

* Fix typo in system.threading.overlapped

* no ref project available for system.reflection.metadata

* Unix changes

* Exclude system.memory

* diagnostics.fileversioninfo was missing reference to Path

* Unix changes

* Fix reference name

* Add reference for unix

* Move source file to windows only

* Disable building system.threading.overlapped


Commit migrated from https://github.com/dotnet/corefx/commit/a07f6aac5309b30154d0fe00debe7f9979600ea1
2016-12-10 11:29:31 -08:00
Jose Perez Rodriguez 11e7a62b8b Delete project.jsons
Commit migrated from https://github.com/dotnet/corefx/commit/09e45e8d1cc901184accb168fe082a260a0de6e6
2016-12-06 13:16:43 -08:00
Eric Mellino 966c8e0251 [dev/eng] Overhaul ref and src project references, and start binplacing things (dotnet/corefx#14062)
* Used GenerateBuilds.ps1 script to generate the P2P references from the project.json files in ref

* Update refs to build with ProjectReference's instead of package references

This deletes all the ref\project.json files and instead adds ProjectReference
to other refs that are used to build.

There is only one exception which was System.Net.Http which needed a project.json
to get the net46 targeting pack otherwise everything else is P2P.

* Update Reflection.Emit contracts to support latest version of contracts

* Add depproj to get windows.winmd support when building refs

* Special handle System.Net.Http ref project to deal with net46 targeting pack

* Moved CLSCompliant to SecureString ctor instead of type

* Add P2P reference from S.IO -> S.R.Extensions

* Add additional ProjectReferences to more ref projects after master rebase

* Start binplacing ref assemblies and disable rest of build

* Simplify all ref projects to only build for netcoreapp (default target group)

* Only binplace netcoreapp refs

* Allow Reference's to be resolved from targeting pack directories

* Use GenerateBuilds.ps1 to convert src project.json refs to References

* Allow overriding stuff in Tools

* System.Runtime src project building against targeting pack

* Re-purpose GenerateBuilds.ps1 to re-write src references

* Only build csproj files in src.builds

* More custom stuff in GenerateBuilds.ps1

* Binplace all netstandard assemblies into netcoreapp as well.

* Add project.json to System.Collections.Immutable

* More custom generatebuilds.ps1 stuff

* Normalize csproj files before running GenerateBuilds.ps1

* Better match the replaced  'None Include="project.json"' line.

* Another missing project.json inclusion in csproj

* Remove ExcludeFromCodeCoverageAttribute from Immutable project

* Include another project.json

* Add some P2P references

* Add another project.json include

* Disable Http.Rtc project.

* Disable two more UWP projects and another P2P ref"

* More Cleanup

* Run GenerateBuilds.ps1 to re-write all nuget refs as <Reference>'s

* Binplace netstandard runtime assemblies to netcoreapp as well.

* Re-hook all src projects into build.proj

* Fix bin clashing caused by bad ProjectReference metadata

* Use 'copy' instead of 'cp' in init-tools.cmd. Add copying to init-tools.sh as well.

* Correct casing of windows.winmd in depproj

* Disable System.Memory.csproj outside of Windows

* Fix unix exclusion of System.Memory, and include vbproj files

* Fix VisualBasic compilation

* There was an extra definition of MemberTypes that was internal to the
  assembly. It's now defined in System.Private.CoreLib, so I deleted the
  extra here.
* There was an invalid call in Operators.vb that I fixed.

* Add additional project references and configuration fixes after rebase

* Fix build warnings in ref projects

* Fix build warnings in src projects


Commit migrated from https://github.com/dotnet/corefx/commit/a9f6d7d749f9946cc6b10c50b54bcae0e43e859e
2016-11-29 18:01:35 -08:00
Eric StJohn 2eebc77b17 Merge pull request dotnet/corefx#13889 from ericstj/updateMaster-1.1
Update stable dependencies to latest stable

Commit migrated from https://github.com/dotnet/corefx/commit/23b5a9dd6391ff1000a7773738cd2be8cdcc9ff9
2016-11-22 16:25:16 -08:00
Santiago Fernandez Madero d8981e945d Port System.Net.WebUtility missing members (dotnet/corefx#13875)
* Port System.Net.WebUtility missing members


Commit migrated from https://github.com/dotnet/corefx/commit/3cb05504c5c81e2cfb552291285bce088ff785cf
2016-11-22 11:46:30 -08:00
Eric St. John 34d56a4c14 Update stable dependencies to latest stable
This reduces total download of packages.


Commit migrated from https://github.com/dotnet/corefx/commit/d6fa06e13d29ce9931c395c729d5e61441c02ee8
2016-11-22 11:03:12 -08:00
Tarek Mahmoud Sayed e8e32403ba Fold System.Globalization.Extensions contract to System.Runtime.Extensions (dotnet/corefx#13870)
* Fold System.Globalization.Extensions contract to System.Runtime.Extensions

* FIx throwing original exception and change the csproj configuration

* Delta fix

* Fix the build configuration

* remove System.Runtime.Extensions package reference from system.Console

* Remove project reference of S.Runtime.Extensions from the csproj

* More clean up for S.Runtime.Extensions references in projects


Commit migrated from https://github.com/dotnet/corefx/commit/a751f20c7d586ee4cd5bece0c8633a24da01bcfe
2016-11-22 07:22:19 -08:00