Commit Graph
374 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
Wes Haggard 0bd0dc5be2 Fix bad merge comming as the System.IO.FileSystem\project.json netcore50 section should be the one under the netcore50 folder and not be in the root project.json file as we need to workaround some guardrails issues about missing runtime assets.
[tfs-changeset: 1577964]


Commit migrated from https://github.com/dotnet/corefx/commit/ad39dbd0df55b712f5dc3550dc891ab2b7d423dd
2016-02-22 20:20:07 -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
stephentoub 25bba015df Fix a few argument exception parameter names
These were missed by my automated scan in replacing parameter names with nameof because they're the wrong name.  (There are some others that weren't replaced to, but most of those are because they're in private methods that use a different name for the argument, but the name used to the exception is the name in the publically exposed method... I didn't touch those.)


Commit migrated from https://github.com/dotnet/corefx/commit/95c0419f8cefb8e84eaecb4dacf08052312a5bb8
2016-02-19 15:34:37 -05:00
dotnet-bot 01a4f8e52c Deploy nameof throughout corefx in ConditionalFact/Theory
Commit migrated from https://github.com/dotnet/corefx/commit/0f9f72dec0493aa3d90fb4a5e22d7b62ffd79f79
2016-02-18 23:58:17 -05: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
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
dagood 17e3a55352 Work around xplat nuget restore race condition by fixing capitalization.
Put capitalization fixes back in place after some merge conflicts removed them. These fixes work around a xplat nuget restore race condition when there are multiple capitalizations of the same package ID in one restore command.


Commit migrated from https://github.com/dotnet/corefx/commit/b0660c5eee295fc011f9b755b06ec3bfb50f1f12
2016-02-17 12:23:42 -06:00
Lakshmi Priya Sekar 033caf14d4 Disable failing test dotnet/corefx#6153.
Commit migrated from https://github.com/dotnet/corefx/commit/25e77e11dbc57363842389d5c022bdaf00d9d705
2016-02-16 18:14:27 -08:00
stephentoub bb7cf195f0 Copy metadata from source to destination file
Including timestamps.


Commit migrated from https://github.com/dotnet/corefx/commit/d4e41d3ebf4a9068ffc1d07ba638b271648c15cf
2016-02-16 14:52:30 -05:00
stephentoub 6b6a1a5c5f Add File.Copy test coverage for various file sizes
Commit migrated from https://github.com/dotnet/corefx/commit/f38822c565d2b86cccd6d76f318afe92e9044cc5
2016-02-16 13:49:20 -05:00
stephentoub 2035de33e4 Improve performance of File.Copy on Unix
Adds a CopyFile function to the shim that, if possible, uses fcopyfile on OS X, sendfile on Linux, and elsewhere a manual read/write copy as we do today.

In my local tests on Linux, this often resulted in greater than 10% throughput improvements.


Commit migrated from https://github.com/dotnet/corefx/commit/fd13ac2f118673c709feb156efdea8782f0f625c
2016-02-16 13:49:20 -05: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
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
Eric St. John 52d42d1ae8 Add System.Buffers to netcore50 S.IO.FileSystem
A dependency on System.Buffers was added to FileSystem
around the same time that the project.json was forked.

Add the new dependency to the new project.json.

[tfs-changeset: 1574208]


Commit migrated from https://github.com/dotnet/corefx/commit/284f3448b8d00f470930abc41e95f2d8f0cde172
2016-02-10 09:44:50 -08: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
Stephen Toub d95ed1a7f0 Merge pull request dotnet/corefx#5954 from stephentoub/fs_buffers
Use System.Buffers in System.IO.FileSystem

Commit migrated from https://github.com/dotnet/corefx/commit/f6cdaf267357ee27e5ecff4b83d4f3bd3b4c7535
2016-02-09 12:23:55 -05:00
stephentoub 787741715f Use System.Buffers in CopyToAsync implementations
The default CopyToAsync on Stream uses an 80K temporary buffer, making it a good candidate for buffer pooling.  But Stream is in mscorlib and can't rely on System.Buffers.  So this commit introduces an implementation that streams in mscorlib can use, just by overriding CopyToAsync and delegating.  It then uses that in DeflateStream, GZipStream, FileStream, PipeStream, and UnmanagedMemoryStream.


Commit migrated from https://github.com/dotnet/corefx/commit/34ce38bc1517e8b7693223a9e41479dd24abc59a
2016-02-09 11:34:19 -05:00
Jan Kotas 19614fb9db Change SECURITY_ATTRIBUTES to blittable struct
- Fix potential bugs (some places assume that the struct is blittable)
- Better performance performance (interop does not have to create a copy)


