Commit Graph
1561 Commits
Author SHA1 Message Date
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
stephentoub 94a6b74a7e Remove stale TODO in SafeFileHandle test
Commit migrated from https://github.com/dotnet/corefx/commit/cabe44c6dd6ebc405c995e3a89a782e871aae7dd
2016-01-04 13:50:06 -05:00
Wes Haggard 8576f85443 Merge pull request dotnet/corefx#5125 from weshaggard/SupportAnyOS
Support for AnyOS

Commit migrated from https://github.com/dotnet/corefx/commit/86a062a0ca68a98cd58a2d52a66ff0df4898c98a
2016-01-03 18:14:17 -08: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
Wes Haggard ffe95ece1d Add support for building and filtering via OSGroup in .builds files
After this change if you build a .builds file it will all projects
defined in it. However if you specify OSGroup or FilterOSGroup as a property
it will only build the projects that are for that OSGroup or AnyOS.

Change the default OSGroup to AnyOS instead of Windows_NT.

By default if you build from the root it will only filter the projects to
just the OS that you are building on (including anything that is AnyOS).

If you want to build all projects for all OS's from the root pass
/p:BuildAllOSGroups=true property from the command line.

Includes an update to project-guidelines.md and windows-instructions.md docs
with information on the changes.

[MERGE with support commit]


Commit migrated from https://github.com/dotnet/corefx/commit/7146f1be15bbe9b82949cb71b3f1d3548a10fd5e
2016-01-02 23:49:17 -08:00
Stephen A. Imhoff f9d1c9f3e8 Remove extra references
Commit migrated from https://github.com/dotnet/corefx/commit/223542e494fb32feb8299acb565098322040409c
2016-01-03 16:24:35 +09:00
Eric St. John a18fc5f8ca Enable packaging task and targets from dotnet/buildtools in TFS
This change switches the TFS package buid to use the packaging
infrastructure from the buildtools package.  For any package
project that exists in corefx/wcf we will use that in place of the
closed source package.

As we move more package projects to the open they will
automatically be preferred over the closed source projects.

[tfs-changeset: 1559910]


Commit migrated from https://github.com/dotnet/corefx/commit/1b77984dd736f848e39808df7802aae77b02f975
2015-12-23 19:53:16 -08:00
Eric St. John a9eea4dc67 Restore NETCore50 build of FileSystem
Bring back build that was incorrectly removed with https://github.com/dotnet/corefx/commit/dotnet/corefx@58e2f6e862060039e1ebad727d75c87703fdb2f2


Commit migrated from https://github.com/dotnet/corefx/commit/79ee3e65de790e203892a9e08be7a563ec463dab
2015-12-22 11:47:41 -08:00
Pallavi Taneja 95a3b67166 Expose Assembly.GetEntryAssembly and TypeInfo.IsEquivalentTo()
Expose Assembly.GetEntryAssembly and TypeInfo.IsEquivalentTo() in System.Reflection.
Fixes issues dotnet/corefx#4146 , dotnet/corefx#2101


Commit migrated from https://github.com/dotnet/corefx/commit/e28fdbd9dd98810a81207c665fdc4e6b40b24e64
2015-12-21 14:56:26 -08:00
Pallavi Taneja 90c2d27bf1 Update Corefx Repo to depend on newer package versions
Disable failing tests with the tracking active issue


Commit migrated from https://github.com/dotnet/corefx/commit/98fdc29624cd791bba42ec1e0cd5c256f331adfe
2015-12-21 11:48:15 -08:00
Eric St. John abba3c0cfb Always build desktop facades for packaged libraries
The desktop facade must go in the reference package,
so we need to build it whenever we build OS-neutral
projects.


Commit migrated from https://github.com/dotnet/corefx/commit/ca3694d68fcb133cdcdf23284e3abe71966b754d
2015-12-18 06:07:48 -08:00
Nate Amundson b099dac2fc Merge pull request dotnet/corefx#4983 from naamunds/MakeTestsAsync
Make unit tests async to work with 1 thread

Commit migrated from https://github.com/dotnet/corefx/commit/00ffa34baed8c00bc33c67aef6fb68124fe463ee
2015-12-17 18:55:39 -06:00
Eric St. John 440c1d2195 Initial integration of packaging support
Adds packages for a few libraries and integrates
package build into the binary build process.


Commit migrated from https://github.com/dotnet/corefx/commit/fa811f379c45504a4b5fdae5b08a22a31202bea9
2015-12-15 16:51:34 -08:00