Commit Graph
19 Commits
Author SHA1 Message Date
Wes Haggard e98ec88b74 Merge pull request dotnet/corefx#12311 from hughbe/expose-math-clamp
Expose new Math.Clamp APIs in System.Runtime.Extensions

Commit migrated from https://github.com/dotnet/corefx/commit/8833178d5fbc31acbc653fdaf01816aa75edd786
2016-10-06 14:18:45 -07:00
AlexGhiondea 43baa15172 Add the types to the System.Runtime.Versioning namespace. (dotnet/corefx#12361)
* Add the types to the System.Runtime.Versioning namespace.

The following types have been added:

 - ComponentGuaranteesAttribute
 - ComponentGuaranteesOptions
 - ResourceConsumptionAttribute
 - ResourceExposureAttribute
 - ResourceScope
 - VersioningHelper

Commit migrated from https://github.com/dotnet/corefx/commit/38ed769c3136a00c3404da8dd5e75372de270508
2016-10-06 11:55:09 -07:00
Hugh Bellamy 6a4673ea92 Expose new Math.Clamp APIs in System.Runtime.Extensions
Commit migrated from https://github.com/dotnet/corefx/commit/5d2cb3e4d296fcd5abe82e0be45683cdc3855e39
2016-10-03 18:38:56 +01:00
Jose Perez Rodriguez 338956b6f3 Merge branch upstream/master
Commit migrated from https://github.com/dotnet/corefx/commit/855ca3172712656f6cb3984e14c6ec88ec27fd6d
2016-09-20 10:32:49 -07:00
Jose Perez Rodriguez fe65028e81 Merge branch dev/api
Commit migrated from https://github.com/dotnet/corefx/commit/76676dc565873fdd46d545fadfbbdfe8fd9d464e
2016-09-20 10:27:33 -07:00
Jeremy Kuhne 1c0140790b Add Path.GetRelativePath
This change adds Path.GetRelativePath, which will calculate the relative
path from one directory to another file/directory.

This change also adds support for targetting netcoreapp


Commit migrated from https://github.com/dotnet/corefx/commit/387cf98c410bdca8fd195b28cbe53af578698f94
2016-09-19 11:16:22 -07:00
Tarek Mahmoud Sayed 04b0bac3c3 Expose remaining APIs in String and StringComparer
This change should be exposing the remaining APIs in String and StringComparer classes for net standard 2.0 and adding the tests too.


Commit migrated from https://github.com/dotnet/corefx/commit/3cd6bb48033049646282c394cc75c2124457e27b
2016-09-17 20:53:58 -07:00
Rahul Kumar e0aa1e5b01 Add System.AppDomain apis
Commit migrated from https://github.com/dotnet/corefx/commit/e1311a29eb106e59ffbf41e792b5bda18484d4f1
2016-09-13 14:19:52 -07:00
Stephen Toub d80bb177df Add missing members to Path
Path is missing the Combine(string, string, string, string) overload and the obsolete InvalidPathChars field.


Commit migrated from https://github.com/dotnet/corefx/commit/435c4a9def431e5ed833ba8b048ce9177e7b9ef3
2016-09-12 11:47:25 -04:00
Amy Qiu d2cd8a906a Merge pull request dotnet/corefx#11007 from Lixire/fill-convert
Fill Out Convert and Add Tests

Commit migrated from https://github.com/dotnet/corefx/commit/fc491bc2b672125b7e0d5074139faa90ba2149de
2016-08-24 13:25:01 -07:00
Amy Qiu b8c2ff2c67 Expose members and add tests
Commit migrated from https://github.com/dotnet/corefx/commit/7098ab74b0fa5cf75b3fa454df9aa27553b26a74
2016-08-19 10:06:55 -07:00
Ioana Crant 8a5aadfd9a port math and decimal members with tests
Commit migrated from https://github.com/dotnet/corefx/commit/007fd6a3cee4b7839275b3d1cc2914c3e7a8f8f2
2016-08-17 10:57:25 -07:00
Stephen Toub 7b5e7af912 Move Environment and friends to corefx
Currently System.Runtime.Extensions type forwards to the Environment in the runtime, which means we need to implement functionality in both coreclr and corert.  It's also missing functionality, which means to add that functionality back we'd need to do so in both runtimes, and we'd miss out on sharing code with elsewhere in corefx.

This commit:
1) Adds Environment, EnvironmentVariableTarget, OperatingSystem, and PlatformID to corefx so that System.Runtime.Extensions contains the type rather than forwarding to it.
2) Adds implementations of all of the missing members: CommandLine, CurrentDirectory, ExitCode, Is64BitProcess, Is64BitOperatingSystem, OSVersion, SystemPageSize, UserInteractive, UserName, UserDomainName, Version, WorkingSet, GetLogicalDrives, GetFolderPath, and the overloads of Get/SetEnvironmentVariable(s) that take an EnvironmentVariableTarget.
3) Adds the additional members to the contract.
4) Adds some basic tests to ensure basic functionality works.

Work that still needs to be done after this:
1) Add an EnvironmentAugments type to System.Private.Corelib in both corefx and corert, use that to replace the reflection-based hack in this commit, then remove the current Environment from Corelib's model.xml so that the rewriter will make it internal.  As part of this, we need to determine how to handle "IsAppXmodel/DesignMode" from corefx, whether we need two different builds for Win32/WinRT, etc.
2) Fix Get/SetEnvironmentVariable(s) to not ignore the EnvironmentVariableTarget.  This should be doable once (1) is done.
3) Add more support to the Unix implementation of GetFolderPath for more special folders
4) Add a GetTickCount method to the System.Native native lib, ala the implementation in libcoreclr; the current implementation is functional but slower than it could be.
5) Implement more Windows functionality if/when missing functions become available: SHGetFolderPath and GetVersionExW.
6) Use GetLogicalProcessInformationEx in ProcessorCount (or delegate to the implementation in coreclr).
I will open issues for each of these prior to merging this commit.


Commit migrated from https://github.com/dotnet/corefx/commit/fe5f4fbebc9e85c8e512a273567719dca15ac764
2016-07-05 14:09:16 -04: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
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 328a09c653 Add Environment.MachineName to .NET Core.
Commit migrated from https://github.com/dotnet/corefx/commit/3d92738669b44bd8be981c3fc700efbbc0cd4f1c
2016-01-24 17:19:38 -08:00
Pallavi Taneja 8ee2d1e233 Expose Environment.GetCommandLineArgs
Commit migrated from https://github.com/dotnet/corefx/commit/4752cbb364767e8dc3a5cb299207393a8ddb704a
2015-11-10 13:42:45 -08:00
Pallavi Taneja b23b63920b Expose Enviornment.Exit
Commit migrated from https://github.com/dotnet/corefx/commit/40b46199dafa957a95323e415a62a4469f82c7a4
2015-10-30 14:08:39 -07:00
Eric St. John 77309d4821 Update the version of all assemblies
This change updates the assembly versions of all of the corefx assemblies
as needed after we shipped stable versions.  Assemblies with API differences
get a minor version bump.  Assemblies with only bugfixes get a build version
bump.

In order to facilitate this I had to update the reference assemblies, so I took
the opportunity to port them all to the open.

[tfs-changeset: 1514419]


Commit migrated from https://github.com/dotnet/corefx/commit/40723b795917f2e98b64d45c17effb2546dd0cae
2015-08-13 17:07:57 -07:00