Commit Graph
394 Commits
Author SHA1 Message Date
stephentoub b540d002e5 Centralize case-sensitive PlatformID checks in FileSystem tests
Commit migrated from https://github.com/dotnet/corefx/commit/4f1d4382f5def0c000ff860f02dd02b1998e1017
2016-03-04 07:28:29 -05:00
Stephen Toub c787a1581d Merge pull request dotnet/corefx#6588 from stephentoub/update_netcore_extensions
Update xunit.netcore.extensions to 1.0.0-prerelease-00187

Commit migrated from https://github.com/dotnet/corefx/commit/eb1921000eb2eca2c54138370cabe05ba0b2c5b0
2016-03-04 07:14:15 -05:00
Stephen Toub 1228a52d41 Merge pull request dotnet/corefx#6591 from stephentoub/filesystem_symlinks
Fix System.IO.FileSystem handling of symlinks

Commit migrated from https://github.com/dotnet/corefx/commit/c6582a56e3b73072c749db76bd78d39fa183735b
2016-03-03 22:50:39 -05:00
stephentoub f3434408bc Update xunit.netcore.extensions to 00187
Commit migrated from https://github.com/dotnet/corefx/commit/3cfd81e7369628d052da6367b28c6f5b5839f55d
2016-03-03 22:06:40 -05:00
stephentoub 894258916d Fix Directory.Delete involving symlinks
- We need to use unlink rather than rmdir on symlinks
- Deleting a symlink should not recur into it


Commit migrated from https://github.com/dotnet/corefx/commit/6b8f03c1759e70d82a5e88dc78e68e08dabcfa1a
2016-03-03 20:17:57 -05:00
stephentoub 7c4a049b44 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/09efd6b341ba83e7b5edd54af6600432fa8604ba
2016-03-03 17:57:55 -05:00
Deepak Shankargouda 74a631b19c Updateing xunit.performance.* rev num
Commit migrated from https://github.com/dotnet/corefx/commit/7c983ea7555d72b5d18a329f55e48d751013e778
2016-03-03 10:17:25 -08:00
stephentoub 4f301f6e7c Fix System.IO.FileSystem handling of symlinks
We've visited this topic a few times... hopefully this is the last.  We previously misunderstood some of how Windows handles symlinks, leading us to make some invalid choices on Unix.  This addresses those issues.

For the most part with this commit, we now match Windows behavior on Unix wherever possible, while also trying to do something sensible on the Unix side.  The only notable difference now comes into play for broken symlinks, due to a fundamental difference between symlinks on Windows and Unix: on Windows, a symlink is created as either a file or directory symlink and thus .NET can tell which it is even if it's broken... on Unix, a symlink only stores a path to its target, so when it's broken, there's no information about whether it's intended to be a file or a directory.  As a result, we fall back to always treating it as a file.


Commit migrated from https://github.com/dotnet/corefx/commit/59da18fc926397f6674e1de86e296ca6e0dfe067
2016-03-02 13:40:27 -05:00
stephentoub 9b4473ede7 Upgrade package versions to rc3-23901
Commit migrated from https://github.com/dotnet/corefx/commit/55246a7fc60807d021fded5e333784956a662a51
2016-03-02 07:40:12 -05:00
Kamil Rytarowski 1431aaadd2 Support symlinking syntax on NetBSD in ReparsePointUtilities.cs
For now assume that all non-Windows paltforms support Unix syntax.


Commit migrated from https://github.com/dotnet/corefx/commit/348774f7395acdf8db042d5b209f76e0ce982630
2016-03-02 02:32:14 +01:00
Eric StJohn fe8ca20758 Merge pull request dotnet/corefx#6520 from ericstj/removeDNXCore
Remove DNXCore50 mentions from packages

