Commit Graph
1561 Commits
Author SHA1 Message Date
stephentoub b60997fa74 Update packages to rc3-23921
Commit migrated from https://github.com/dotnet/corefx/commit/3eb508d41d476e4ca0c74d106584c7a7f0d51a17
2016-03-21 12:10:10 -04:00
stephentoub 99b1f3c26f Make MoveFile on unix fall back to CopyFile in more cases
There are a variety of situations in which a link-and-delete could fail but a copy-and-delete could succeed.  This commit adds some more cases where we fall back.  It also improves the exception thrown in a few cases to include more details about the cause.


Commit migrated from https://github.com/dotnet/corefx/commit/0997a29941f2109002181d4d6c22434b2ee31d04
2016-03-21 08:53:06 -04:00
Jon Hanna c13188394b Fix multiple typos
Commit migrated from https://github.com/dotnet/corefx/commit/4bfc0ab963a7880c0d4b90b82317fe65d7842eba
2016-03-20 14:36:30 +00:00
Jon Hanna 13b30e5b37 Fix multiple typos
Commit migrated from https://github.com/dotnet/corefx/commit/efd5b13b90c59c0d75bec38a9ef938e529061b5c
2016-03-20 01:28:47 +00:00
Eric St. John 6aeccb0bae Fix tests to restore using the latest packages
We removed the lifting from the lineup so tests should reference the
latest packages in order to ensure an implementation is available.

The latest pacakges exclude implementation dependencies so I needed to
add these to projects that were depending on them coming in transitively.


Commit migrated from https://github.com/dotnet/corefx/commit/bef9061fd1238adf47b864d8924d121e4134465b
2016-03-19 08:01:11 -07:00
Eric St. John d28646e6b3 Fix restore errors in source projects
The latest drop of packages no longer includes lifting entries in the
lineup.  This causes errors when restoring for a concrete TFM and no
implementation assembly is in the packages.

I addressed this issue two ways:
1. In places where we were targeting a concrete TFM but packaging as
 NETStandard, just target NETStandard instead.
2. In places where we were targeting a concrete TFM but that packages
were missing the implementation on that TFM, update the reference to
newer package version where implementation is available.


Commit migrated from https://github.com/dotnet/corefx/commit/dfb30176c6056f5b3427515c4444a9dc31b9ba4f
2016-03-19 08:01:10 -07:00
Eric St. John ff75367f93 Update packages to rc3-23918
Commit migrated from https://github.com/dotnet/corefx/commit/d3d217b2ab336b862c27a3e605e32dc0c0a6d472
2016-03-19 08:01:09 -07:00
stephentoub bb47620662 Disable failing FileSystem tests
These tests are failing after recent changes to Path validation and are preventing upgrading to newer packages.  I'm disabling them until they can fixed correctly.


Commit migrated from https://github.com/dotnet/corefx/commit/ed8a15e6cbda9938104d47a02d84ff36fdd04887
2016-03-19 09:08:20 -04:00
stephentoub 757ca58bc1 Avoid faliing in UnixFileStream if flock isn't supported
flock on OSX can fail with ENOTSUP if "the referenced descriptor is not of the correct type", e.g. if it's a FIFO.  Since we don't want to entirely prevent usage of FileStream with such file types on OSX, and since locking is already advisory only, this change just ignores rather than throws when flock fails with ENOTSUP.


Commit migrated from https://github.com/dotnet/corefx/commit/38177bc1de3a73ef5e8b5f449478ea588406a4b4
2016-03-15 19:50:12 -04:00
Christopher Costa aab016344e Fat package conversions
Commit migrated from https://github.com/dotnet/corefx/commit/be08afd9701053f5f9369762db58b87c8ca9559f
2016-03-10 16:15:19 -08:00
stephentoub d5e591e45a Update packages to rc3-23910
Commit migrated from https://github.com/dotnet/corefx/commit/ab3948bfab039aac2afc1b521883425a171b982d
2016-03-10 09:37:40 -05:00
Stephen Toub 14815fd614 Fix typo in comment in UnixFileStream
Commit migrated from https://github.com/dotnet/corefx/commit/5a0a05364056bb77329bb7a166989b9455ae4b9c
2016-03-10 06:49:08 -05:00
Stephen Toub 74ad125e2b Merge pull request dotnet/corefx#6797 from stephentoub/fix_file_perms
Fix default permissions in UnixFileStream

Commit migrated from https://github.com/dotnet/corefx/commit/529bc344bb8afb210f438d1e2bdd556a6630e75c
2016-03-10 00:14:26 -05:00
stephentoub 8f4e76ac56 Fix default permissions in UnixFileStream
We currently have UnixFileStream create new files with the permissions 700.  This doesn't map to what's commonly expected on Unix, where most utilities default instead to 666.

This commit changes the default to be 766, which attempts to map to what's commonly expected on Unix, while also factoring in the default on Windows, where a new file can be executed by default.  All of these permissions are of course subject to the system's umask, such that the actual permissions applied will likely be less than what's specified.

The commit also fixes up some code in X509Certificates, which was coded to rely on the more limited permissions being applied.


Commit migrated from https://github.com/dotnet/corefx/commit/96db5d58baaaa5890bdacb3d767434d36a85fbc7
2016-03-09 21:47:18 -05:00
Eric St. John 938606505c Make windows-specific projects restore for windows
Many projects were using windows-specific packages.  These projects
need to restore for windows specifically to avoid compat errors during
restore.


Commit migrated from https://github.com/dotnet/corefx/commit/b117971dd2393aaa0ef465b881e35e785820bab6
2016-03-09 17:08:45 -08:00
Eric St. John 04a73fbed6 Update packages to rc3-23908
Commit migrated from https://github.com/dotnet/corefx/commit/86a230845c4f1840dcb9b52165c6976fad5b5868
2016-03-08 08:46:50 -08:00
stephentoub 38f7d19954 Update packages to rc3-23907
Commit migrated from https://github.com/dotnet/corefx/commit/baed539ebb753fefc91da9870ddeee72df0a6e14
2016-03-07 10:12:40 -05:00
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