Commit Graph
143 Commits
Author SHA1 Message Date
Eric St. John 5af200cd50 Rename "dotnet" to "NETStandard"
Fixes https://github.com/dotnet/corefx/issues/5707

We are changing the .NET packages to no longer use the ‘dotnet’, ‘dotnet5.x’, and ‘dnxcore50’ monikers.  This is thee first stage of the change for dotnet->netstandard.

The replacements are as follows

Old moniker | New moniker
----------------- | ------------------
dotnet5.x | netstandard1.y  (where y = x -1)
DNXCore50 | netstandardapp1.5
dotnet | netstandard1.3

To prepare for this change you can do the following to your project.json.  This change will require a recent build of NuGet or dotnet.exe and can be done prior to consuming the packages with the breaking change.  These packages will not work with DNX.

For a project targeting dotnet5.6
```
    "frameworks": {
        "netstandard1.5": {
            "imports": [ "dotnet5.6" ]
        }
    },
```

For a project targeting dnxcore50
```
    "frameworks": {
        "netstandardapp1.5": {
            "imports": [ "dnxcore50", "portable-net45+win8" ]
        }
    },
```

[tfs-changeset: 1578321]


Commit migrated from https://github.com/dotnet/corefx/commit/4435f9f2776ae007e05f4454675e56cf76a51975
2016-02-23 20:18:17 -08:00
Eric Mellino 803de07923 Consolidate all facade projects, cleanup project files
* Move all of the project configurations currently living in the
  "facade\<lib>.csproj" files into the root library project. This means
  there will now be only one project file for the source build of each
  library, regardless of how many configurations it has. The .builds file
  of each library will only reference that single project file multiple
  times.

