Commit Graph
715 Commits
Author SHA1 Message Date
stephentoub bab02c72eb Ensure all Common includes use a <Link/>
Modifies various .csproj files to ensure that all Includes for files under Common use a <Link/> so that Visual Studio shows the files under a Common folder rather than flattened in the root.

Fixes dotnet/corefx#144


Commit migrated from https://github.com/dotnet/corefx/commit/264d92084d6c6366c3c23edaaab54a32f61d501b
2015-07-15 10:21:33 -04:00
Jonathan Miller 1f9230cbd4 Merge pull request dotnet/corefx#2140 from sokket/fsw
Fixing bugs in the OS X FileSystemWatcher so all tests pass

Commit migrated from https://github.com/dotnet/corefx/commit/67f73d03c8be9b36f924d510d495809440772bfb
2015-07-08 14:47:31 -07:00
Jonathan Miller 6f59447d62 Fixing bugs in OS X FileSystemWatcher to make all tests pass
Commit migrated from https://github.com/dotnet/corefx/commit/b4e803af9e5974f0ea1278bc34755fe02663dc97
2015-07-08 12:27:29 -07:00
stephentoub ea70db5dc5 Implement System.IO.Path on Unix
Previously, System.IO.Path was implemented in mscorlib (with calls into Win32 on Windows / the Win32 PAL layer in libcoreclr on Unix) and type-forwarded from System.Runtime.Extensions.  With dotnet/corefx#2234, we switched the Windows build to using System.IO.Path from System.Runtime.Extensions and Path.cs from corefx, but the Unix version was left still using the mscorlib implementation.  One of the reasons for switching to the Path.cs in corefx, however, was to better enable a bunch of fixes to the behavior of the Unix implementation.

This change implements Path.cs in corefx for Unix and switches the Unix builds (Linux, OS X, and FreeBSD) over to using the implementation in corefx rather than type-forwarding to mscorlib.