Commit migrated from https://github.com/dotnet/corefx/commit/26474015f4ad7587d8bd7a6639aa67b9c2f0dff2
2016-02-08 23:52:28 -08:00
stephentoub 2e521c57c9 Update packages to rc3-23808
Commit migrated from https://github.com/dotnet/corefx/commit/31bb3a0cd271aebc9a4336a53b0fc3bb900fe22f
2016-02-08 07:26:49 -05:00
stephentoub 30a19d4335 Update packages to rc3-23803
Commit migrated from https://github.com/dotnet/corefx/commit/d27ef6fb6092060e643c49a670e825e0cc01ff4d
2016-02-04 07:38:24 -05:00
stephentoub 715cbde1c2 Update dependencies to rc3-23729
Commit migrated from https://github.com/dotnet/corefx/commit/372c940deee1f81c452e69a0ad46ae9f18f6d803
2016-01-29 18:11:41 -08:00
Stephen Toub fd814d342e Merge pull request dotnet/corefx#5767 from dsgouda/packupdate
Updating nuget packages for perf xunit runner

Commit migrated from https://github.com/dotnet/corefx/commit/2d838e6e24a52753d957b1b429b005bb077b816f
2016-01-28 22:59:36 -08:00
Stephen Toub c358563fc9 Merge pull request dotnet/corefx#5687 from stephentoub/fs_async_perf
Use PreallocatedOverlapped in FileStream

Commit migrated from https://github.com/dotnet/corefx/commit/f582b8fb679b2ddc2ab8e2129a9b88f8f106fd71
2016-01-28 22:59:07 -08:00
Deepak Shankargouda 9484bac31b Updating nuget packages for perf xunit runner
Commit migrated from https://github.com/dotnet/corefx/commit/089b58129c5ad7c4016d6f660171cd7509ce72db
2016-01-28 19:05:41 -08:00
Stephen Toub 75b957414f Merge pull request dotnet/corefx#5723 from stephentoub/update_license_headers
Update licensing headers

Commit migrated from https://github.com/dotnet/corefx/commit/ac67ffac987d0c27236c4a6cf1255c2bcbc7fe7d
2016-01-27 14:10:52 -08:00
stephentoub 9ecf277528 Update package versions to rc3-23727
Commit migrated from https://github.com/dotnet/corefx/commit/c442e611d1b4dddc12703b8b80bea9f3889f141d
2016-01-27 08:08:48 -08: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
Lakshmi Priya Sekar 1aa7a9ac09 Update packages version to 23726.
Commit migrated from https://github.com/dotnet/corefx/commit/213da430524eceb9e90883c3d08848f62c813a91
2016-01-26 16:30:20 -08:00
Stephen Toub c1a39e3873 Merge pull request dotnet/corefx#5520 from ianhays/unixpermissionsfs
Fix FileSystem related permissions failures.

Commit migrated from https://github.com/dotnet/corefx/commit/f7beca4542c80a1f61505d9f71e0eda3a14fe34a
2016-01-26 07:40:54 -08:00
stephentoub 28a4e51856 Use PreallocatedOverlapped in FileStream
When using async operations on FileStream, each operation ends up allocating several objects.  By using a PreallocatedOverlapped, we can avoid the majority of those allocations, as well as avoid having to pin/unpin a buffer on each request.

This commit adds an optimization to FileStream that kicks in for the common case when:
- The buffer provided to ReadAsync/WriteAsync is smaller than the size of the FileStream's buffer, such that the FileStream's buffer is used.  And when...
- Operations are not scheduled to run concurrently.

When those conditions are met, we use a PreallocatedOverlapped for the operation to avoid a ThreadPoolBoundHandleOverlapped, IOCompletionCallback, and _IOCompletionCallback getting allocated for each operation.  This reduces the bytes allocated per operation by ~50% and the number of objects allocated by ~60%.  It also saves having to pin/unpin the buffer on each operation.

When those conditions aren't met, we simply use the same code that's used today.


Commit migrated from https://github.com/dotnet/corefx/commit/c01617841be8b5087ed37f64bb2395afc722e549
2016-01-25 20:35:01 -05:00
Ian Hays aac426662c Fix FileSystem related permissions failures.
A number of tests involving ReadOnly files were failing on Unix and Linux when run with elevated user permissions (e.g. sudo). This commit modifies those Unix tests to accomodate either set of permissions and verify the result accordingly. This unfortunately means we can't verify if the behavior is 'right', only that it is executed correctly. Windows is unchanged.


Commit migrated from https://github.com/dotnet/corefx/commit/77d73d27d06cf331c1637bc4e1cdc5aa35b68887
2016-01-25 12:23:05 -08:00
stephentoub 4ef1e70a8a Update package dependencies to rc3-23725
Commit migrated from https://github.com/dotnet/corefx/commit/fad28575225858febd3069d41582a1502c5dda07
2016-01-25 14:38:56 -05:00
Wes Haggard 0c42f1823d Add WinRT package dependency for some projects
Windows.winmd was removed from M.TP.Private.NetNative targeting pack
so when some projects were bumped to a that version which needed
that reference they were broken. To fix we needed to explicitly add
a package dependency to M.TP.Private.WinRT package.


Commit migrated from https://github.com/dotnet/corefx/commit/674638364d94441854edf05c75e0e59a9c9a76ac
2016-01-23 22:41:01 -08:00
Wes Haggard aa2df8f523 Add Microsoft.TargetingPack.Private.* to the list of verified packages
Also updates all the package versions of the targeting pack to the latest