* Do some minor cleanup of project files along the way. Fix up the VS
  default configuration blocks to be a bit more uniform. Remove redundant
  defaults (OutputType, PlatformTarget, etc. Fix some condition spacing.


Commit migrated from https://github.com/dotnet/corefx/commit/26edfd6839044ca6368e28502e0893c1b1819b4c
2016-02-22 11:11:10 -08:00
Christopher Costa b7275a6e29 Merge branch 'master' of https://github.com/dotnet/corefx into open_pkgs
Commit migrated from https://github.com/dotnet/corefx/commit/7df55caaad1d1e21866ec31b0e7161db9ae2179c
2016-02-19 14:21:24 -08:00
dotnet-bot b32ddb5d98 Deploy nameof throughout corefx in MemberData
Commit migrated from https://github.com/dotnet/corefx/commit/9c3156b9ada06b8e58ac53d48fc303500bf3e476
2016-02-18 23:58:15 -05:00
dotnet-bot 3184718282 Deploy nameof throughout corefx in exception construction
Mostly automated replacement of parameter name string literals with corresponding usage of nameof.


Commit migrated from https://github.com/dotnet/corefx/commit/396b41ddec99d01505c1bc4fa02fb0f0c5844990
2016-02-18 23:58:06 -05:00
Christopher Costa d95b14a3c4 Merge branch 'master' of https://github.com/dotnet/corefx into open_pkgs
Commit migrated from https://github.com/dotnet/corefx/commit/b70432898b7a00edb3303c0fbf4a1b98ebe442b4
2016-02-18 10:28:54 -08:00
stephentoub 95d7cc7534 Update packages to rc3-23818
Commit migrated from https://github.com/dotnet/corefx/commit/380a2ebf4a498f9ab0a819c71d8717377e601bfb
2016-02-18 07:28:09 -05:00
Christopher Costa 23ac6d7e8d Merge branch 'master' of https://github.com/dotnet/corefx into open_pkgs
Commit migrated from https://github.com/dotnet/corefx/commit/ddcd78f8f2ccd3debefefb5e10164d7a038bb7e0
2016-02-17 10:46:00 -08:00
stephentoub 180fba592f Update packages to rc3-23816
Commit migrated from https://github.com/dotnet/corefx/commit/c2e6426b9b9494d5478f656396f4da5711e8729a
2016-02-16 11:05:43 -05:00
Christopher Costa 1df6eaae43 Open package conversions for corefx.
Commit migrated from https://github.com/dotnet/corefx/commit/030e29992f6be20ffb9d9d3e799118f3354bce22
2016-02-11 13:37:45 -08:00
stephentoub 685d9f5063 Add API review headers to ref files
Commit migrated from https://github.com/dotnet/corefx/commit/5240b324e50f9aabaa11d4b0c46acc34e370a724
2016-02-11 10:50:44 -05:00
Matt Ellis 2b0bed53fc Merge branch 'master' into from-tfs
Conflicts in dir.props, one side removed and property and the other side
added a property close to one another so that confused the
auto-merger. Just took the relevent parts of both sides.


Commit migrated from https://github.com/dotnet/corefx/commit/8bfd29b2a5f33a4fb9c88b071fa2f5671d5dec86
2016-02-10 16:50:38 -08:00
stephentoub 9d84e4c99a Restore use of generics in System.Linq.Parallel
PLINQ makes fairly heavy use of generics.  During .NET Native bring-up, some of this generic usage was reduced due to initial limitations of the stack.  Now that those have been addressed, I'm restoring the use of generics to its original extent, helping to avoid a huge number of allocations, lots of casting, etc.

This has a significant impact in the overhead of certain operators.  For example, consider this little test app:
```C#
using System;
using System.Diagnostics;
using System.Linq;

class Test
{
    public static void Main()
    {
        var sw = new Stopwatch();
        int[] data = Enumerable.Range(0, 10000000).ToArray();
        while (true)
        {
            int gen0 = GC.CollectionCount(0);
            sw.Restart();
            int[] results = data.AsParallel().Select(i => i).Distinct().ToArray();
            sw.Stop();
            Console.WriteLine($"{GC.CollectionCount(0) - gen0}: {sw.Elapsed}");
        }
    }
}
```
On my machine, prior to this commit, this produces output like the following:
```
303: 00:00:02.6805895
305: 00:00:03.3609698
308: 00:00:03.8779080
298: 00:00:03.6718290
291: 00:00:05.0167444
```
After this commit, this produces output like the following:
```
3: 00:00:00.5949436
4: 00:00:00.5434885
2: 00:00:00.5391528
3: 00:00:00.5602570
3: 00:00:00.4982133
```


Commit migrated from https://github.com/dotnet/corefx/commit/fb0a1d90d874eba4d1b00227d31009496f67002d
2016-02-09 23:40:25 -05:00
Davis Goodin 1bc755f9e7 Adds custom xplat nuget that can restore from VSTS feed, adds the VSTS feed, and upgrades project.jsons throughout NDP\FxCore to pass new nuget compatability checks.
Some fixes (adding imports, adding Platforms package) were tooled, but more complex ones (forking project.jsons, editing csproj's) were not.

Also makes dependency version validation rules case-insensitive. (I used this fix to update the versions of some packages.)

[tfs-changeset: 1573868]


Commit migrated from https://github.com/dotnet/corefx/commit/84af04317505d48feaa1e83dd5dc27ddc0f6de76
2016-02-09 14:20:02 -08:00
Jon Hanna 5897ec6487 Remove unused paths in Set.
Set in Linq and Linq.Parallel never has Add called after Remove. Remove
paths and fields only necessary in that case.

Add debug-only check on this assumption, so any new uses that break
this assumption are flagged to the developer.


Commit migrated from https://github.com/dotnet/corefx/commit/a3faba45d0f3b7747bd8e54c4894e733ba4a76ec
2016-01-28 16:37:12 +00:00
Jon Hanna 805204987a Use Remove instead of Contains + Remove on Set
IntersectQueryOperator does a call to Contains followed by a call to
Remove on the same set for the same value. Since Remove takes a very
similar path to Contains in checking for existance, and returns false
when the item to remove isn't found, this can be simplified to just Remove.

Also remove unused constructor on Set.


Commit migrated from https://github.com/dotnet/corefx/commit/a096b4e82121d25d4ed473fd213613a3ba13f1d1
2016-01-28 15:58:21 +00:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
stephentoub b1ced5215f Fix System.Linq.Parallel test after ToArray changes
This wasn't caught previously because System.Linq.Parallel.Tests is depending on the System.Linq.dll NuGet package, not the live bits.  Two tests were explicitly verifying object equality.  This isn't necessary; I've simply deleted the offending checks.


Commit migrated from https://github.com/dotnet/corefx/commit/a7d743c973b2eea287c5c6dcde807fe640ed491a
2016-01-23 11:36:31 -05:00
dagood e401efd6af Add portable-net45+win8 import to tests.
Specifically, add the import to dnxcore50 frameworks entries where "xunit" is mentioned in the project.json.
This fixes `xunit.abstractions 2.0.0 is not compatible with DNXCore,Version=v5.0.`


Commit migrated from https://github.com/dotnet/corefx/commit/da2e8eb34efcaf70069223bc431d80909a2fc91d
2016-01-12 14:04:32 -06:00
Wes Haggard a3e67fdf73 Update .builds files to include OSGroups
This these .builds files were updated and generated from a script
based on the configurations defined in the matching csproj files.

This updates the builds files to specify OSGroup and TargetGroup
as metadata instead of using AdditionalProperties and also sorts them by
TargetGroup followed by OSGroup.


Commit migrated from https://github.com/dotnet/corefx/commit/95efe37475916016a5fc6ee6f0ba584d990c4196
2016-01-02 23:50:23 -08:00
Wes Haggard f27c7dc024 Update project files adding default configurations
This add a default configuration before the Import of dirs.props
for any projects that don't have Debug as the default configuration.

Removed Configuration and Platform properties set after dirs.props
as they would have no affect and just cause confusion.

Removed OutputType=Library property as it isn't necessary.


Commit migrated from https://github.com/dotnet/corefx/commit/9e1da13cf6d5ff4b37b1867beb3411a2fe61da6a
2016-01-02 23:50:21 -08:00
Eric Mellino b8670dea2f Add facade projects for all supported platforms
These facade project files were generated using a porting tool I wrote,
which examined some information from our internal build and created
appropriate project files. I have also re-generated all of the .builds
files so that they import the facade projects in the correct manner.


Commit migrated from https://github.com/dotnet/corefx/commit/58e2f6e862060039e1ebad727d75c87703fdb2f2
2015-12-10 10:29:09 -08:00
dagood fbfb82cc8c Change all project.json files to validate. Remove lockfiles from source control and add to gitignore.
A few new references to pick up changes that happened over time.


Commit migrated from https://github.com/dotnet/corefx/commit/0d881222d8c3269157639e2e67056e5a83aad834
2015-12-09 16:25:26 -06:00
Deepak Shankargouda f5284f6fcc Created initial set of .builds files
Commit migrated from https://github.com/dotnet/corefx/commit/a20fd22b1e44d13e437c235a957a47a2af52838d
2015-12-02 14:38:03 -08:00
Eric St. John 65210efd31 Update project.lock.json to latest and lock
Commit migrated from https://github.com/dotnet/corefx/commit/6aeea5eabf2aff3baf15f501cabd156dfc5b3f8f
2015-11-09 22:38:10 -08:00
Eric St. John cddddd29f5 Remove unused dependencies
Commit migrated from https://github.com/dotnet/corefx/commit/78fd45ec74afc507a40df519b4df650ac9bd4c42
2015-11-09 22:37:37 -08:00
stephentoub a879bb3a90 Reorganize several struct layouts to improve memory efficiency
Due to padding, these structs can end up being unnecessarily large on 64-bit.  Reorganizing the fields helps to minimize the overhead, helping in particular when these are used in arrays.


Commit migrated from https://github.com/dotnet/corefx/commit/a465212d79ac68656b0a8a6d5e1c6e984b5680d5
2015-10-25 13:07:19 -04:00
Eric St. John 8cc3c24b51 Update lock files that were missed in previous restore.
A change was made to DNX to no longer restore project.jsons
that are in nested folders.  This caused my batch update to miss
a number of tests and reference assembly projects.

This fixes the stale lock files, but restore is still broken.

[tfs-changeset: 1540448]


Commit migrated from https://github.com/dotnet/corefx/commit/3622cccc1b22fa1947a72d5126b59864e9d2fd0d
2015-10-21 18:59:09 -07:00
Eric St. John 543808303a Update dnx to v1.0.0-rc1-15838, update dotnet projects to generations
We need a new DNX to understand the latest packages.

We also need to move all "dotnet" projects to use dotnetX.X (generations)
now that the packages no longer have "dotnet" assets.

The new version of DNX dropped support for the aspnetcore
so I needed to update a few projects/packages that depended
on old package versions that had this moniker.

[tfs-changeset: 1540388]


Commit migrated from https://github.com/dotnet/corefx/commit/38f8d7a3ca1ee819c2b8eabb1c07ee4e99683c97
2015-10-21 17:03:48 -07:00
bartonjs a768025131 Update all project.lock.json files
Built Windows_NT, Linux, OSX with /p:LockDependencies=true.

CoreFX beta-* => 23419
xunit.netcore.extensions => 00107


Commit migrated from https://github.com/dotnet/corefx/commit/a14b22705df253508bd5f2dab0407bd2c7e4d639
2015-10-19 16:00:44 -07:00
Eric St. John 8cd3109d56 Switch from using "dotnet" to using "dotnet<generation>"
All projects that previously used dotnet have been updated to specify the appropriate generation of the surface area they depend on or in the case of desktop inbox contracts, the generation that includes the set of platforms they can support.

Now all packages contain all generations of API that they have ever shipped.

In doing this I needed to change how we determine package version.  Before we ensured all assemblies would have the same version and used that.  Now we choose the max.

Additionally I needed to change how we chose which asset to use for netcore50 when the dotnet asset was obscured by a placeholder for a previous netcore release (eg System.Runtime will have placeholders for Win8 since it was inbox there).  To do this I wrote a task that uses nuget to evaluate the package assets with and without the placeholders.  In this way it chooses the "best" dotnet implementation and reference assembly to use for netcore50.

This new model made my old MSBuild-based validation impossible to carry forward, so I wrote better validation in a task that actually uses Nuget's asset resolution algorithm.  This uncovered many existing issues in packages that I have cleaned up.  The validation algorithm could use some polish but its working now.  Perf is not great, package build went from 15s to ~2 minutes.  I'll work on this some more by making it incremental (input: nuspec, output: marker created on success).  Profiling shows that most of the time is spent in calling the nuget APIs.  I'll see if I can reduce some of this with caching for things that don't change (eg: RID graph).  Ultimately I think its a reasonable tradeoff for the types of bugs I can find this way.

[tfs-changeset: 1539216]


Commit migrated from https://github.com/dotnet/corefx/commit/0931c347eb836c9da94d0d5ff9ad7a14403b9738
2015-10-18 21:12:23 -07:00
Peter Jas a29604278c code: Fixes occurred spelling.
Fixes dotnet/corefx#3661.


Commit migrated from https://github.com/dotnet/corefx/commit/544a3885ff51e04db89b70e3f155be1a5c64f166
2015-10-06 15:27:09 +00:00
Stephen Toub 7879d3ffc2 Remove dummy Console.cs from Common\tests
Several of the test projects are doing Console.WriteLine, but aren't actually using System.Console.dll, and are instead including a dummy Console.cs file where WriteLine just calls Debug.WriteLine.  This commit deletes that dummy file and updates the consuming test projects to just use Debug.WriteLine. (We don't want our tests to be using Console.WriteLine for this kind of debug spew, anyway.)


Commit migrated from https://github.com/dotnet/corefx/commit/fbddea55638921186299e9c0eb51d3f3a8dd73b7
2015-10-05 14:34:05 -04:00
Stephen Toub 47c77eba12 Merge pull request dotnet/corefx#3615 from stephentoub/array_copy_zero
Add explicit 0 index args to Array.Copy usage

Commit migrated from https://github.com/dotnet/corefx/commit/e935655404b159e0457ae4adc5caa26594b94bab
2015-10-02 15:44:54 -04:00
stephentoub 613a87d035 Add explicit 0 index args to Array.Copy usage
Array.Copy is implemented to work with any System.Array, not just T[].  When Array.Copy(sourceArr, destArray, length) is used, it delegates to Copy(sourceArr, sourceIndex, destArray, destIndex, length), and as such needs to query for the lower-bound of the supplied arrays, since although a T[] in C# always has a lower-bound of 0, an arbitrary Array may not.  Given this, when calling Array.Copy, instead of calling Array.Copy(src, dest, length), it's slightly more efficient to just call Array.Copy(src, 0, dest, 0, length), avoiding the need for the GetLowerBound calls made while delegating to the 5-arg version.

I noticed one occurrence of this in some code I was looking at, and while fixing that, I fixed all of them across corefx\src.


Commit migrated from https://github.com/dotnet/corefx/commit/979026e435672e611e3f6e0647c873aa96ccc684
2015-10-02 13:56:48 -04:00
stephentoub ee5af96a78 Delete two PLINQ tests
Enumerators, even those produced by PLINQ, are not safe to be used concurrently from multiple threads.  Two PLINQ tests are doing exactly that, trying to Dispose of an enumerator concurrently with calling MoveNext on it and potentially concurrently with other calls to Dispose.  This is resulting in sporadic hangs in CI.

I'm simply deleting the tests, as their sole purpose is to test this particular unsupported and unsafe situation.


Commit migrated from https://github.com/dotnet/corefx/commit/8ba6140a8c9d9584f71731e8856f6e2bdcfc8d17
2015-10-02 12:41:28 -04:00
Ian Hays 0f8197a86c Update CoreFX to xunit 2.1.0
Commit migrated from https://github.com/dotnet/corefx/commit/87b48c58936d66fcb201b3a8ad0961fa055f23b9
2015-10-01 19:56:49 -07:00
Stephen A. Imhoff dac9a62890 Switch to OuterLoop attribute on class.
Commit migrated from https://github.com/dotnet/corefx/commit/5a5debb8fe10216668b31dc5722914d4ace6fa6f
2015-09-17 16:54:17 +09:00
Stephen A. Imhoff 0ace697d7c Expand GetEnumerator Tests.
Commit migrated from https://github.com/dotnet/corefx/commit/37fe1aa4acafa7e11d951a0dd694ac9b3c983db2
2015-09-17 16:54:16 +09:00
Stephen A. Imhoff f50b3b44ed Extract/expand failing combinatorial tests.
Add throw-on-enumeration source.


Commit migrated from https://github.com/dotnet/corefx/commit/aa26d27367f3283c86b502da640a7f87055b3f7a
2015-09-17 16:54:15 +09:00
Stephen A. Imhoff 0562be4aa5 Add missing PreCanceled OCE combination tests.
Commit migrated from https://github.com/dotnet/corefx/commit/df57e797c4288851b6b288aad63a1fff558dd0fa
2015-09-17 16:54:14 +09:00
Clockwork-Muse 168ab05c98 Add checks for duplicate settings.
Commit migrated from https://github.com/dotnet/corefx/commit/ca3c94dc781c92ae738cd86f0435ac729844e919
2015-09-17 16:54:13 +09:00
Clockwork-Muse f73712cb22 Fix some longrunning tests to point at the correct short ones.
Commit migrated from https://github.com/dotnet/corefx/commit/822501805ab70163b6da1d12cc58dae581a78da9
2015-09-17 16:54:12 +09:00
Clockwork-Muse b3766126c9 Add tests dealing with floating point infinity, NaN (and null).
Commit migrated from https://github.com/dotnet/corefx/commit/9e9d3a24b65426e938cef7851e989018bee0a100
2015-09-17 16:54:11 +09:00
Clockwork-Muse bac3728ec5 Improve Sum floating point overflow tests, add NaN tests.
Commit migrated from https://github.com/dotnet/corefx/commit/348bd1a2e7d0e41e03509ae408b60014d8c11470
2015-09-17 16:54:10 +09:00
Clockwork-Muse a15331e8eb Improve OrderBy/ThenBy tests.
Use explicit ranges instead of boolean check, restrict bounds.
Verify count of items ordered.
Add tests with non-comparable items.


Commit migrated from https://github.com/dotnet/corefx/commit/d5ec9d25dc831ab48bc7eb3cadf5d375e6857257
2015-09-17 16:54:09 +09:00
Clockwork-Muse ac5ac4c87e Clarify "Stable Sort" tests.
Commit migrated from https://github.com/dotnet/corefx/commit/958e9122df2408f93b3dd7e42777a333e89c48e2
2015-09-17 16:54:08 +09:00
Stephen A. Imhoff bf547ac81f Correct Test namespace.
Commit migrated from https://github.com/dotnet/corefx/commit/c9e780fd0d5f8868ba9975616ca895a6a17db79d
2015-09-17 16:54:05 +09:00
Alexander Köplinger 3e20a867b2 Update build to use DNX beta7 instead of beta5
The corefx build used an older beta5 version of DNX which hardcoded the path to bash in dnu, breaking the build on FreeBSD.
Updating DNX to the latest "stable" beta7 release fixes this.

After updating I noticed a few test projects didn't build anymore as they were missing some dependencies in project.json, added those.

Fixes dotnet/corefx#3173


Commit migrated from https://github.com/dotnet/corefx/commit/6df77fdbb6cf8e0d35a3074bb325f7810085daa3
2015-09-16 02:12:26 +02:00
Eric St. John d7a0ae297b Update corefx packages to latest
Commit migrated from https://github.com/dotnet/corefx/commit/23f0b695bd162e0f665427c95180dc21931e5c70
2015-08-14 15:43:23 -07:00