Commit Graph
506 Commits
Author SHA1 Message Date
Jeremy Kuhne e5f55716db Make tools packages.config host platform specific.
Commit migrated from https://github.com/dotnet/corefx/commit/13f9e121ad8e1c6a7d7cb0e4be4a9c5cdc814094
2015-05-20 14:09:51 -07:00
Matt Ellis 771502f50b Merge 'upstream/master' into from-tfs
Conflicts:
	dir.props
	src/.nuget/packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/eb58e5b84672c7a0b82ee6b241577134d36c1401
2015-05-15 15:26:03 -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
Alexander Köplinger b46f878f13 Remove outdated comment about packages.config from csproj's
Since the move to project.json we no longer use packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/1d489b12d2f6b7b7128888d525dc2e49fe2f1782
2015-05-15 20:10:42 +02: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
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 964b3dea7d Add PlatformID.AnyUnix
There are ~110 tests that have been disabled with an ActiveIssue for PlatformID.Linux | PlatformID.OSX.  To simplify this and to avoid lots of additional churn when additional Unix-based platforms are added, I've added PlatformID.AnyUnix = Linux | OSX, and replaced all usage of Linux | OSX with just AnyUnix.  When new platforms are added, we can simply add to the enum, expand the meaning of AnyUnix, and most tests meant to be disabled for Unix will automatically be disabled.


Commit migrated from https://github.com/dotnet/corefx/commit/c96932da11940e0bae05de8e364eac90a6e1786b
2015-04-29 07:22:40 -04:00
Stephen Toub 3ff8e28465 Update UnsupportedPlatforms in project files
Most test projects should now successfully run on both Linux and OSX.  Updated the csproj files to indicate the few places that's not the case.  Microsoft.Win32.Registry and System.ServiceProcess.ServiceController are both Windows-only, and System.IO.FileSystem.DriveInfo currently lacks an OSX-based implementation.


Commit migrated from https://github.com/dotnet/corefx/commit/d60a1a09a6588d38aa6e355517da51d6dfd544eb
2015-04-28 22:10:31 -04:00
Lakshmi Priya Sekar 27d80c8aa7 Merge branch 'updatecategories' of github.com:Priya91/corefx-1 into updatecategories
Conflicts:
	dir.props
	src/.nuget/packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/f8cb25b5861cdaca5ab75364b38523865ce47006
2015-04-22 19:26:24 -07:00
Lakshmi Priya Sekar aa951a667e Remove testcategories from csproj, in relation to the recent changes in buildtools.
Commit migrated from https://github.com/dotnet/corefx/commit/30b9b8d87605f17dbb94ccf7785da1fde8f11329
2015-04-21 16:36:05 -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 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
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
Krzysztof Wicher 99d888073c Disable failing tests
Commit migrated from https://github.com/dotnet/corefx/commit/656f31f866dbd830f4c099ac1a847c2bbca91091
2015-04-09 11:37:07 -07:00
Stephen Toub ad4f8abab4 Add DriveInfo tests for Unix
All of the existing DriveInfo tests were Windows-specific.  This commit annotates them as such, and adds some additional tests to cover the Unix implementation(s).


Commit migrated from https://github.com/dotnet/corefx/commit/6e7fbbedc90fb0466742cb00b566f338e514ab5e
2015-04-03 15:11:04 -04:00
Stephen Toub 687f1a0d5a Fix bugs in System.IO.FileSystem.DriveInfo on Linux
Working through the tests on Unix revealed some minor issues in the library, e.g. a missing parameter name in an exception, an exception not being thrown when it should.  This commit fixes those issues, and removes some unnecessary code.


Commit migrated from https://github.com/dotnet/corefx/commit/9376089a139de6afdbe8d7e69169cc9a488b2f8a
2015-04-03 15:10:04 -04:00
chcosta 7de8908cf6 Merge pull request dotnet/corefx#1200 from dotnet-bot/from-tfs
Merge changes from TFS

Commit migrated from https://github.com/dotnet/corefx/commit/b47471f7db895d9e1b48634187b7055696b6ddf2
2015-03-23 22:20:04 -07:00
Pallavi Taneja e0f7457250 Updating the DriveInfo csproj to compensate for the bad merge!
Commit migrated from https://github.com/dotnet/corefx/commit/f3dbbee161858df001a0ef60c33a06727e5c4bf7
2015-03-20 18:20:33 -07:00
Pallavi Taneja a23e007de5 Consolidate interop calls for the following assemblies.
1. System.IO.FileSystem
2. System.IO.FileSystem.DriveInfo
3. System.IO.MemoryMappedFiles
4. System.IO.Pipes

Cleanup of shared interop code
1. Remove security annotations
2. Change public to internal
3. Remove unwanted namespaces