Commit migrated from https://github.com/dotnet/corefx/commit/a13a069c16fb6ed8bb6509a2d0a2f08d77a36b71
2016-01-23 19:32:40 -08:00
stephentoub 6545572fb1 Upgrade packages to rc3-23722
Commit migrated from https://github.com/dotnet/corefx/commit/02ece5061a33a7c12113cc4a52b2321d9e6db185
2016-01-23 11:36:29 -05:00
Wes Haggard 008e610056 Update pkgproj references to use metadata for common properties
Commit migrated from https://github.com/dotnet/corefx/commit/3ca77abd397d27c1cfed52135f3a4adeaf93b80f
2016-01-22 21:31:42 -08:00
stephentoub 9386f54542 Make Directory/FileInfo follow symlinks again
Previously on unix we would use stat to get information about directories and files for DirectoryInfo and FileInfo.  That meant that we wouldn't correctly report ReparsePoint for symlinks, and the code was changed to use LStat.  But that then breaks important use cases, such as by DirectoryInfo.Exist for a symlink to a directory always returning false.

This commit provides a compromise: we first use lstat, and if we find it's a symlink, we use stat but remember separately that it's a symlink so we can include ReparsePoint in the reported attributes.


Commit migrated from https://github.com/dotnet/corefx/commit/36259dc3c72fb1dc2a71a06db6f7dce9ea88c642
2016-01-22 16:35:23 -05:00
Eric Mellino 8ea5b25fe4 Fix two issues with x-plat NuGet package builds
* Microsoft.VisualBasic needs to be disabled because the source
  project cannot be built outside Windows.
* System.IO.FileSystem had an incorrectly-cased path, which I fixed.


Commit migrated from https://github.com/dotnet/corefx/commit/2bdbce4b045531d8a420472d4c03653c7fe90b42
2016-01-21 15:07:16 -08:00
Eric Erhardt 4d42d8879e Bump ExpectedPrerelease version to latest (rc2-23713)
Commit migrated from https://github.com/dotnet/corefx/commit/ea4b19c136f3fa6355fd307b38cbe605b519b5eb
2016-01-21 09:46:18 -06:00
Eric Erhardt 450b83451e Remove all ActiveIssue dotnet/corefx#846 attributes since dotnet/corefx#846 is closed.
Add new issues for failing tests.


Commit migrated from https://github.com/dotnet/corefx/commit/e7ce2bc4b1a25ebeb84b938bba8df7656b4357f2
2016-01-15 14:14:50 -06:00
Eric Erhardt 06df0683f8 Enable all passing tests that are marked with ActiveIssue for dotnet/corefx#846.
Commit migrated from https://github.com/dotnet/corefx/commit/1071000be4db6c545867f0a7fc41a0c4a7419dfe
2016-01-15 14:13:27 -06:00
Jeremy Kuhne 79731238b5 Merge pull request dotnet/corefx#5437 from JeremyKuhne/2632
Change ToString behavior to match .NET Desktop.

Commit migrated from https://github.com/dotnet/corefx/commit/c9ced7081c6a32f464aa41d588ec0025b399bd39
2016-01-14 17:21:07 -08:00
Jeremy Kuhne 11819d1d22 Change ToString behavior to match .NET Desktop.
.NET Desktop DirectoryInfo.ToString returns the original passed in
path as documented on MSDN. Change to match this behavior.


Commit migrated from https://github.com/dotnet/corefx/commit/1af6cc5e222aef65a83c35db34dadc83eb1f5fd5
2016-01-14 14:57:18 -08:00
Stephen Toub 4860319433 Merge pull request dotnet/corefx#5020 from mjrousos/UnixGetAttributesFix
Get Unix file stats with LStat (instead of Stat)

Commit migrated from https://github.com/dotnet/corefx/commit/984cb7dfccc5193402d118abe62b3cc26ac08a53
2016-01-14 17:48:17 -05:00
Mike Rousos 3d2b633341 Get Unix file stats with LStat (instead of Stat)
Stat was ignoring symbolic links (and getting stats for the target
instead) which caused checks for whether or not a path was a sym link
to fail on Unix.

Fixes dotnet/corefxdotnet/corefx#5015


Commit migrated from https://github.com/dotnet/corefx/commit/967cde5486cb290718b4b8f7779ccf832d5f4325
2016-01-14 12:06:45 -08:00
Ian Hays e3311742d9 Bump ExpectedPrerelease version to latest (rc2-23712)
Commit migrated from https://github.com/dotnet/corefx/commit/01c61f62988e8abf39aecc64b0a97ea4e384de3f
2016-01-14 10:36:27 -08: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
Eric St. John 181b320307 Don't pass FilterToOSGroup to non-builds files
FilterToOSGroup was flowing from .builds to csproj
which was causing unique global property sets for
the same csproj.  As a result the projects would
build multiple times and race when writing output.

[tfs-changeset: 1562265]


Commit migrated from https://github.com/dotnet/corefx/commit/a5d558bcf7713e56c237de704f3d70c4927d8f44
2016-01-07 13:52:41 -08:00