Commit Graph
1428 Commits
Author SHA1 Message Date
Maryam Ariyan ff0009981a Catches exception (with notification) while trying to get corrupt duplicated env var (dotnet/corefx#33194)
Throw and catch intentionally with non-fatal notification about corrupted environment block


Commit migrated from https://github.com/dotnet/corefx/commit/a0e8f0b1783d182c150610e615ff7ca554b4e46c
2018-11-01 14:19:20 -07:00
Wes Haggard 954fb511b3 Rename AssemblyKey properties to StrongNameKeyId as part of arcade work
Commit migrated from https://github.com/dotnet/corefx/commit/7edd861bf2dd59ecdb4284e0fd291d7458198a9d
2018-10-30 15:14:01 -07:00
Jan Kotas 35ca1ca0f4 Improve CoreLib test coverage (dotnet/corefx#33132)
* Improve CoreLib test coverage

Contributes to https://github.com/dotnet/coreclr/issues/12782

* Move .NET Core specific tests to separate file


Commit migrated from https://github.com/dotnet/corefx/commit/a82e4e652af96f4acb149579b9a25ee41c83a646
2018-10-30 15:58:52 -04:00
Tom Deseyn 6b24ee08dd When we can't determine the user's home, fall back to '/'. (dotnet/corefx#33040)
* When we can't determine the user's home, fall back to '/'.

This location isn't writable by non-root users which provides some
safeguard that the application doesn't write data which is meant to be private.

Fixes https://github.com/dotnet/corefx/issues/33001

* PR feedback

* Format comment


Commit migrated from https://github.com/dotnet/corefx/commit/7f8415c5e42f2ab4dce7dcdf2a2e1d7a95aec69a
2018-10-25 20:33:11 -07:00
Viktor Hofer 177aa49924 Merge pull request dotnet/corefx#32726 from dotnet-maestro-bot/master-UpdateDependencies
Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-03311-01, preview1-27011-01, preview1-27011-01, preview1-27011-01, beta-27011-00, beta-27011-00, respectively (master)

Commit migrated from https://github.com/dotnet/corefx/commit/bed8a614c02bc24488a3208b80a5553f0e43b3d7
2018-10-17 02:13:43 +02:00
Tom Deseyn a116aca916 Environment.GetFolderPath: handle case of an unknown user (dotnet/corefx#32840)
* Environment.GetFolderPath: handle case of an unknown user

The call to Persistentfiles.GetHomeDirectory may return null when
HOME is unset and there is no entry for the user in /etc/passwd.
This null-case was not covered.

* code style


Commit migrated from https://github.com/dotnet/corefx/commit/c976e2c5c85b1212593c2e1c6083ee7df09d7895
2018-10-16 17:16:45 -04:00
Viktor ff1cee711b Automatically copy runtime config files if executable
Commit migrated from https://github.com/dotnet/corefx/commit/09768a9f0e54d326bbaceec81c8b6a56e322147e
2018-10-16 10:47:41 +02:00
Michal Strehovský 4cab5ca59c Delete UapAot ApiCompatBaselines that should not be needed (dotnet/corefx#32821)
The existence of these files should be a ship blocker for UapAot, but we keep shipping with things baselined out that our customers then hit.

Commit migrated from https://github.com/dotnet/corefx/commit/b1476c9d620731e9cbedaea317b8af261537e335
2018-10-15 20:02:41 -07:00
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
Marco Rossignoli db4f9ff400 Disable test System.Runtime.Tests.ProfileOptimizationTest/ProfileOptimization_CheckFileExists (dotnet/corefx#32737)
* disable test

* address PR feedback

* address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/c12a54ff9677e4778970dbb60d80a77aea81ceed
2018-10-10 16:28:37 -07:00
Jan Kotas 005c064038 Mark tests exercising CoreLib with TestRuntime tag (dotnet/corefx#32720)
Commit migrated from https://github.com/dotnet/corefx/commit/6b299367382b28ec0b9592bf5b37db48fb02cb67
2018-10-09 12:51:04 -07: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
Jan Kotas e2c8ee5fd1 Delete unnecessary use of reflection (dotnet/corefx#32541)
Commit migrated from https://github.com/dotnet/corefx/commit/8f1572c5bc252619de3de6e639bd6e6e6eb18133
2018-09-29 08:37:28 -04:00
Jan Kotas 12171b348a Improve CoreLib test coverage (dotnet/corefx#32533)
Commit migrated from https://github.com/dotnet/corefx/commit/f14b3353a3d5ed410a1a16681a812ed09bd8932c
2018-09-28 17:22:37 -07:00
Stephen Toub 36bc3f77fe Mark a few Environment static fields as readonly (dotnet/corefx#32431)
Commit migrated from https://github.com/dotnet/corefx/commit/fe9fd2cd1d40a97ecdbf1ef80fc9ace973a32560
2018-09-24 18:02:43 +02:00
Dan Moseley 236d50af05 Increase tracing for ProfileOptimization_CheckFileExists (dotnet/corefx#32317)
Commit migrated from https://github.com/dotnet/corefx/commit/71dd2f49f7e7ceb73ba7539bb804bff9a8d3c74c
2018-09-17 21:43:44 -07:00
Grant 6898a1f9a2 Change calls from string.IndexOf to string.Contains (CoreFX) (dotnet/corefx#32249)
* Update call sites

* More call sites

* Another callsite

* More call sites

* CR fixes - revert src/Common/src/CoreLib/*

* Spurious fix

* Revert string.Contains where platform may not be NetCore21

* nit

* More reverts

* More reverts

* More reverts

* Revert

* Remove comments

* Revert


Commit migrated from https://github.com/dotnet/corefx/commit/6ffca612323448f1488a6c63b86b69611b4286d9
2018-09-13 15:20:39 -07:00
Marco Rossignoli be89c69116 Add retry policy to ProfileOptimization test (dotnet/corefx#31810)
* add retry policy

* add write test on profile file path location

* address PR feedback

* cleanup code


Commit migrated from https://github.com/dotnet/corefx/commit/065bed2fb74ebed6798990e65b88e67c0b47429b
2018-09-13 13:48:20 -07:00
Morgan Brown abc0943945 Build managed code and packages for WebAssembly/netcoreappaot (dotnet/corefx#32045)
Adds support for a WebAssembly netcoreappaot configuration for building managed libraries and packages. This is enough to produce a package of libraries that CoreRT's WebAssembly implementation can consume.


Commit migrated from https://github.com/dotnet/corefx/commit/2b868f80c307a514dfafb7eb166dad3dbc2ed26b
2018-09-11 21:57:52 -07:00
Tanner Gooding ec0a0f3b1c Fixing up the UTF8Formatter and some tests to properly handle -0.0
Commit migrated from https://github.com/dotnet/corefx/commit/e328f2b8bb3d7f69c921d8e422ace26b7fd9182a
2018-09-07 13:31:38 -07:00
Tanner Gooding 5c7b2e00ad Enabling some skipped math and mathf tests
Commit migrated from https://github.com/dotnet/corefx/commit/5d7f2469f4ef37e6bc6846f85d9ea55570002c8f
2018-09-05 09:02:00 -07:00
Wes Haggard 6dcf8b8bfb Update the configurations properties in projects
Commit migrated from https://github.com/dotnet/corefx/commit/fea86686c620242ce7e1911418f2fba7c4d52d4d
2018-08-29 09:45:04 -07:00
Filip Navara 2a2c2ef521 Move uap, uapaot, netfx, netcoreapp and netcoreapp20 constant definitions to top-level build file. (dotnet/corefx#31470)
* Move uap, uapaot, netfx and netcoreapp constant definitions to top-level build file.

* Trying to fix compilation of PerformanceCounterLib for netcoreapp2.0 targets.

* Change netcoreapp definition to mean the current version only.

* Fix conflict in System.Private.DataContractSerialization.csproj.

* Revert change in src/shims/manual/Directory.Build.props.

* Fix condition in test.

* Bring back TargetsNetCoreApp, it was lost during rebases.

* Move definition of netstandard to top-level build file. Remove more netcoreapp/uap definitions from individual files.

* Fix vbproj compatibility.

* Address PR review and unify the definitions to use TargetGroup directly.

* Add back one "netstandard" definition.


Commit migrated from https://github.com/dotnet/corefx/commit/ac994544e749eac3e85b60bf0012ae2f85ae0e49
2018-08-29 08:49:33 -07:00
Viktor Hofer 49586efb0d Add uap test leg to CI
Disable/Enable tests for clean uap CI leg


Commit migrated from https://github.com/dotnet/corefx/commit/c54d4a20c315730cd76fb7688c15d0a85837f3ce
2018-08-23 20:16:11 +02:00
Viktor Hofer b998fc821e Xunit 2.4 test changes
Commit migrated from https://github.com/dotnet/corefx/commit/591f0b5ba2c0ddcdad1a326eb327936cb2dd40d8
2018-08-23 19:55:27 +02:00
Viktor Hofer 70bffcd308 Enable netfx perf runs and promote to netstandard
Commit migrated from https://github.com/dotnet/corefx/commit/1b33f6c57bdcb4a2be715a8eaf7ec2483dc5c6c0
2018-08-23 19:55:26 +02:00
Viktor Hofer 8585939ef2 Update xunit to official 2.4.0 runner
Add necessary Test SDK assemblies

Enable test sdk props & targets only for netcoreapp


Commit migrated from https://github.com/dotnet/corefx/commit/f528b668fcd06efbde72a9510feb189e3988d795
2018-08-23 19:53:34 +02:00
Viktor Hofer c527cd334d Make BaseIntermediateOutputPath project specific
Set BaseIntermediateOutputPath and IntermediateOutputPath accordingly in
proj/depprojs and add TargetFramework* props for various configurations.


Commit migrated from https://github.com/dotnet/corefx/commit/3d223d3c55e07c110b5ebb0bc7ecb225e168da15
2018-08-22 14:05:29 +02:00
Morgan Brown 5851b3de9a Add netcoreappaot target group (dotnet/corefx#30980)
Changes to add a new netcoreappaot target group, similar to netcoreapp but it builds against the .NET Native core libraries. A couple of libraries, such as System.Linq.Expressions, have aot-specific definitions that are enabled for netcoreappaot.

Commit migrated from https://github.com/dotnet/corefx/commit/3333166174e54ae9435c31e0a68a6784e9aacc41
2018-08-21 18:19:59 -07:00
Marco Rossignoli e6707cf973 Add Win32 File.Encrypt/Decrypt() implementation (dotnet/corefx#31763)
* Add Win32 File.Encrypt/Decrypt() implementation

* address PR feedback

* address PR feedback

* address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/4451ec9d41916eccbb1dc71beae0d177815096d6
2018-08-20 17:28:41 -07:00
Tarek Mahmoud Sayed 5cd6db2acb Port a change from servicing branch (dotnet/corefx#31702)
Commit migrated from https://github.com/dotnet/corefx/commit/caa3ab49a2045568177c90bb709e4e410cfa7a08
2018-08-10 14:35:59 -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
Dan Moseley 38133b2a02 Handle overflow in uname -r (dotnet/corefx#31261)
* Avoid overflow in Unix uname -r parsing

* tests

* Add test

* Fix


Commit migrated from https://github.com/dotnet/corefx/commit/f9bb2de5b9a324994914c1cd5231be6126e9c121
2018-07-23 13:21:06 -07:00
Anirudh Agnihotry 4ffd2b8c9f Test fot setting up appcontext.TargetFramework (dotnet/corefx#30885)
* Tests for targetFramework

* Feedback addressed

* Fixing tests for netfx


Commit migrated from https://github.com/dotnet/corefx/commit/7c28084bb60689f15fc6119c3d11964a5335c4f5
2018-07-09 17:35:11 -07:00
Eric Erhardt f0d61cbc71 Merge remote-tracking branch 'upstream/master' into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/b86cade27ef07e6be4bc6b4cd50a4ad0892de8bf
2018-07-06 14:51:52 -05:00
Jan Kotas 27195a2641 Delete obsolete ResourceConsumption/ResourceExposure attributes (dotnet/corefx#30863)
These are leftovers from unfinished experiment that a long time ago.

Commit migrated from https://github.com/dotnet/corefx/commit/501d1566e85d0777b66d6ad44ecd8efd30a0e149
2018-07-06 12:13:51 -04: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 21b7a52139 Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/0343b37275d50fa44b8db91bd9ed8364f89600fc
2018-07-05 14:06:19 -05:00
Anirudh Agnihotry 9bd761e0a5 Lazy Initialization of Thread.CurrentPrincipal and implementing GetThreadPrincipal (dotnet/corefx#30765)
Commit migrated from https://github.com/dotnet/corefx/commit/6fb57a4bfe4504b60b3af769798b96ba15e6c842
2018-07-04 11:18:31 +02:00
Atsushi Kanamori a677ea76a2 Add test to ensure FromBase64 bug doesn't regress. (dotnet/corefx#30814)
Convert.FromBase64() had a subtle bug where an illicit
second padding character at the end of the string caused
the decode to "succeed" by dropping the fifth to
last character.

We inadvertently fixed this bug while optimizing that
api in .NetCore 2.1. Adding test to document bug and
ensure we don't regress.

Details in https://github.com/dotnet/corefx/issues/30793

Commit migrated from https://github.com/dotnet/corefx/commit/f1065c7cf056275b0d206ee077281b8ecfe25d03
2018-07-03 13:20:24 -04:00
Eric Erhardt 779486884e Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ec546de620c5248f3662d6aaca989ed382b86b6b
2018-06-28 21:28:41 -05: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
Marco Rossignoli 7955437fe6 Override TextWriter.Write{Line}{Async} on StringWriter (dotnet/corefx#30667)
* add overloads

* fix overloads

* add tests

* move test to StringWriterTests.netcoreapp.cs

* revert StringWriterTests.cs updates

* address PR feedback

* fix test

* amend comments


Commit migrated from https://github.com/dotnet/corefx/commit/57bb0fc7d615649e7a75f02de96be4001b1c3e90
2018-06-28 18:18:54 -04:00
Stephen Toub 4c9eb2ec25 Simplify built-in types across corefx tests (dotnet/corefx#30660)
Commit migrated from https://github.com/dotnet/corefx/commit/7ae1a252d7e68c5513d2658de7a401c37e9b0504
2018-06-25 22:42:04 -07:00
Stephen Toub 2fb9f847fc Simplify built-in types across corefx (dotnet/corefx#30656)
Commit migrated from https://github.com/dotnet/corefx/commit/e0ba7aa8026280ee3571179cc06431baf1dfaaac
2018-06-25 16:54:41 -07:00
Jeremy Kuhne 6b1b3c7997 Tests for dotnet/corefx#30263 fix (dotnet/corefx#30374)
* Tests for dotnet/corefx#30263 fix

Goes with https://github.com/dotnet/coreclr/pull/18460

* Add case for `C:\` to `D:\`


Commit migrated from https://github.com/dotnet/corefx/commit/eb4bb7ff28d639dcd9fd0c505d78c6196a569f57
2018-06-20 10:40:13 -07: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