Primary changes:
- Defined MaxPath / MaxComponent length in the Unix build in terms of pathconf
- Implemented the Unix build's NormalizePath to properly handle normalizing unnecessary "/", ".", and ".."s in the path.
- Implemented the Unix build's GetTempPath in terms of the TMPDIR environment variable (same logic that's in the Win32 PAL layer's implementation).
- Implemented the Unix build's GetTempFileName in terms of mkstemps.
- Implemented the Unix build's GetRandomFileName in terms of OpenSSL's RAND_pseudo_bytes, same as is done in System.Security.Cryptography.RandomNumberGenerator (which we can't reference due to layering).
- Centralized the wrapping of getcwd, which is now used from both System.Runtime.Extensions and System.IO.FileSystem.  The previous usage of it always created a temporary array of size MaxPath, which can now be quite big, so the wrapper first tries to use stack space, and then graduates to retrying with larger and larger buffer sizes.
- Centralized the MaxPath and MaxName logic, which is now used by three libraries: System.Diagnostics.Process, System.IO.FileSystem, and now System.Runtime.Extensions.
- Centralized the throwing of PathTooLongException, as it now requires arguments for how long are the maximum path and component names.
- Cleaned up a few other minor things in the shared Path.cs (e.g. naming Boolean arguments) that were confusing me as I was working through the code.
- Added FreeBSD to the .sln and .csproj files, as otherwise the FreeBSD build for this library would be broken (previously it inherited the mscorlib implementation as did the other Unix OSes).
- Added a bunch of tests, some general across both Windows and Unix, but others specifically focused on Unix, which is more lenient than is Windows in the paths it allows.


Commit migrated from https://github.com/dotnet/corefx/commit/c4bc3bbfae8a9bf50defcfb8d6e13905f1209240
2015-07-06 20:53:17 -04:00
Eric St. John ef31e05251 Ensure reference versions are >= transitive dependency version
Nuget V3 has a graph walking optimization that chooses "nearest" reference.
The point of this is to avoid downloading the same package at multiple versions
and avoid rewalking graphs that will be superseded by a newer package.
As such it is a violation if a package references an older version of a package
than it pulls in transitively (a > b1 > c2, a > c1).
Nuget is in the process of adding warnings when this happens so we need to
clean up our dependencies to avoid those warnings out of the box.

[tfs-changeset: 1497671]


Commit migrated from https://github.com/dotnet/corefx/commit/ecb59b71b972c60ded7262791e3268a43bdcdf24
2015-07-06 09:40:30 -07:00
Nick Guerrera 5290bd052a Merge pull request dotnet/corefx#2156 from nguerrera/update-packages
Update packages to latest

Commit migrated from https://github.com/dotnet/corefx/commit/53b3e95a234ca4d87e42d32d6213b42e54160f4f
2015-06-24 17:49:50 -07:00
Nick Guerrera 4c28436d2e Update package dependency versions
Commit migrated from https://github.com/dotnet/corefx/commit/0c6b87e4e67e80b5d751bcd6883ca6e89fb68157
2015-06-24 14:04:15 -07:00
Eric St. John 124bc63247 Increase fudge factor in FileSystemWatcher_Error_File to force the error event to occur.
I tried to be clever in the calculation, but really we don't need to be very accurate so long as we can force the error.  This is still not fool-proof as it seems a stressed system may drop/coalesce some of these events (perhaps because they are touching the same file & time) but it is close enough.

[tfs-changeset: 1493258]


Commit migrated from https://github.com/dotnet/corefx/commit/0c99692763e17c63f941fe7f52776ad27ae73232
2015-06-24 10:21:27 -07:00
Maxwe11 d6e6056b19 Remove unnecessary IAsyncResult implementation
Remove IAsyncResult implementation from classes which used with new Overlapped API.
New API doesn't require implementation of IAsyncResult.


Commit migrated from https://github.com/dotnet/corefx/commit/e66911b80621bf2b53f7b33e170ad18b3741426c
2015-06-24 14:47:06 +03:00
Matt Mitchell 9d11745057 Update build tools. Contains changes to support FreeBSD in xunit.
Float package versions to get the latest version of the netcore extensions (has FreeBSD support)


Commit migrated from https://github.com/dotnet/corefx/commit/c760824a531ffc3981148a8ef9b97f56af9ff643
2015-06-23 16:06:50 -07:00
Eric StJohn 1a58e04134 Update corefx packages to version 23011
Commit migrated from https://github.com/dotnet/corefx/commit/3bb2f035a7c1f6168a6bd34fbf3851f7eedf76bf
2015-06-19 16:33:53 -07:00
stephentoub 8eeec0143e Remove <AllowUnsafeBlocks/> from various test projects
Most test projects don't need unsafe code, but many were forced to allow unsafe blocks due to Interop.PlatformDetection.cs using pointers, and others were allowing it for no apparent reason.  I've modified Interop.PlatformDetection.cs to not use unsafe code, and updated the relevant test projects accordingly. (Eventually we'll switch it over to using the new RuntimeInformation assembly, anyway.)


Commit migrated from https://github.com/dotnet/corefx/commit/3ae04f6ec948331c85c5f8441cd6d9eda868603f
2015-06-16 09:59:32 -04:00
Maxwe11 996f92df34 Eliminate closure allocation in FileSystemWatcher
Commit migrated from https://github.com/dotnet/corefx/commit/daba0cc8061fdf2f45aac8b0c9eef21250db5424
2015-06-14 09:32:55 +03:00
stephentoub cda26fb23a Disable more FileSystemWatcher tests on OSX
Turns out my previous run of the OSX tests wasn't actually running all tests, due to my having an outdated xunit.netcore.extensions.dll and xunit silently not running some tests as a result.

@sokket is investigating.  In the meantime, I'm disabling the rest of these on OSX.


Commit migrated from https://github.com/dotnet/corefx/commit/536cfc9118f029c3f91ab9739834b92b3728c8a6
2015-06-11 17:33:08 -04:00
stephentoub 199c8d0ff2 Disable several FileSystemWatcher tests failing on OSX
Commit migrated from https://github.com/dotnet/corefx/commit/9d230c0c78be9e2c39acc6377f2746aeb9c95ee1
2015-06-11 15:52:27 -04:00
stephentoub 68b0c18d2d Update all project.lock.json files
Used:
build.cmd /t:RestorePackage /p:LockDependencies=true


Commit migrated from https://github.com/dotnet/corefx/commit/76fcb7ab9444f68577ca0ec17055ca8c4e574b75
2015-06-10 10:19:11 -04:00
stephentoub 200cfdfdb7 Update project.jsons to use xunit.netcore.extensions "1.0.0-prerelease-*"
Some of the project.json files were referencing xunit.netcore.extensions with ""1.0.0-prerelease" rather than "1.0.0-prerelease-*".  As a result, I was unable to use more recent additions, like PlatformID.AnyUnix.  This change just updates them to use the -* versions, and changes the few remaining places that were using PlatformID.Linux | PlatformID.OSX to instead use PlatformID.AnyUnix.  The project.lock.json files were automatically updated by my building locally.


Commit migrated from https://github.com/dotnet/corefx/commit/f28722e261368de16adc2600fa1f1d3c0993ee8d
2015-06-03 12:31:17 -04:00
Eric StJohn e8454e28a5 Update projects to latest CoreFx packages
This is the result of build /t:RestorePackages /p:LockDependencies=true from the root.

This adds all missing project.lock.json files and updates existing ones to the latest package versions.


Commit migrated from https://github.com/dotnet/corefx/commit/38e0d2a0f8513afe6dc7d86a67e5776ab7b99df1
2015-05-27 12:18:06 -07:00
Eric St. John a8788d6383 Lock dependencies to ensure we build against a predictable package version
This change adds the lock files to repo to ensure we build against a stable set of dependencies.  To explicitly update dependencies use build.cmd /T:RestorePackages /P:LockDependencies=true and this will pick up the latest depenedencies.

Existing projects adding new dependencies will automatically update the lock file incrementally.

New projects should make sure to check their lock file in with locked set to true.

[tfs-changeset: 1474296]


Commit migrated from https://github.com/dotnet/corefx/commit/d2fbc005707933db1cebca035d6cd6073af6cae4
2015-05-21 15:23:27 -07:00
Eric Eilebrecht 56a50f9f1b Remove old Overlapped usage from Pipe, FileStream, and FileSystemWatcher
Switch usage to new ThreadPoolBoundHandle API.  This is relatively
straightforward, since this code didn't really do anything "tricky" like
re-use NativeOverlapped pointers.

Also, Enable overlapped operations in FileStream on N, now that they use
the supported API.

[tfs-changeset: 1474072]


Commit migrated from https://github.com/dotnet/corefx/commit/87270686b2e8d78953d1787422671faaf25eccb9
2015-05-21 15:17:24 -07:00
Eric St. John de6614c63a Update to latest CoreFx packages
Latest packages are now on dotnet-core myget feed.

This should address a many of the warnings in the build.  I will follow up with another change to address the rest.

This change brings in the latest build tools with updates to consume "latest" packages (* versions).

I've updated every project in the repo to use * versioning for dependencies.

The new packages can be used to resolve runtime assets as well (like clrcompression.dll) so I have removed the custom code in System.IO.Compression to copy this dll.  Instead the test project references the actual System.IO.Compression package and sets the correct runtime IDs to pull out the resources.  The System.IO.Compression.dll from the package is not used since the project reference takes precedence.

I had to workaround an issue in System.Xml.XmlSerializer with the current packages: System.Runtime.WindowsRuntime 4.0.0 has a depedendency on "windows" package which doesn't exist.  This was caused by our auto-generation task not filtering the winrt reference in the reference assembly's surface area.  I've fixed this in a separate change and we can remove the workaround once we have a new set of packages.  https://github.com/dotnet/corefx/issues/1761

I also had to add a dependency to System.Security.Cryptography.Hashing.Algorithms\tests due to an issue with DNX.  It's not honoring the dependency group with no targetFramework when another dependency group exists in the nuspec.  This is inconsistent with nuget v2 and should be fixed in DNX.  https://github.com/aspnet/dnx/issues/1881

[tfs-changeset: 1471885]


Commit migrated from https://github.com/dotnet/corefx/commit/08c0d8628ef621fbd44d7aaa85b3239616a6b108
2015-05-15 12:40:33 -07:00
Stephen Toub c3035888b4 Merge pull request dotnet/corefx#1668 from Priya91/removexunittraits
Remove XunitTraitDiscoverers project from corefx.

Commit migrated from https://github.com/dotnet/corefx/commit/e2b74c91791a772c27eb450bb49cdc221e3a5f4e
2015-05-08 06:52:21 -04:00
Stephen Toub 3093282214 Disable (the other) FileSystemWatcher IncludeSubDirectories events test
Turns out both FileSystemWatcher_4000_Tests.FileSystemWatcher_IncludeSubDirectories* tests are failing with some frequency.  I disabled one of them earlier today; this disables the other.


Commit migrated from https://github.com/dotnet/corefx/commit/7e40d5ff6ff2cc6d3b4b5858b543222d26c5fb04
2015-05-07 22:16:54 -04:00
Lakshmi Priya Sekar 2a499c5cbf Remove XunitTraitDiscoverers from corefx and reference the nuget package xunit.netcore.extensions.
Commit migrated from https://github.com/dotnet/corefx/commit/03e32211d668ee215f32c599849987cb7d9d4e2a
2015-05-07 16:15:32 -07:00
Stephen Toub 03e25b2599 Disable a failing FileSystemWatcher events test
It's been taking out a bunch of PRs and main builds over the last day or two.


Commit migrated from https://github.com/dotnet/corefx/commit/66c3c43dfff69acf884f10d9b220b0eaf80dd78a
2015-05-07 11:36:11 -04:00
Christopher Costa 66f7aa04d7 Fix NullReferenceException in FileSystemWatcher.
Commit migrated from https://github.com/dotnet/corefx/commit/f2720abb758b50a9debb5ec146939ef6f5cef82d
2015-05-06 14:04:05 -07:00
Eric StJohn 5db3ae33bf Convert all remaining package dependencies to project.json
DNX and BuildTools now support all of the nuget v2 conventions that we depend on so we can
move all remaining nuget v2 packages to the project.json file and eliminate packages.config.

This change also adds "frameworks" to the project.json so that dnu restore can calculate
applicable assets.  I am not yet using "runtimes" in the project.json since we are still resolving
our runtime assets manually (eg: build tools copies known files from packages).  A future
change will move us to using our runtime packages and add runtimes sections to projects
as appropriate.


Commit migrated from https://github.com/dotnet/corefx/commit/eb35a304c7e89e8b4335ed13c5d23706360d49a4
2015-05-05 12:36:57 -07:00
Stephen Toub 6e8d413a8e Simplify Interop.PlatformDetection comparisons
When I first added Interop.PlatformDetection while cleaning up tests for Linux, I'd added an OperatingSystem property, and the typical pattern was to compare against an enum, e.g.
```
if (Interop.PlatformDetection.OperatingSystem == Interop.OperatingSystem.Windows)
{
...
}
```
We subsequently added helper Is* properties, e.g. IsWindows, but never went back and substituted into the previous uses.  This cleans that up, such that usage like the above instead becomes:
```
if (Interop.IsWindows)
{
    ...
}
```


Commit migrated from https://github.com/dotnet/corefx/commit/be8e3c9c34fe604e8182fed16ca9026447c6d38d
2015-04-29 07:32:40 -04:00
Jonathan Miller d37cce3885 Fixing SafeHandles to have a parameterless ctor so the CLR can
correctly wrap the IntPtr to a SafeHandle. Also adding a fix to
the FSW to expand relative paths to absolute paths


Commit migrated from https://github.com/dotnet/corefx/commit/cdbb46c52ecf06d87059e5672eb6e5dc0dde8d7f
2015-04-23 11:51:04 -07:00
Stephen Toub d45ff6b386 Fix FileSystem, Pipes, and MemoryMappedFiles bugs on OSX
Most of our testing until now has been on Linux.  This PR represents a pass through the tests on OSX and provides fixes to get the System.IO.FileSystem, System.IO.Pipes, and System.IO.MemoryMappedFiles tests passing at 100%.  Most of these fixes are product fixes, with just a few test fixes.

Primary src fixes:
- Lots of named values (errors, open flags, sysconf names, etc.) have different values across Linux and OSX: I've fixed those to be specific to the platform being compiled for. (In the future, we should consider introducing a native shim layer through which we make _all_ calls to Unix and have it surface a consistent view, so that we don't have to worry about this kind of issue.)
- Some functions or options to functions being used on Linux don't exist on OSX, e.g. madvise's DONTFORK, posix_fadvise, etc.; these have either been removed if not truly needed or moved behind the PAL layer to only be used on Linux.
- Some functions (e.g.  shm_open) have different behavior from Linux.  For example, shm_open doesn't appear to work well with shared memory objects, such as not allowing MAP_PRIVATE and not supporting PROT_EXEC (though the OSX man pages don't mention this).  In such cases, I've implemented a fallback, e.g. on OSX we use a temporary file rather than a shared memory object.
- Some functions have subtle differences around edge cases, e.g. mmap on Linux appears to allow the creation of a map with length that goes beyond that of the underlying medium, but then fails when trying to use it, whereas OSX moves the failure to the mmap call itself.  I've implemented workarounds to smooth over these differences.
- Various error conditions were resulting in the wrong exception type based on different exception codes being returned on OSX than on Linux, e.g. additional error codes needed to be mapped to IOException when rmdir fails.
- Replaced direct usage of getenv through P/Invoke with calls to Environment.GetEnvironmentVariable. (These are a holdover from when we didn't yet have GetEnvironmentVariable available.)
- Fixed up a few places we could be using CheckIo but instead had effectively written out its implementation manually.

Primary test fixes:
- Some of the file system tests are just plain buggy, regardless of platform, with timing issues that are more likely to show up on a debug runtime.  I've fixed the ones that manifested while I was doing this testing, but the file system tests really deserved to be overhauled in general.
- Windows' implementation of File/DirectoryInfo returns default values for CreationTime when created for a file that doesn't exist; this appears to be purely for back compat with previously buggy behavior, so I changed the test to only verify this on Windows, rather than implement similar buggy behavior on Linux/OSX.
- A few test cases that were previously exempted for Linux also needed to be exempted for OSX.
- Re-enabled the System.Dynamic.Runtime.Tests now that the associated runtime error that was causing them to fail has been fixed.


Commit migrated from https://github.com/dotnet/corefx/commit/5a912670b442f7f7984b6d7f0be190213f726fd4
2015-04-21 12:02:02 -04:00
Eric StJohn 61af4342a7 Ensure that tests reference package version that contains implementation
We now publish downlevel packages that do not contain implementations for coreclr.  The expectation is that head projects will bring in a meta package that lifts the versions to the appropriate one for the head.  We don't currently use a metapackage for our test projects, logically this should be a replacement for the packages.config/project.json that our test targets inject.


Commit migrated from https://github.com/dotnet/corefx/commit/6c79e0b5422a1af31966df003a422a4fce6ef97b
2015-04-15 12:47:48 -07:00
Eric StJohn c0e430ddf5 Update to latest CoreFx packages, convert to project.json
This change updates all projects to the latest CoreFx packages which make use of nuget v3 features and thus require project.json.  Packages.config remains for the packages which are not yet compatible with the new build task (mainly because we need to resolve to PCL folders).
The entire change was done by a tool in order to not miss any dependencies, and ensure we have project items for the packages.config/project.json.  One side effect of using the tool is some reformatting of whitespace in the projects.


Commit migrated from https://github.com/dotnet/corefx/commit/e729c5353070b71aedff8f1300ae838573813faf
2015-04-15 12:47:43 -07:00
Jonathan Miller 85876e8211 Merge pull request dotnet/corefx#1397 from sokket/watcher
Fixing issue dotnet/corefx#1196 to implement a SafeHandle for OS X's Create Pattern

Commit migrated from https://github.com/dotnet/corefx/commit/5c924f670064b1cefeea59c6517e0112915f0ed7
2015-04-13 16:45:03 -07:00
Jonathan Miller 401f6d2742 Addressing PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/f911edd88eed80b2819763b5073e59aeb2b4f030
2015-04-13 13:49:29 -07:00
Jonathan Miller 6101aac8ca Fixing issue dotnet/corefx#1196 to implement a SafeHandle for OS X's Create Pattern
Commit migrated from https://github.com/dotnet/corefx/commit/bb8b1292791116f7bc8eef012e4411720a687539
2015-04-09 20:41:25 -07:00
Matt Cohn d0bb690ea6 Update xunit dependency to xunit.core.netcore.1.0.1-prerelease
Update xunit dependency.  New package corrects its dependency on
xunit.abstractions to version 2.0.0-beta5-build2785.


Commit migrated from https://github.com/dotnet/corefx/commit/a50ce00294851a60b177f14785f1af9f50f5e344
2015-04-09 16:24:18 -07:00
Stephen Toub 19bae264c5 Annotate and fix platform-specific tests in System.IO.FileSystem.Watcher
A few tests for FileSystemWatcher are platform-specific, e.g. differences in event coalescing behavior causing a the event buffer to fill on Windows but not on Linux.  This commit annotates such tests as Windows-specific.  It also fixes up a few other tests that were mostly platform-independent but had a few pieces that were platform-dependent; the platform-dependent pieces are now conditionally invoked.


Commit migrated from https://github.com/dotnet/corefx/commit/2b25b8db0a8e4599a619389cf946f4859090464d
2015-04-03 15:20:56 -04:00
Christopher Costa 6c499dee70 Disable flakey FileSystemWatcher test for internalbuffer size.
Commit migrated from https://github.com/dotnet/corefx/commit/ccc6e03c3fb7cae3a450be06045c55385c54e9a4
2015-03-25 15:04:43 -07:00
Stephen Toub 45cc9c2b45 Merge pull request dotnet/corefx#1228 from stephentoub/fix_fsw_tests
Fix FileSystemWatcher src/tests on Linux

Commit migrated from https://github.com/dotnet/corefx/commit/e356e98d1ad32113bc47506baf5a1e19ea942363
2015-03-24 22:50:33 -07:00
Stephen Toub 687d8f5c53 Use DirectorySeparatorChar in a FileSystemWatcher test
Commit migrated from https://github.com/dotnet/corefx/commit/3e41e9b55cd8aaba307f4ea5b419f954d3db58f2
2015-03-24 22:32:52 -07:00
Jonathan Miller 8d616d25bd Merge pull request dotnet/corefx#1193 from sokket/filesystemwatcher
Adding initial implementation of the FileSystemWatcher on OS X

Commit migrated from https://github.com/dotnet/corefx/commit/3121b027f52dd14bf41fe62fbc44db83f3a216fa
2015-03-24 17:09:39 -07:00
Jonathan Miller b183d088c0 Addressing PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/6608a22b9686c1f4ebbfa665d610eb85d82273d3
2015-03-24 15:52:28 -07:00
chcosta af3cb7056d Merge pull request dotnet/corefx#1197 from chcosta/FSW_InternalBufferSize
Enable FileSystemWatcher test to actually validate internal buffer size ...

Commit migrated from https://github.com/dotnet/corefx/commit/f42f83e52db623e2173de600814a9300c5f46a6f
2015-03-24 09:09:37 -07:00
Stephen Toub 6b9fef7a91 Fix FileSystemWatcher src/tests on Linux
This commit fixes issues highlighted when running the System.IO.FileSystem.Watcher tests on Linux.  There are 49 tests that pass on Windows; after these product and test fixes, only 7 of those fail on Linux, all due to Windows-specific tests that will need to be tweaked based on target system or disabled entirely on Linux:
- 2 are P/Invoking to Win32 functions related to security
- 3 are trying to overflow the event buffer but not doing so on Linux
- 2 are expecting case-insensitive file paths


Commit migrated from https://github.com/dotnet/corefx/commit/7176a0dc531a1a9c9032c36330bbf92e7ca57f65
2015-03-23 17:54:49 -07:00
Jonathan Miller deec93fb6f Responding to PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/9b129eccfc6f8bcb423b2658954975c15164d03b
2015-03-23 14:38:51 -07:00
Jonathan Miller 9ffae2c2aa Adding initial implementation of the FileSystemWatcher on OS X
Commit migrated from https://github.com/dotnet/corefx/commit/994f2dbfa3ada7f2eac244ea60a92b6349f43752
2015-03-23 14:21:01 -07:00
Christopher Costa 7e2dd3ad7b Delete closed libraries sources and reference open sources.
This change removes the closed libraries sources for libraries which we are now building in the open.  Stub project files are left in the closed libraries which improt sources from the open for various build configurations.

Also includes these two changes which were not yet ported to open:
- [Serialization]: DCS/DCJS fails to serialize/deserialize XElement type - regression
- Change namespace of System.Xml.XPath.XmlDocument extensions

Validated by pre-checkin gauntlet build dotnet/corefx#150320.14337

[tfs-changeset: 1437136]


Commit migrated from https://github.com/dotnet/corefx/commit/89881048ba6bb6adca5253024ea59e8aa8790a6a
2015-03-20 17:07:34 -07:00
Christopher Costa c4bf8b5a5d Enable FileSystemWatcher test to actually validate internal buffer size changes
Commit migrated from https://github.com/dotnet/corefx/commit/5ef10adb860f63673feaf138b0f2dd283fa39133
2015-03-20 16:27:45 -07:00
Matt Ellis 53a9f1fe9a Refactor build properties for Linux and OSX builds
Previously, we used the catch all OS=Unix property in MSBuild to
determine if we were building for Windows vs Unix, and we shared the
same MSIL between Linux and OSX.  However, we have already started to
take dependencies on Linux specific APIs and we plan on using OSX
specific APIs very soon.

We don't want to try to ship MSIL that contains both Linux and OSX
specific implementations of a feature, so the build system needs to
change a little.

We'll continue to use the OS property as the entry point for the build
to specificy what platform you want to build for.  However, we now have
three platforms:

1. Windows_NT
2. Linux
3. OSX

However, the value of the OS property should not be tested directly,
instead we introduce properties about the target platform itself:

1. TargetsWindows
2. TargetsUnix
3. TargetsLinux
4. TargetsOSX

Code which works the same across Linux and OSX should be guarded by
TargetsUnix (which is true when OS is either 'Linux' or 'OSX').  Code
specific to one OS can be guarded with either TargetsLinux or
TargetsUnix.

In this change, I have simply rewritten all the '$(OS)' == 'Unix'
conditions to '$(TargetsUnix)' == 'true'.  A few libraries may do Linux
specific stuff, but we will clean up that debt when we go to flesh out
the OSX implementations.


Commit migrated from https://github.com/dotnet/corefx/commit/4d07173fbf86631d49ed56623581eff9cb7d3f87
2015-03-19 14:07:07 -07:00
Tarek Mahmoud Sayed b3120f73dd Remove checked in resources generated code file (SR.cs)
After this change it is no longer required to include the resources
generated code file SR.cs inside the project tree as such files
will get automatically generated in the intermediate folder


Commit migrated from https://github.com/dotnet/corefx/commit/e7513c213c16f5ca4bd35c6c4eace534b4d94ed5
2015-03-17 16:24:08 -07:00