Commit migrated from https://github.com/dotnet/corefx/commit/326e9d5701c885bf862e4d8b3c47638980d2cbf3
2016-02-29 15:45:18 -08:00
Stephen Toub 1f24f0fce2 Merge pull request dotnet/corefx#6521 from stephentoub/mkdir_perms
Fix Directory.CreateDirectory permissions mask on Unix

Commit migrated from https://github.com/dotnet/corefx/commit/5969310c9a17e23ae07f00db3f488ffa447ee2b6
2016-02-29 18:30:41 -05:00
Eric St. John 7c5ac76238 Add support for new Xamarin frameworks
The latest build tools contains framework lists for two new Xamarin fxs:
  Xamarin.TVOS
  Xamarin.WatchOS

This adds placeholders for those frameworks so that they can support
the packages with inbox facades.


Commit migrated from https://github.com/dotnet/corefx/commit/baf425fa935f4ecd32712448be627604067cf1d3
2016-02-29 14:43:27 -08:00
Eric St. John 19554adc35 Update buildtools and change validation framework
Update BuildTools to 1.0.25-prerelease-00180

Change validation framework moniker from dnxcore50 to
netstandardapp1.5.


Commit migrated from https://github.com/dotnet/corefx/commit/7c50768be0a2008480aa22ddb8038fdcb0e8039b
2016-02-29 14:43:26 -08:00
Pallavi Taneja 38e2f4de64 Update the packages
Commit migrated from https://github.com/dotnet/corefx/commit/be7151b45a54577c2e28c56977408d7d61ed0ea9
2016-02-29 13:09:16 -08:00
stephentoub 9c3c319937 Fix Directory.CreateDirectory permissions mask on Unix
The mkdir utility uses 777 & umask as the permissions for new directory.  Directory.CreateDirectory should do the same, but it's currently using 700.  This fixes it to match.


Commit migrated from https://github.com/dotnet/corefx/commit/f8adc194bee9d26417fb22223d9a1b5bed0032fc
2016-02-29 14:18:42 -05:00
stephentoub c2f4b4f6d3 Remove problematic ArrayPool usage
We decided in the design meeting today that we should only be using ArrayPool in corefx itself in places where we can guarantee the types/methods won't cause corruption, even if due to misuse. Some of the usage we've already put in place doesn't meet this bar and needs to be removed.   For example, we use ```ArrayPool<byte>.Shared``` in a special CopyToAsync implementation, but in doing so we hand a buffer from the pool out to the constiuent streams, and a poorly behaving stream could end up holding on to the buffer even after CopyToAsync has returned to the pool, such as if a Stream.WriteAsync implementation had a bug and completed the returned task before it was actually done with the buffer.

This commit removes all such usage (which we only very recently added).


Commit migrated from https://github.com/dotnet/corefx/commit/908c81d7a8c98f3f4dc1f6302ad7690a952c33c4
2016-02-26 15:36:52 -05:00
Stephen Toub 834f1fb44a Merge pull request dotnet/corefx#6389 from stephentoub/arg_names
Fix use of nameof with ArgumentException

Commit migrated from https://github.com/dotnet/corefx/commit/581d8ec923f57a33c43f3fbccdf47cd527010c47
2016-02-25 17:21:44 -05:00
Stephen A. Imhoff 811f903c18 Fix use of nameof with ArgumentException
Correct instances of new "ArgumentException(nameof(..." so names are in the correct parameter.  Where possible, I chose the resource string I felt best fit the situation.  Otherwise, I created a new entry (I'm assuming there's some extra work that needs to be done there, but don't know what it is offhand).


Commit migrated from https://github.com/dotnet/corefx/commit/368fdfd86ee3a3bf1bca2a6c339ee590f3d6505d
2016-02-25 10:35:40 -05:00
Eric Mellino 45736b2647 Fix compilation issues in various libraries when compiling without PCL reference assemblies
Commit migrated from https://github.com/dotnet/corefx/commit/e49f570bf97d0d81f3c461970155dc6cdd6aee8c
2016-02-24 18:29:17 -08:00
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