Mechanical/automated change. The only manual changes were a) removing the two rules from the CodeAnalysis.ruleset file, b) removing spaces from one line of a .targets file that is used to generate a .cs file, and c) reverting the changes in a few test files where the naive replacement happened in the middle of a verbatim string where the whitespace actually mattered.
Commit migrated from https://github.com/dotnet/corefx/commit/09a6e66b0c2b31bd0f6e7e3170537d14027aeed0
* Fix ordering of keywords in member signatures
* Add StyeCop.Analyzers
Most rules are disabled. Many of them we'll want to leave disabled, however there are a handful it'll be good to enable over time.
* Use built-in type alias
* Fix straggling stylecop warnings in all configurations
* Replace tabs with spaces
Commit migrated from https://github.com/dotnet/corefx/commit/a12c557a72988070b8624cc7ecc46899629895c4
* Move most DataSetExtensions code to common
* Add DataTableExtensions.AsDataView
This pushes down the minimal number of types required to implement
DataTableExtensions.AsDataView.
LinqDataView is added in order to implement AsDataView, the following
types need to be pushed down in order to implement this:
- DataSetUtil
- DataTableExtensions
- EnumerableRowCollection
- SortExpressionBuilder
Moving thse down requires that the following also be moved due to needing
internals access to moved types.
- EnumerableRowCollectionExtensions
- OrderedEnumerableRowCollection
- TypedTableBase
- TypedTableBaseExtensions
* Add license to LinqDataView.cs
* Add a couple simple AsDataView tests
* Move remaining types from DataSetExtensions to Common
* Clean up source. CR feedback.
* AsDataView test only NetCoreApp
* Make System.Data.DataSetExtensions inbox, remove package
We pushed all the types down into System.Data.Common, and the facade is
now inbox, so the package only remains meaningful to carry a netstandard2.0
implementation assembly. This assembly is only applicable on older
netcoreapp versions, so rather than ship it from master we'll service
it from the release/2.1 branch.
Commit migrated from https://github.com/dotnet/corefx/commit/770c50d6251009dee48c0481f3def171301639e4
* Clean up lots of string.Format usage
This PR does a few things:
- Adds new SR.Format overloads, in particular to support accepting an IFormatProvider as the first argument.
- Fixes a bunch of calls to string.Format that should have been using SR.Format. This not only helps in AOT builds where we want to be able to more cleanly remove resource strings, it enables easier auditing of the remaining string.Format uses to determine whether there are more appropriate implementations.
- Replaces some string.Format uses, in particular in asserts, with easier to read and maintain string interpolation
- Replaces some string.Format uses with string concatenation where it's simple and cheaper
- Fixes a bunch of SR.Format(SR.Something) calls where the SR.Format part is extraneous and should just be removed.
- Replaces a bunch of Debug.Assert(false, ...) calls with Debug.Fail(...). This isn't directly related to string.Format, but I started this cleanup as part of cleaning up asserts that were using string.Format, and then ended up accidentally merging the chain into the same commit, and decided it was simple enough that I should just leave it rather than trying to separate it out again.
* Address PR feedback
* Fix breaks due to lower netstandard builds
Commit migrated from https://github.com/dotnet/corefx/commit/a6f76f4f620cbe74821c6445af3f13e048361658
* 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
* 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
* Moving PlatformDetection to Corefx.Private.TestUtilities assembly
The purpose of this change is to clean up all test projects instead of including the PlatformDetection code inside every test project, we’ll have it in the Corefx.Private.TestUtilities.
I have refactored the PlatformDetection to split the different implementation of Windows and Linux. If we need to do more refactoring there we can do it later as needed.
* Fix Linux BB
* Update the xunit package reference
* Fix wrong condition on one of the tests
* Update the ConditionalFact/Theory to use Type as a parameter
Commit migrated from https://github.com/dotnet/corefx/commit/878e2fcf5a9f1068015e5fada9231088663e3490
* Add tests from mono and more to existing tests
* Clean up tests for Mono
* Fix up some tests, add necessary XML file
* Add more tests, add XML to correct location
XML will automatically compile when moved to right location that is in
the project, not on local desktop.
Add tests for TypedTableBaseExtensions and
EnumerableRowCollectionExtensions
* Fix path of testdataset1.xml
So tests can find doc
Commit migrated from https://github.com/dotnet/corefx/commit/73f62d06803d086ee7f6745b55dfde63e27be779
* Initial port from desktop
* Remove Linq class & other internal dependencies, add smoke test
* Modify Configurations for src, ref, tests
Configurations only for netcore and netstandard right now, on Windows_NT
and Unix. Removed UAP for now.
* Clean up missed files
* Change ref to netstandard configuration
* Reduce references in /src and /ref .csproj files, remove unused strings, change to netstandard
* Stephen's Nits fixed
* Rename to System.Data.DataSetExtensions
* Remove SecurityCritical Assembly
Commit migrated from https://github.com/dotnet/corefx/commit/9a8228328bd4ad26e2eeb41198bfdad24aa4d5fe