Commit Graph
133 Commits
Author SHA1 Message Date
Stephen Toub 167e2ded75 Add missing license headers
Add missing license headers, and make the asn.xslt generator do it going forward.

Commit migrated from https://github.com/dotnet/corefx/commit/5dc8132370532804a5381b90e2ce87d6c52b61f6
2019-02-28 17:05:06 -08: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
Viktor Hofer 42935a78b0 Remove old TestCategories property (dotnet/corefx#35397)
Commit migrated from https://github.com/dotnet/corefx/commit/18452453fe8de55a065841798eb5e7a56c3436cb
2019-02-18 21:40:02 -05:00
Stephen Toub 860ccad799 Remove stale warning 420 pragmas (dotnet/corefx#35023)
It used to be that the CS0420 warning ("a reference to a volatile field will not be treated as volatile") would fire when a volatile was used with an Interlocked.* operation.  That warning was unnecessary, as Interlocked.* would itself provide the relevant barriers, and these functions were special cased in Roslyn a long time ago.  But there are still lots of places where pragmas disabling the warning have stuck around.  I'm deleting them.

Commit migrated from https://github.com/dotnet/corefx/commit/8b3446f4e8ad1a7b19c7298e20396629c6e0092e
2019-02-01 14:57:35 -05:00
Stephen Toub 2c8e9b5e94 Fix remaining XML comment errors for source.dot.net (dotnet/corefx#33819)
This is hopefully the last batch of XML comment issues causing failures in source.dot.net.

Commit migrated from https://github.com/dotnet/corefx/commit/42c107ce4dcee545c8cdb510be0b60afdb9527ba
2018-12-04 14:30:39 -05: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
John Doe 059bf6cab5 Typos (dotnet/corefx#32625)
* Obejct -> Object

* Oberserver -> Observer

* objetcs -> objects

* observeable -> observable

* obsolated -> obsoleted

* occour -> occur

* occurance -> occurrence

* occures -> occurs

* occuring -> occurring

* occurrance -> occurrence


Commit migrated from https://github.com/dotnet/corefx/commit/fcea0a593a8b198d7ae741dcb80345ea2b129fe0
2018-10-04 17:25:37 -07:00
Grant 4dd57aca97 Units for Span.Contains (dotnet/corefx#32293)
* Units for Span.Contains

* More callsites

* More callsites with Linq

* CR fixes

* Moved Span<char>.Contains tests to StringTests

* Revert incompatible change

* Another revert

* Remove Linq scan false positive

* Remove redundant comments

* Undo risky Linq resolution

* Remove dupe units

* Undo comment

* New units broken by cross compilation

* Reverts

* Another revert

* Revert

* CR fixes

* More fixes

* Fixes

* Perf tests

* Build breaks

* Benchmark baseline

* Fix tautology

* Rename tests

* CR fixes

* Add more test lengths

* InnerCount can be smaller


Commit migrated from https://github.com/dotnet/corefx/commit/12eb4a3ad0275ebd66cec52e4cdecb421f1b2535
2018-09-17 18:35:15 -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
Adam Gauthier d64753f029 Use nameof in ArgumentNullExceptions that throw the paramName (dotnet/corefx#31250)
Commit migrated from https://github.com/dotnet/corefx/commit/b6b9a1ad24339266a27fef826233dbbe192cf254
2018-07-21 19:21:53 -07:00
Steve Pfister 9b10beec31 Added a preprocessor check for CODEDOM. This will help support frameworks that have not fully incorporated all of corefx and want to use System.Configuration.ConfigurationManager (dotnet/corefx#30943)
Commit migrated from https://github.com/dotnet/corefx/commit/16a1230577ed71b6f5c34d74bbd1bc14b44fb536
2018-07-13 10:57:16 -07:00
Santiago Fernandez Madero ccdea37829 Update netfx alias to target .NET 4.7.2 (dotnet/corefx#28883)
* Change netfx to target .NET 4.7.1

* Fix CoreFx.Private.TestUtilities to not reference System.Runtime.InteropServices.RuntimeInformation which is now inbox in netfx

* Fix StackTrace.Tests to be built against netstandard and run against netfx inbox

* Fix ValueTuple configurations to support net461 and add netfx placeholder configuration since in net471 it is now inbox

* Fix projects' package configurations that had netfx (net461) to still support net461 and netfx as a buildconfigurations

* Disable failing tests when running on .NET 4.7.1

* Make netfx target net472 and merge with master

* Update ActiveIssue comments to issue number only

* Workaround packages tests due to not installed targeting pack

* Match NSSupportPackage version to CLI's

* Remove netstandard support lib bin placing to runtime and testhost for netfx, fix reference paths to match new package

* Run UpdateVSConfigurations after merging conflicts with the newly updated SDK projects

* Add net461 package configuration to System.CodeDom

* Add net461 package configuration to System.Configuration.ConfigurationManager

* Add net461 package configuration to System.Security.Cryptography.Xml

* Add net461 package configuration to System.Security.Permissions

* Add net461 package configuration to System.ServiceModel.Syndication


Commit migrated from https://github.com/dotnet/corefx/commit/faad2e63b35bed10fe18195987a413308b97eded
2018-07-10 15:04:27 -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
Steve Pfister 8756dddd17 Switched to as cast in Init because some caller do not have the file map at the start of the param list (refsrc System.Web) (dotnet/corefx#30548)
Commit migrated from https://github.com/dotnet/corefx/commit/331f135dc4d856ddd1d9751967c790f5f11c734f
2018-06-29 10:48:18 -07: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
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
Eric Erhardt 1df03e5bbd Rename dir files to Directory.Build
dir.props => Directory.Build.props
dir.targets => Directory.Build.targets


Commit migrated from https://github.com/dotnet/corefx/commit/204a8dbbc23bfc51d419c93f2f2ddaf50db8020f
2018-06-15 17:07:48 -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
Stephen Toub 2ed60d5cdb Use nameof in more places (dotnet/corefx#30228)
I'd previously scrubbed the repo for places nameof could be used.  A lot more code has come into the repo since then, so I'm rescrubbing.

Commit migrated from https://github.com/dotnet/corefx/commit/54d15abce387fc7ea4cd9546179c4a955ff5ea85
2018-06-11 11:37:10 -04:00
Jacob Lalonde 4e8888e319 Configuration tests (dotnet/corefx#29896)
* Added some configuration unit tests

* Initial Unit Test Changes

* Got ConfigurationValidatorBase to 100% coverage

* Stuck on AppSettingsReaderTests, pushing what I have

* Changed my exception tests, they looked ugly

* Changes from equal to same for setting element collection tests


Commit migrated from https://github.com/dotnet/corefx/commit/e62347831e079f73eba9a7b2bbacb60166fac7d1
2018-06-01 17:52:57 -07: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 ecce3f80b6 Disable System.Configuration.ConfigurationManager tests failing on Nano server
Commit migrated from https://github.com/dotnet/corefx/commit/e5b6fc429ac1b8be5cc55b210136beb9a2f37331
2018-05-18 14:43:55 -04:00
David Gardiner 788d7a1747 Update XML comments to use correct interface name (dotnet/corefx#29627)
Interface is named "IConfigurationSectionHandler", not "IConfigSectionHandler"

(maybe there's some history there, or someone didn't want to type "uration" :-)

Commit migrated from https://github.com/dotnet/corefx/commit/986fc93181a682954fd768e4e2e8fd9a3eaa0a71
2018-05-10 16:38:50 -04:00
Viktor Hofer 2e43c34745 Porting roslyn regex tests to corefx (dotnet/corefx#29178)
* Add regex roslyn tests

* Offset & serialization in exception, remove internal error in error enum, compile parser tests on netfx

* Move match parser tests over to RegexParserTests

* Add subexpression parsing

* Add test case for SetType in RegexParseException


Commit migrated from https://github.com/dotnet/corefx/commit/455f969867ee332bf1793cbf55db136ef7833087
2018-05-01 16:06:13 +02:00
Wes Haggard fc526e8605 Bump assembly versions for libraries with packages
Commit migrated from https://github.com/dotnet/corefx/commit/6a1b5c0aeee747a535579da7374c05b8d878fb65
2018-04-27 14:56:18 -07:00
Eric St. John 8fcddacb0e Update for new API compat operand names
Commit migrated from https://github.com/dotnet/corefx/commit/a9f347950a1526b28f4577f2dbf94c23b3123d5c
2018-04-25 14:26:00 -07:00
Marco Rossignoli 87da9705a6 De-duplicate resource ID's to make Mono merge easier (dotnet/corefx#29280)
* wip

* wip

* wip

* fix System.Linq.Expressions

* revert for tests

* add powershell script

* address PR feedback

* address PR feedbacl

* address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/5a37188238e90d8566e6161b43ac483a671bb7d2
2018-04-24 13:58:42 -07:00
Maryam Ariyan c0d43d54ec Removing ActiveIssue for already closed issue dotnet/corefx#21000 (dotnet/corefx#28904)
Commit migrated from https://github.com/dotnet/corefx/commit/c8fd8f79107937a913e7cc92ebfa11019a1bd0f9
2018-04-10 16:26:50 -07:00
Alexander Radchenko 4bf3415ee2 Fixed netfx System.Configuration.ConfigurationManager.Tests on non English Windows (dotnet/corefx#28164)
* Fixed netfx System.Configuration.ConfigurationManager.Tests on non English Windows

* Added RemoteInvoke


Commit migrated from https://github.com/dotnet/corefx/commit/da1322d90a1412290a82a5ace157da4cc58dabf4
2018-04-06 16:24:26 -07:00
Maryam Ariyan 45a871e0e5 Fixing MatchingRefApiCompat issues with Sys.Configuration.ConfigurationManager (dotnet/corefx#28394)
* Reduced the number of MatchingRefApiCompat errors with Sys.Configuration.ConfigurationManager

Fixes: dotnet/corefx#27973

* Adding comment for the remaining existing two serialization issues

* Removing internal interface from ref


Commit migrated from https://github.com/dotnet/corefx/commit/9a72ba265184f277499cc8c24e3e209e1dcdc2e6
2018-03-22 22:31:43 -07:00
Jacob Lalonde 70f087ff60 Setting element bugfix (dotnet/corefx#27879)
* Added Tests for Setting Element

* Cleaning as per the corefx standards

* including .net license

* Added null check for ValueXML GetHashCode, returning 0 if null

* Added Better Test testing GetHashCode for both Elements

* Added Skip for .Net Framework, as it still has underlying problem


Commit migrated from https://github.com/dotnet/corefx/commit/8bca91b1e1c363a3edf9a370990fd1b3ef73b012
2018-03-13 16:30:29 -07:00
Wes Haggard dccc06ade2 Baseline all reverse apicompat issues
Commit migrated from https://github.com/dotnet/corefx/commit/ddb31b5d2f393cf1a16653ff99736a6f25cd98b5
2018-03-09 15:43:29 -08:00
Jose Perez Rodriguez 2b978b922f Updating the package index for UAP and updating buildtools (dotnet/corefx#27787)
* Updating the package index for UAP and updating buildtools

* Having System.Reflection.DispatchProxy crosscompile for uap RS3

* Updating buildtools and fixing PR feedback

* Re-add support for uap to the assemblies that already had a netcoreapp2.0 config for Windows


Commit migrated from https://github.com/dotnet/corefx/commit/7be44d2de8661cd925955e540d940b4eb47e5753
2018-03-08 09:43:06 -08:00
Jlalond a1f1c75d4b Added Tests for Setting Element (dotnet/corefx#27807)
* Added Tests for Setting Element

* Cleaning as per the corefx standards

* including .net license


Commit migrated from https://github.com/dotnet/corefx/commit/7e6436467cebb844bdad1a54b8f9877460a25ec5
2018-03-08 09:14:02 -08:00
Jeremy Kuhne 5e5c83f923 Add missing IInternalConfigHost method (dotnet/corefx#27832)
The intital implementation of ConfigurationManager predated the Core impl of Security.

Commit migrated from https://github.com/dotnet/corefx/commit/122cad4d21a474a48e23e6f9686b39171d7d30b7
2018-03-07 20:45:47 -08:00
Marco Rossignoli b11ba00852 Scrub error messages for missing arguments(throw new) (dotnet/corefx#27553)
* fix error message missing argument

* address PR feedback

* fix tests

* address PR feedback

* address PR feedback

* fix syntax


Commit migrated from https://github.com/dotnet/corefx/commit/fbe2ff101137abed0bc7fa67f40491d277088a79
2018-02-28 23:20:16 -05:00
Jan Kotas 08ba25d62c Delete TODO against issue that has been fixed (dotnet/corefx#27454)
Commit migrated from https://github.com/dotnet/corefx/commit/18b4f897f69586f9f7178ba22618b119cd075d76
2018-02-26 14:25:25 -05:00
Jon Hanna 5ecc221cc7 Add license headers. (dotnet/corefx#26009)
Any *.cs file found without the usual license header has it added except:

1. Files that note they are auto-generated.
2. Files with a different header (unless it is very close to the usual,
in which case adjust for typos and old versions).
3. FxCopBaseline.cs files.

Commit migrated from https://github.com/dotnet/corefx/commit/e5da05d7100a64ab1d98c865436a1fb8b0ddd507
2017-12-22 12:51:37 -06:00
Stano Peťko 075d9bd420 Added tests for throwing correct Exception. (dotnet/corefx#25822)
Commit migrated from https://github.com/dotnet/corefx/commit/06967ad9b2344438527745bb749ba1402c19f598
2017-12-14 15:08:30 -05:00
Stano Peťko 6fe57f72f5 Removed throwing general Exception in ConfigurationManager (dotnet/corefx#25139)
* Removed throwing general Exception.

* Exception is not recreated, removed unnecessary foreach.

* Try-catch moved where exception really can occur, removed unnecessary variables.


Commit migrated from https://github.com/dotnet/corefx/commit/30f1bddf073d523f9456d54f5dd193f5a47ea2c1
2017-12-06 13:25:56 -08:00
Jan Kotas 688b8a6e34 Delete unnecessary ComVisible annotations
Commit migrated from https://github.com/dotnet/corefx/commit/0eb5e7451028e9374b8bb03972aa945c128193e1
2017-11-19 10:37:38 -08:00
Jan Kotas 3df183ba68 Delete unnecessary CAS permission annotations
Commit migrated from https://github.com/dotnet/corefx/commit/80ba32d2c2ec22c80bea3b14d5ce966e0363f255
2017-11-19 10:37:38 -08:00
Viktor Hofer fcc00e81f3 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
2017-10-27 18:00:52 +02:00
Brian Chavez 232a1dfac0 Grammar check - "a [a,e]" rule. (dotnet/corefx#23697)
* Grammar check - "a [a,e]" rule.

* Corrected "a attributes" to "an attribute"


Commit migrated from https://github.com/dotnet/corefx/commit/be75987c628347e1d44bba15c5272ade3dcfa65c
2017-08-31 09:29:39 -04:00
John Doe bb6abf5000 Typo (dotnet/corefx#23644)
* typo

* typo

* Typo

* Typo


Commit migrated from https://github.com/dotnet/corefx/commit/40368b2aa9ade8e5f495bfb6f474cd16561abe59
2017-08-30 08:48:29 -04:00
Brian Chavez f866987b74 XML doc spelling corrections - I through P. 🚿 (dotnet/corefx#23651)
Commit migrated from https://github.com/dotnet/corefx/commit/b09fab5799bb1ca4bea4b4bb086d2c9870dd5191
2017-08-29 15:42:23 -07:00
Eric St. John e047f03838 Fix errors with new CSC due to missing comma between attributes
Commit migrated from https://github.com/dotnet/corefx/commit/535828b1423795a71f0b17e0c9d00e99021deed5
2017-08-25 14:05:48 -07:00
Atsushi Kanamori 7472eecd29 Disable tests that fail on ILC due to not actually running in AppX (dotnet/corefx#23295)
Fixes https://github.com/dotnet/corefx/issues/23000

Commit migrated from https://github.com/dotnet/corefx/commit/91d8d189c0bb33ad36cfadfef5f49be31cb2dfa7
2017-08-16 09:53:04 -07:00