Commit migrated from https://github.com/dotnet/corefx/commit/92ebda3212c05c1f8b972c84be5012d581938311
2015-03-20 18:04:55 -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
Stephen Toub 8e310277a1 Stub out OSX implementations of Process and DriveInfo
Stubs out OSX implementations of System.Diagnostics.Process.dll and  System.IO.FileSystem.DriveInfo.dll.


Commit migrated from https://github.com/dotnet/corefx/commit/78a2e6ca822471b8cb5dc3f13048abe245e3ebb9
2015-03-20 07:49:37 -04: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
Pallavi Taneja 6de41a0f16 Consolidate Interop calls for Microsoft.Win32.Primitives and System.Console
Commit migrated from https://github.com/dotnet/corefx/commit/4048ca85577f53539d6e4c511836f326643a0024
2015-03-13 10:18:59 -07:00
Lakshmi Priya Sekar b5a5b6a420 Add tests to verify disk space properties.
Commit migrated from https://github.com/dotnet/corefx/commit/e3eaa4d90483a3035a6bd6442d4332d5f3900eca
2015-03-10 14:47:23 -07:00
Lakshmi Priya Sekar 6aacde38c3 Rewrite DriveInfo tests. Respond to CR feedback.
Commit migrated from https://github.com/dotnet/corefx/commit/7ddc3df71fd7341f0e536c237bb2f7b5a77dda1e
2015-03-09 18:11:26 -07:00
Tarek Mahmoud Sayed d52779a137 Cleanup project files from empty items with resource comments
Commit migrated from https://github.com/dotnet/corefx/commit/47b1663630ab0a6089d1a95c8d9934af3c6bc92b
2015-03-04 11:34:17 -08:00
Tarek Mahmoud Sayed 12598db216 Cleanup resources across all projects
After this change we are going to have unified model for handling resources which is we always use resx files placed under Resources folder and the code will be automatically generated in SR.cs file.
We’ll access ant string resource using the SR class (e.g. SR.ArgumentException).


Commit migrated from https://github.com/dotnet/corefx/commit/db7180f04ef9789a7f199fcd9f8c527990e14673
2015-03-04 11:34:16 -08:00
Nick Guerrera f022d5bba7 Bump package versions to latest
Commit migrated from https://github.com/dotnet/corefx/commit/a4d211e9a250c5975022f32d3d7b036e2ba12488
2015-03-04 11:02:12 -08:00
Stephen Toub fa740f8c72 Separate gnu_get_libc_version into its own file
Commit migrated from https://github.com/dotnet/corefx/commit/3389cbaa146f525f0aa5517b7b4fceeece776bfa
2015-03-01 13:21:29 -05:00
Pallavi Taneja 7f18e72a0c Update resource generation for libraries.
[tfs-changeset: 1422400]


Commit migrated from https://github.com/dotnet/corefx/commit/3ad583086b7b5eebfaca535fea861b871776cc3d
2015-02-26 17:55:48 -08:00
Maxwe11 6a98eb9ef5 Move *.sln files to the appropriate projects folders
Commit migrated from https://github.com/dotnet/corefx/commit/fb8fb441b3e5414590b8d1af4ec5f52ca52c0dff
2015-02-20 19:52:00 +02:00
Maxwe11 24de629e0f Using shared FormatMessage interop
Commit migrated from https://github.com/dotnet/corefx/commit/ab7f5a2189f990d1ec4c36de5baf31133c86a6cf
2015-02-19 09:18:47 +02:00
Stephen Toub 0188aeb399 Merge pull request dotnet/corefx#818 from stephentoub/os_proj_config
Update solutions/projects with OS-specific configs

Commit migrated from https://github.com/dotnet/corefx/commit/7dc38bf6e203210f987d41a579de1f44c81550e1
2015-02-18 19:39:20 -05:00
Matt Johnson c7177a75a0 Fix typos in private method names
Commit migrated from https://github.com/dotnet/corefx/commit/8e83e1f365bb4ae3158e09f6d9a6e0cc53ef13e2
2015-02-18 14:37:57 -08:00
Matt Johnson 9111c18563 Fix typos in local variable names
Commit migrated from https://github.com/dotnet/corefx/commit/917f4d4516e6b99e54c70b1c90849f81c8bb70df
2015-02-18 14:37:50 -08:00
Matt Johnson 165ce6c460 Fix typos in strings
Commit migrated from https://github.com/dotnet/corefx/commit/f62b0d7280d87e1a139e931388a2ef9d510aaa2b
2015-02-18 14:37:42 -08:00
Matt Johnson ccd5e9e34a Fix typos in comments
Commit migrated from https://github.com/dotnet/corefx/commit/4a3d2d5b7b53a6d37fcc54553f5d0f62b2d6cff7
2015-02-18 14:37:35 -08:00
Stephen Toub 2c54a7ae72 Update solutions/projects with OS-specific configs
For projects that have OS-specific implementations, this change modifies
their solution and project files to create OS-specific configurations.
Rather than just having a Debug or Release option, in Visual Studio a
developer can now select OS_Debug or OS_Release, e.g. for a project that
has a Windows implementation and a Unix implementation, Windows_Debug,
Windows_Release, Unix_Debug, and Unix_Release will all be available
options.  Changing the configuration will update the properties used to
configure conditional includes, build outputs, etc.


