Commit Graph
43 Commits
Author SHA1 Message Date
Anirudh Agnihotry 3b9abae5aa Removing "netcoreapp" and "netfx" TargetGroup (#457)
* netcoreapp -> netcoreapp5.0 in .sln files

* netcoreapp; -> netcoreapp5.0;  , netcoreapp- to netcoreapp5.0-

* netcoreapp- -> netcoreapp5.0 in .csproj

* 'netcoreapp -> 'netcoreapp5.0 in .csproj

* done with libraries sub folder

* missed semicolon

* minor changes

* netcoreapp -> netcoreapp5.0 in some extra files

* vNext target variable in configurations.props

* netcoreapp => netcoreapp5/0 in some other .props file

* netcoreapp -> vnext in .csproj

* making the netcorepap framework switch work

* fixing sendToHelix and linux build

* TargetFrameworkVNext -> netcoreappCurrent

* case correct netcoreappcurrent

* fixing send to helix zip path

* netfx -> net472 in .sln

* netfx; -> net472; in .props

* netfx- -> net472- in .props

* netfx - -> net472- in .csproj

* 'netfx-> 'net472 in .csproj

* netfx -> net472 manual change

* fixing ci build for netfx

* Not trying to change the global property

* Fixing build failure due to master changes in net https tests

* adding documentaiton and fixing filtering

* netcoreapp -> netcore5.0 in py file

* changing the path to use netcoreapp5.0 version

* feedback and override corefx path corrected in installers

* remaing netcoreapp5.0 changes done

* netcoreapp-> netcoreapp5.0 after live builds

* net472 -> netframeworkcurrent
2019-12-14 12:22:29 -08:00
Anirudh Agnihotry 3679e373a3 Bumping the assembly version to 5.0.0.0 (dotnet/corefx#41723)
* bumping the assembly Version

* correcting the resx file

* keeping netfx for oleDb

* fiixing the netfx tests as well

* fixing the DataSetExtensionsVersion

* removing netstandard2.0 from ref in datasetextensions


Commit migrated from https://github.com/dotnet/corefx/commit/9a4ed0d00bc642b015974684c32b00650426429f
2019-11-11 10:43:58 -08:00
Shay Rojansky ea9be74f37 Fix DataRowExtensions.Field for nullable types
Fixes dotnet/corefx#41879


Commit migrated from https://github.com/dotnet/corefx/commit/f664740a41ea54e7b061731c36d262cfd9b39570
2019-11-04 17:56:01 +01:00
Viktor Hofer d2999dc804 Remove versionless netstandard target group (dotnet/corefx#41984)
Commit migrated from https://github.com/dotnet/corefx/commit/26d7b6626ab0385a1158e674855f81ab73f628e0
2019-10-27 17:08:59 +01:00
Viktor Hofer 9b88ca1d72 Remove UAP target (dotnet/corefx#41759)
* Remove Uap target

* Remove RemoteInvokeForUap wrapper calls entirely

* Harvest S.D.SqlClient on UWP

* Disable UWP PInvoke analyzer

* Enable WindowsRuntime* tests on netcoreapp

Commit migrated from https://github.com/dotnet/corefx/commit/3b6ec2ba944fb72f921f95b99b6ebf2e7bb3dc5a
2019-10-17 15:04:39 +02:00
Viktor Hofer d5079dda17 Remove ProjectGUIDs from project files and Project and Name attributes from P2Ps (dotnet/corefx#40926)
* Remove ProjectGUIDs from P2Ps

* Remove ProjectGUIDs from project files

Commit migrated from https://github.com/dotnet/corefx/commit/c22714d65151968a17c3b232748880d5e7961dee
2019-09-09 18:21:25 +02:00
Stephen Toub 60d1224ddd Re-enable StyleCop warnings SA1028 and SA1518 (trailing whitespace and blank lines) (dotnet/corefx#40113)
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
2019-08-07 21:07:58 -04:00
Stephen Toub 6e335aa872 Enable several StyleCopAnalyzers (dotnet/corefx#39921)
* 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
2019-07-31 19:10:59 -04:00
Stephen Toub 47f8f6d47d Re-enable xunit warning 2003 (dotnet/corefx#39696)
* Replace "Assert.Equal(null, " with "Assert.Null("

* Replace "Assert.NotEqual(null, " with "Assert.NotNull("

* Replace "Assert.Same(null, " with "Assert.Null("

* Replace "Assert.StrictEqual(null, " with "Assert.Null("


Commit migrated from https://github.com/dotnet/corefx/commit/6de660a02e335eefebfcc3c81ecb0013e2a8148e
2019-07-23 15:49:33 -04:00
Viktor Hofer 2862b45d28 Update sln configurations (dotnet/corefx#38698)
Commit migrated from https://github.com/dotnet/corefx/commit/5ec88f81af71d253cfa74f9982abf748ccbd529b
2019-06-19 23:28:19 +02:00
Viktor Hofer b661c58b1c Replace netstandard test projects with tfms
Netstandard test projects are broken by design and don't support the
Microsoft.Net.Test.SDK. Replacing the netstandard tfm with the concrete
implementation tfms.


Commit migrated from https://github.com/dotnet/corefx/commit/d29c16c99c6045ee67444a7a693dd4476861c463
2019-05-30 16:18:41 +02:00
Anirudh Agnihotry 2c7c4ec9e2 removing partial facades from netcoreapp\uap reference assembly build (dotnet/corefx#37591)
Commit migrated from https://github.com/dotnet/corefx/commit/f5be0283c5e00dd823a41f671f9c9a41170f0a85
2019-05-13 21:58:20 -07:00
Jose Perez Rodriguez 7d8177c8c3 Fix VS Configurations for all projects in corefx (dotnet/corefx#37477)
Commit migrated from https://github.com/dotnet/corefx/commit/1c48331eb5784c58b81309665257f454abd7d322
2019-05-06 14:46:10 -07:00
Eric StJohn aeff4ec822 Add DataTableExtensions.AsDataView (dotnet/corefx#36528)
* 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
2019-04-03 12:53:46 -07:00
Stephen Toub dce7647bbc Clean up lots of string.Format / SR.Format usage (dotnet/corefx#35777)
* 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
2019-03-06 12:03:00 -08:00
Viktor Hofer f8a8530d0f Project msbuild syntax cleanup (dotnet/corefx#35686)
* Remove license header from non-shipping files

* Remove obsolete Project attributes

* Remove xml header and remove DefaultTargets


Commit migrated from https://github.com/dotnet/corefx/commit/c390ce7df50252e11f5d322276e9d19e046d1332
2019-03-03 18:55:25 +01: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
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
Viktor 993a0c2ef2 Change test data file paths to respect Content TargetPath
Commit migrated from https://github.com/dotnet/corefx/commit/fdc9de8db8785331749a985501fd05e2cc3673db
2018-10-17 01:04:44 +02: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 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
Alexander cf3a78d05d Null value in string array in DataRow causes DataRowComparer to throw NRE, but only if it is the first parameter (dotnet/corefx#27251)
* Null value in string array in DataRow causes DataRowComparer to throw NRE, but only if it is the first parameter (dotnet/corefx#22855)

* Avoid boxing in case of compare value types (dotnet/corefx#22855)

* Ignore test for full framework


Commit migrated from https://github.com/dotnet/corefx/commit/dff80dc05a5d4f67fcef065aa9e625860ad71cd2
2018-05-29 19:18:52 -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
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
Santiago Fernandez Madero 970144797a Add netfx placeholder configuration to System.Data.DataSetExtensions (dotnet/corefx#26576)
* Add netfx placeholder configuration to System.Data.DataSetExtensions

* Update System.Data.DataSetExtensions key to match Desktop public key


Commit migrated from https://github.com/dotnet/corefx/commit/451824f7d2c0679888b2d4acd541795de9f8a7f7
2018-01-30 10:10:58 -08: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
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
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 88875187b0 XML doc spelling corrections - D through H. 🚿 (dotnet/corefx#23638)
Commit migrated from https://github.com/dotnet/corefx/commit/a27929935d2782cdc3e7be21653e8c4530274c6f
2017-08-29 17:10:01 -07: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
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
Brian Chavez ba2326f831 XML doc spelling corrections - A through C. (dotnet/corefx#23634)
Commit migrated from https://github.com/dotnet/corefx/commit/afcbd9a5b9e4ecde2db3a69afd093631f1db91c5
2017-08-28 23:42:20 -07:00
Nina Chikanov dd28cd8062 Force System.Data.DataSetExtension tests to build in chk (dotnet/corefx#23408)
Commit migrated from https://github.com/dotnet/corefx/commit/6e536f37914f4067904562c39db6dda69c93ac53
2017-08-18 18:21:38 -07:00
Nina Chikanov 71e10db98d Add PkgProj for System.Data.DataSetExtensions (dotnet/corefx#23087)
Add PkgProj for System.Data.DataSetExtensions


Commit migrated from https://github.com/dotnet/corefx/commit/971d6605f7bf5ef16db3d138b8256cede2731d36
2017-08-15 11:30:44 -07:00
Tarek Mahmoud Sayed 3765a6069b Moving PlatformDetection to Corefx.Private.TestUtilities assembly (dotnet/corefx#23109)
* 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
2017-08-10 22:37:36 -07:00
Atsushi Kanamori 4976bfdc6e Fix MonoTests.System.Data.DataRowExtensionsTest on ILC (dotnet/corefx#23111)
* Fix MonoTests.System.Data.DataRowExtensionsTest on ILC

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

Unbox utility used Reflection on private members
to unbox a Nullable.

It's really a lot simpler just to... unbox it.

* Simplify this even more.


Commit migrated from https://github.com/dotnet/corefx/commit/2a10669cb24e879553811d344e26fd92072de059
2017-08-10 15:49:53 -04:00
Nina Chikanov aa931af328 Add initial tests to System.Data.DataSetExtensions (dotnet/corefx#22892)
* 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
2017-08-09 08:53:57 -04:00
Hugh Bellamy b4a436c0d7 Remove dead code in DataRowComparer
These are already handled:
- `ReferenceEquals(a, b)`: 1st check in `AreEqual`
- `if (ReferenceEquals(a, null) || ReferenceEquals(b, null)`: 1st check
in `CompareArray`
- `a.Length != b.Length`: 1st check in `CompareArray`


Commit migrated from https://github.com/dotnet/corefx/commit/6ab3f8db2fb34e2c8b505b8a42c3b4ac71df46c0
2017-08-02 18:34:45 +07:00
Hugh Bellamy 9089fc20c9 Fix porting bug for incorrect exception thrown
Commit migrated from https://github.com/dotnet/corefx/commit/ae9d50018281ef451d21849d45683e675c191c17
2017-08-02 18:33:15 +07:00
Hugh Bellamy a64882c2ca Add DataRowComparer tests
Commit migrated from https://github.com/dotnet/corefx/commit/4545c892576527d1e063a3dc69e5b4ba370a0498
2017-08-02 18:17:37 +07:00
Nina Chikanov 6bb958aa2b Port System.Data.DataSetExtensions from desktop to Core (dotnet/corefx#22669)
* 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
2017-07-31 15:46:20 -07:00