Commit Graph
795 Commits
Author SHA1 Message Date
dotnet-maestro[bot] 8134ef7dea Update dependencies from dotnet/coreclr (dotnet/corefx#35051)
* Update dependencies from https://github.com/dotnet/coreclr build 20190201.72

This change updates the following dependencies
- Microsoft.NET.Sdk.IL - 3.0.0-preview-27401-72
- Microsoft.NETCore.ILAsm - 3.0.0-preview-27401-72
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview-27401-72

* Update dependencies from https://github.com/dotnet/coreclr build 20190202.72

This change updates the following dependencies
- Microsoft.NET.Sdk.IL - 3.0.0-preview-27402-72
- Microsoft.NETCore.ILAsm - 3.0.0-preview-27402-72
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview-27402-72

* Fixing various tests that have new behavior due to the string formatting changes for double/float.


Commit migrated from https://github.com/dotnet/corefx/commit/ebf1c9753ab5624c967b0dbd352b1e73805b1fe5
2019-02-03 16:38:37 +00:00
Viktor Hofer 66e8f64d31 Consume Microsoft.DotNet.CoreFxTesting package (dotnet/corefx#33423)
* Consume Microsoft.DotNet.CoreFxTesting package

* Remove code coverage dedicated runtime dir config files and switch to Coverlet

* Add global tool support in corefx

* Update code coverage docs

Commit migrated from https://github.com/dotnet/corefx/commit/ae38b7cc3762d832fdcebe27a0aab7b22ab2f3fa
2018-12-06 02:56:11 +01:00
Jiayi Yu 8abdecef4e Port a DataContractSerialization bug fix from netfx (dotnet/corefx#32205)
* Port a dcs fix from netfx, keep the size of isReferenceArray and objectArray in sync and avoid the IndexOutOfRangeException when serializing a huge object graph.

* Add a deep linked object serialization test


Commit migrated from https://github.com/dotnet/corefx/commit/1887977ff4c46b3f264ada4b5c65820dd6d16624
2018-11-08 11:21:27 -08:00
Jiayi Yu c01b6013a2 Add declaredType parameter in some DataContract Serialization methods (dotnet/corefx#32369)
* add declaredType parameter in methods

* remove dead code and add test


Commit migrated from https://github.com/dotnet/corefx/commit/c70b94cc64621e8dbdec1489bee2402825d64c73
2018-11-06 16:53:29 -08: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 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
Paulo Janotti c6efbc3cf4 Coverage do not target CoreLib in bulk (dotnet/corefx#32537)
* Coverage do not target CoreLib in bulk

* Fix 1 project add temp nop to 2 others

* PR feedback: reuse property to disable code coverage

* PR Feedback: add dedicated property to target runtime

* System.Transactions.Local.Tests taking too long on PR


Commit migrated from https://github.com/dotnet/corefx/commit/95eeecb5184e414810bc94fdb496c5748289a720
2018-10-02 06:05:11 -07:00
Huangli Wu ee073fb1dd Add back the missing code that handle source=="vals[i]" code. (dotnet/corefx#31590)
* Add back the missing code that handle source=="vals[i]" code.

* Move tests to XmlSerializerTests.cs so it will run in sgen test project.

* Fix name


Commit migrated from https://github.com/dotnet/corefx/commit/4665fb83a8bfaba7d3ff331dcc290e7e3f9f7f8d
2018-09-27 11:05:17 -07:00
Jiayi Yu 8fcaf538b1 Support hexBinary type (dotnet/corefx#32141)
*Port a few functions from full framework to support read/write hexbinary type and add tests

Commit migrated from https://github.com/dotnet/corefx/commit/8d65bd36a6d3d3cfdf1aa32cbb8c45cce25d9c95
2018-09-10 16:06:40 -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
Dan Moseley 0c857c8f4c Rename Canonicalization.Tests.csproj to match assembly (dotnet/corefx#31946)
Commit migrated from https://github.com/dotnet/corefx/commit/10c4e7ea6536a3bfd397b42e13c20d6a42de5713
2018-08-27 11:53:19 -07:00
Tim Lovell-Smith 18c6815deb Cleanup netfx-specific code from projects that no longer build in netfx configurations (dotnet/corefx#31818)
* Remove Crc32Helper.Managed.cs and '$(TargetGroup)' == 'netfx' conditionals from System.IO.Compression.csproj

* Remove netfx conditionals from System.Data.Common.csproj

* Remove netfx conditionals from System.Diagnostics.StackTrace.csproj

* Remove 'netfx' and 'net46' conditionals from System.Net.Http.csproj

* Remove 'netfx' conditionals from System.Net.Sockets.csproj

* Remove 'netfx', 'net462' and 'net47' conditionals from System.Runtime.InteropServices.RuntimeInformation.csproj

* Remove 'netfx' conditionals from System.Runtime.Serialization.Primitives.csproj

* Remove 'netfx' conditionals from System.Runtime.Serialization.Xml.csproj

* Remove 'netfx' and 'net47' conditionals from System.Security.Cryptography.Algorithms.csproj

* Remove 'netfx' conditionals from System.Security.SecureString.csproj

* Remove 'netfx' conditionals from System.Threading.Overlapped.csproj

* Remove 'netfx' conditionals from System.Xml.XPath.XDocument.csproj

* Trim out unused source file DeferredDisposableLifetime.cs


Commit migrated from https://github.com/dotnet/corefx/commit/6a0ecec8279504c03433f689e4a7cf6cd63da27c
2018-08-26 15:29:51 +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
Huangli Wu ad1691b9be Support Add XmlTextAttribute on the derived class for Enum and primitive type (dotnet/corefx#30563)
* Support Add XmlTextAttribute on the derived class for Enum and primitive type.

* Add a primitive test. Disable the enum test on netframework.

* Skip test SerializePrimitiveXmlTextAttributeOnDerivedClass on NetFramework.


Commit migrated from https://github.com/dotnet/corefx/commit/e15726d2de69cdf959383d6e89d56071b978b8e9
2018-08-16 11:24:24 -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
Jiayi Yu ba8fbecd49 Fix race conditions in DatataContractSerialization (dotnet/corefx#31065)
* Fix some race conditions in DatataContractSerialization


Commit migrated from https://github.com/dotnet/corefx/commit/2b9fa079f9640a2a2af34eda8be681c9354ef7f0
2018-07-16 11:55:01 -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
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
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
Huangli Wu f2790817b9 Enable DCS_TypeWithPrimitiveKnownTypes test on uapaot (dotnet/corefx#29152)
* Enable DCS_TypeWithPrimitiveKnownTypes on Uapaot since the original issue dotnet/corefx#24265 has been fixed.

* Delete the code.


Commit migrated from https://github.com/dotnet/corefx/commit/7bebba0429a8eddbae378cdfc95c08a9455b0274
2018-04-17 09:20:33 -04:00
Jiayi Yu 111ab7334d remove empty baseline files (dotnet/corefx#28656)
Commit migrated from https://github.com/dotnet/corefx/commit/e3694f9b8a69d21d1cb0e30412b7e52079ae69d6
2018-03-30 15:26:46 -07:00
Jiayi Yu dfdc2fcd33 Fix MatchingRefApiCompat issues in Serialization libraries (dotnet/corefx#28552)
* Fixes: System.Xml.XmlSerializer/src/MatchingRefApiCompatBaseline.uap.txt

* fixes System.Xml.XmlSerializer/src/MatchingRefApiCompatBaseline.uapaot.txt

* Fixes: System.Xml.XmlSerializer/src/MatchingRefApiCompatBaseline.netcoreapp.txt

* Fixes: System.Runtime.Serialization.Xml/src/MatchingRefApiCompatBaseline.txt

* Bring back ReadString() as it is used somewhere else

* fix build errors


Commit migrated from https://github.com/dotnet/corefx/commit/3d6e00c9be13dc047810d2ca877671b3bed6fd41
2018-03-30 11:30:35 -07:00
Stephen Toub b0d60c3fdc Fix stack overflow exception due to XmlDictionaryReader.Close override (dotnet/corefx#28408)
It looks like a virtual Close was added to XmlDictionaryReader when XmlReader.Close didn't yet exist in corefx.  Then when XmlReader.Close was added, the virtual on the derived type was changed to an override, but that override's behavior doesn't play well with the base's.  The fix is just to delete it, matching netfx.

Commit migrated from https://github.com/dotnet/corefx/commit/4982068fb9a2657cf41c6a3f72ffad2169ab1984
2018-03-27 17:38:02 -07:00
Jiayi Yu bb28591c1a Support PositiveInfinity and NegativeInfinity as default value in sgen (dotnet/corefx#27734)
* PositiveAndNegativeInfinityTests

* addspaces

* addSerializeWithDefaultValueTest

* addNaNtest

* Add ActiveIssue attribute


Commit migrated from https://github.com/dotnet/corefx/commit/56c0ffacb4056bc8e975f3236d3a5d1383335c5c
2018-03-26 16:40:25 -07:00
Joshua Clark dc989dd0ca Added DCS Tests for System.Drawing Types (dotnet/corefx#27082)
* Added DCS Tests for System.Drawing Types

* Revert "Added DCS Tests for System.Drawing Types"

This reverts commit dotnet/corefx@20288796a7.

* Move Utils.cs to CommonTest project

* add references to common helper method file and Utils.cs, add tests

* update references to Utils.cs

* fix indentation


Commit migrated from https://github.com/dotnet/corefx/commit/007f6812bd1454675dbd3d15a9aca814afcd7553
2018-03-16 23:07:19 -04:00
Wes Haggard 4d97955681 Consolidate matching ref generated baseline files
This change collapses some baseline files as well as fixes
some of the reference mis-matches


Commit migrated from https://github.com/dotnet/corefx/commit/8842923d3d6bc357d39b34c93353df952ac02079
2018-03-09 15:43:29 -08: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
Shin Mao 1ad5e1327f Move XmlSerializer CodeGen from SGen to S.P.Xml (dotnet/corefx#26169)
*  Move XmlSerializer CodeGen from SGen to S.P.Xml (dotnet/corefx#24401)

* Move XmlSerializer CodeGen from SGen to S.P.Xml

The PR is moving the CodeGen code of XmlSerializer from SGen back to
System.Private.Xml.

* One minor change.

* Error handling.

* Add PreGenOnly Check for FromMappings.

* Fix the sgen generated code error for a type with mismatched attribute and property. (dotnet/corefx#24671)

* Removed XMLSERIALIZERGENERATOR entries.


Commit migrated from https://github.com/dotnet/corefx/commit/b032565f4c8186dcb82a0d6be8a94e660184405a
2018-01-08 11:47:43 -08:00
Marco Rossignoli 14bde4d31d "Don't directly throw Exception" System.Private.Xml (dotnet/corefx#25975)
* Don't directly throw Exception

* Don't directly throw Exception

* Don't directly throw Exception

* Don't directly throw Exception

* Fix test


Commit migrated from https://github.com/dotnet/corefx/commit/270be00f569abea3b4b7fb6e0191130e50b17ecf
2017-12-29 11:49:39 -08: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
Huangli Wu 12025de22a Pull out the SerializeAndDeseriaze method into common (dotnet/corefx#25703)
* Pull out the SerializeAndDeseriaze method into common so the other team can use it for the DCS tests of their types.

* Add reference to the helper file.


Commit migrated from https://github.com/dotnet/corefx/commit/23a4ba94ad027adf2d8c27b39970619b96b4b61b
2017-12-05 09:32:03 -05:00
Huangli Wu ce9fbdb88e Ignore the type if it contains any property that only have private setter. (dotnet/corefx#24611)
Commit migrated from https://github.com/dotnet/corefx/commit/71761de5f8deb0c332f62622f71f94f27252c624
2017-10-16 10:14:48 -07:00
Shin Mao 0ccbefcd1f Tests for Type Having Primitive Types as KnownType (dotnet/corefx#24267)
Fix dotnet/corefx#24264

Commit migrated from https://github.com/dotnet/corefx/commit/9cce463310a7d04d9ed5aab9828ee0af79d5317d
2017-09-27 13:36:40 -07:00
Xing Mao 0033aea7f4 Fix dotnet/corefx#22779
Commit migrated from https://github.com/dotnet/corefx/commit/f05d1d6e43c86b94bb8bd790c2065410e41f8c58
2017-09-12 10:44:39 -07:00
Xing Mao 00710bf2e3 Fix dotnet/corefx#22778.
Commit migrated from https://github.com/dotnet/corefx/commit/5d7d440848e8798e9945e73a764fbafcd2d30fcd
2017-09-12 10:44:39 -07:00
Xing Mao d4dceb196f Fixed a bug in GetCollectionMethods.
Fix dotnet/corefx#22777


Commit migrated from https://github.com/dotnet/corefx/commit/781e6f4235b755bb18d7e5aa834e2b9d4cf64e22
2017-09-12 10:44:39 -07:00
Xing Mao 7a3c646cd3 Fix test with DataSet serialization.
Fix dotnet/corefx#22776


Commit migrated from https://github.com/dotnet/corefx/commit/68e145a4dd2eab39fe8cda4c1c943d68d00f4274
2017-09-12 10:44:39 -07:00
Santiago Fernandez Madero 504fca1427 Add BinPlaceConfiguration for test projects to have a working directory per BuildConfiguration (dotnet/corefx#23633)
* With this change we will have the next behavior when building/running tests:

-When building the tests we will still bin place the test assets to the OutputDirectory (corefx\bin\OSGroup.Configuration\TestProject\TargetGroup/)

-When running the tests we will bin place the tests assets to this new TestPath which will be the TestPath. This new path will be the test's working directory where we will bin place the RunTests.cmd and necessary dependencies in tests.targets. Also the testResults.xml will be found here after the test execution.

-TestPath is set to be bin/tests/<TestProject>/<BuildConfiguration>/ (i.e corefx\bin\tests\System.Collections.Immutable.Tests\netcoreapp-Windows_NT-Debug-x64) in dir.props

-This TestPath will be added to the BinPlaceDir in FrameworkTargeting.targets when BinPlaceTest is set to true. Then in the BinPlaceFiles target the test assets will be hardlinked to the TestPath.

This will isolate every test execution per build configuration and will allow people to run the same test project for all of the supported configurations on the same repo without having to clean the repo.

Commit migrated from https://github.com/dotnet/corefx/commit/664ca9508a03483a7fb2714b55b9cba885593d90
2017-09-05 13:30:09 -07:00
Eric StJohn 93a519b14b Merge pull request dotnet/corefx#23611 from ericstj/removeNetFxSupportLibs
Remove NetFx support libs

Commit migrated from https://github.com/dotnet/corefx/commit/70201d1f97465882eda716c66da09d22c3933edc
2017-08-30 11:24:25 -07:00
Brian Chavez 3d09f92467 String literal spelling corrections - A through Z (dotnet/corefx#23674)
Commit migrated from https://github.com/dotnet/corefx/commit/dd2428300b982775f9ede37104ef8ccbb0350ec2
2017-08-29 22:33:36 -07:00
Brian Chavez caeee5a506 XML doc spelling corrections - Q through Z. (dotnet/corefx#23655)
Commit migrated from https://github.com/dotnet/corefx/commit/723c7feed515abbeece068e05fdf2f918a74ca85
2017-08-29 15:40:48 -07:00
Eric St. John b2dae07f2b Update VS configurations
Commit migrated from https://github.com/dotnet/corefx/commit/238bf3302817a910fac3968f4ac826424294ab0c
2017-08-29 08:49:24 -07:00
Eric St. John 20a117e4cc Remove NetFx support libs
Now that we've shipped the NETStandard support package we will no longer build its content
from `master`.

It will be serviced from the `release/2.0.0` branch and the only netfx builds in `master` will
correspond to package content.


Commit migrated from https://github.com/dotnet/corefx/commit/eade3b36725c8d463a40589ff749af5bb0cab8f4
2017-08-29 08:46:22 -07:00
Huangli Wu 71068e313d Fix the sgen issue when use NaN as the default value. (dotnet/corefx#23366)
* Fix the codegen issue when use NaN as the default value. Move the NaN test from runtimeonly to XmlTest so it will be included in Sgen test run.

* Add brackets.


Commit migrated from https://github.com/dotnet/corefx/commit/e60c0219511656c6834f96ea41a5f48bbe6815f5
2017-08-18 17:32:08 -07:00
Shin Mao 38a0817352 Fixed Issue with DCS Serializing Get-Only Collection.  (dotnet/corefx#22975)
* Fixed Issue with Get-Only Collection.

Fix dotnet/corefx#22965

* skip one test on uapaot.


Commit migrated from https://github.com/dotnet/corefx/commit/793e7f027df16c2d9bc979876c3af1547bcc8f7d
2017-08-16 11:00:05 -07:00
Huangli Wu 700f7e79d5 Add SGEN Automation. (dotnet/corefx#23090)
* Add SGEN Automation.

* update version.

* update

* delete tfm

* print out version

* Update version

* update version

* Update tests.

* Add dummy class for UWP run.

* Disable SGEN on uap.

* add casesensitive parameter for linux run.

* use dotnet instead of dotnet.exe

* update argument.

* Copy existing json file.

* add message

* Copy json to test project

* fix casesensitive

* disable running on Linux and OSX

* Add constants.

* Update condition.

* Add more condition.

* add condition

* Update condition.

* Solve the conflict and make some fixes based on feedback.

* Remove the commented code.

* Remove OSX condition.

* Remove dummy class

* Remove osx from configuration. Add condition on the ItemGroup.


Commit migrated from https://github.com/dotnet/corefx/commit/c69764406ef2450bbf0499aa3c982972676756f3
2017-08-15 14:04:00 -07:00
JimboWei 14d0bc2c32 Failed case with date time (dotnet/corefx#23212)
* Fix the issue dotnet/corefx#23100

* Remove useless code


Commit migrated from https://github.com/dotnet/corefx/commit/70e08d8c556c71049299b37e251785ce96a2720f
2017-08-14 10:16:31 -07:00