Commit migrated from https://github.com/dotnet/corefx/commit/d3b259b89877e4a52d12c08e0f9031f37cb0905b
2015-02-18 13:01:48 -05:00
Stephen Toub 8cc26c6cc2 Scrubs [ComVisible] attribution from CoreFX library sources
Commit migrated from https://github.com/dotnet/corefx/commit/9189f0a7f60f217a8cfec2d4bdafaf7132d6d067
2015-02-16 13:20:46 -05:00
chcosta d1620100c8 Sync changes from TFS as of 2015/02/16 9:30:00 AM
[tfs-changeset: 1416076]


Commit migrated from https://github.com/dotnet/corefx/commit/67bd740c6c732e141835521ff34b2cc18591a9cc
2015-02-16 09:51:49 -08:00
Stephen Toub eaeb6391bb Merge pull request dotnet/corefx#654 from stephentoub/process_unix
Implement System.Diagnostics.Process on Linux

Commit migrated from https://github.com/dotnet/corefx/commit/88f0dac59872dcd2ee7f482c5ec6b245e80d5704
2015-02-13 15:21:26 -05:00
Maxwe11 2d635dae1c Replace relative path to common tests with a variable
Replace relative path "..\..\Common\tests" with $(CommonTestPath) variable.


Commit migrated from https://github.com/dotnet/corefx/commit/56dbc6abc6dcde5874c99c67f379d788c8dd4420
2015-02-08 15:05:37 +02:00
Stephen Toub 32e6ad6f48 Implement System.Diagnostics.Process on Linux
This is an initial implementation of the System.Diagnostics.Process
assembly for Linux.  There are some rough edges here: basic process
enumeration and inspection should work, as should waiting for processes
through various means (WaitForExit, Exited event, etc.), but other
functionality isn't ready for primetime yet, namely Start, which has been
roughly implemented but which hasn't been tested yet.

Some of the surface area doesn't have good equivalents on Linux.  Where I
thought it reasonable, in some cases I just left default values in place
or ignore things. In other cases, I throw PlatformNotSupportedException.
We can tweak this over time.

The implementation gets most of its data from the procfs file system.
Suppot for waiting is the most complicated area of the implementation, and
probably still has a few bugs to sort out.


Commit migrated from https://github.com/dotnet/corefx/commit/7a6874e2b84d62b3ece397ae692ee79e330afaa5
2015-02-05 18:47:19 -05:00
Nick Guerrera 682ff2db2c Merge branch 'v1.0' into merge-v1.0
Conflicts:
	README.md


Commit migrated from https://github.com/dotnet/corefx/commit/6ce823d55110965c9babab17c1125958107cffa6
2015-02-04 12:58:31 -08:00
Wes Haggard 8b20be1d87 Disable running DriveInfo tests until they are cleaned up.
Disable running tests for this project as many of them are failing randomly for
different reasons, including but not limited to requiring admin to set/reset drive
labels, doing exact total disk space comparisions while other disk IO on the system
may be changing it actively, and failing on subst drives, etc
There are various github issues covering some of these see:
https://github.com/dotnet/corefx/issues/514
https://github.com/dotnet/corefx/issues/528
https://github.com/dotnet/corefx/issues/549
https://github.com/dotnet/corefx/issues/564
https://github.com/dotnet/corefx/issues/592


Commit migrated from https://github.com/dotnet/corefx/commit/53d48016ec664c16a0ec00f4c91e47179e17bf3b
2015-02-04 00:13:04 -08:00
Nick Guerrera 2c69e7b094 Merge pull request dotnet/corefx#555 from dotnet/v1.0
Merge v1.0 to master

Commit migrated from https://github.com/dotnet/corefx/commit/1ea0f1ef443e3d5de322cadedc39825933c04571
2015-01-29 10:46:15 -08:00
Stephen Toub de2fbd0e9a Fix formatting PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/77d1ae4a41b05f560bb82162aae5a5b4ee770ca8
2015-01-29 12:34:47 -05:00
Nick Guerrera 1846be8d13 Bump package versions to 22512
Commit migrated from https://github.com/dotnet/corefx/commit/fa62bc6d0ab5e2b413c8930c708969029616a8e0
2015-01-28 17:46:49 -08:00
Stephen Toub 0550d7eecd Refactor Unix interop
As we've discussed offline, we want to change how we're structuring
our interop code, in particular to make it easier to share interop
definitions across assemblies.  This commit is an initial refactoring
of our existing Unix interop code to follow the new approach.


Commit migrated from https://github.com/dotnet/corefx/commit/000519fbfa654655410c5cf204d74006faa763fa
2015-01-27 11:34:58 -05:00