diff options
author | Jose Perez Rodriguez <joperezr@microsoft.com> | 2017-01-20 03:38:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-20 03:38:55 +0300 |
commit | 2847e0ec9f7c9ac42d44d2bc8c6fd39e504b7a9b (patch) | |
tree | 0aa0d6304cd9e0a7baabe07ac8c069973d5008c8 /src/System.Runtime.Extensions/ref | |
parent | 245d6cd52564a4d062dcd27f6d9e6326524945e2 (diff) |
Adding missing Configurations.props for refs and fixing the existing ones (#15291)
Adding missing Configurations.props for refs and fixing the existing ones
Diffstat (limited to 'src/System.Runtime.Extensions/ref')
4 files changed, 1 insertions, 20 deletions
diff --git a/src/System.Runtime.Extensions/ref/Configurations.props b/src/System.Runtime.Extensions/ref/Configurations.props index 8b803e0772..c701755863 100644 --- a/src/System.Runtime.Extensions/ref/Configurations.props +++ b/src/System.Runtime.Extensions/ref/Configurations.props @@ -3,7 +3,7 @@ <PropertyGroup> <BuildConfigurations> netcoreapp; - netstandard; + uap; </BuildConfigurations> </PropertyGroup> </Project>
\ No newline at end of file diff --git a/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.Manual.cs b/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.Manual.cs index 6b0f6910ad..d8585eba34 100644 --- a/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.Manual.cs +++ b/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.Manual.cs @@ -14,11 +14,9 @@ namespace System public const double PI = 3.14159265358979323846; public const double E = 2.7182818284590452354; } -#if netcoreapp11 public static partial class MathF { public const float PI = 3.14159265f; public const float E = 2.71828183f; } -#endif } diff --git a/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs b/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs index d5d8c1d14e..8ff414dcb6 100644 --- a/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs +++ b/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs @@ -137,13 +137,9 @@ namespace System public static byte[] GetBytes(uint value) { throw null; } [System.CLSCompliantAttribute(false)] public static byte[] GetBytes(ulong value) { throw null; } -#if netcoreapp11 public static float Int32BitsToSingle(int value) { throw null; } -#endif public static double Int64BitsToDouble(long value) { throw null; } -#if netcoreapp11 public static int SingleToInt32Bits(float value) { throw null; } -#endif public static bool ToBoolean(byte[] value, int startIndex) { throw null; } public static char ToChar(byte[] value, int startIndex) { throw null; } public static double ToDouble(byte[] value, int startIndex) { throw null; } @@ -735,7 +731,6 @@ namespace System public static long BigMul(int a, int b) { throw null; } public static decimal Ceiling(decimal d) { throw null; } public static double Ceiling(double a) { throw null; } -#if netcoreapp11 public static byte Clamp(byte value, byte min, byte max) { throw null; } public static decimal Clamp(decimal value, decimal min, decimal max) { throw null; } public static double Clamp(double value, double min, double max) { throw null; } @@ -751,7 +746,6 @@ namespace System public static uint Clamp(uint value, uint min, uint max) { throw null; } [System.CLSCompliantAttribute(false)] public static ulong Clamp(ulong value, ulong min, ulong max) { throw null; } -#endif public static double Cos(double d) { throw null; } public static double Cosh(double value) { throw null; } public static int DivRem(int a, int b, out int result) { throw null; } @@ -818,7 +812,6 @@ namespace System public static decimal Truncate(decimal d) { throw null; } public static double Truncate(double d) { throw null; } } -#if netcoreapp11 public static partial class MathF { public static float Abs(float x) { throw null; } @@ -850,7 +843,6 @@ namespace System public static float Tanh(float x) { throw null; } public static float Truncate(float x) { throw null; } } -#endif public sealed class OperatingSystem : System.ICloneable, System.Runtime.Serialization.ISerializable { private OperatingSystem() { } @@ -1185,9 +1177,7 @@ namespace System.IO public static string GetTempPath() { throw null; } public static bool HasExtension(string path) { throw null; } public static bool IsPathRooted(string path) { throw null; } -#if netcoreapp11 public static string GetRelativePath(string relativeTo, string path) { return default(string); } -#endif } public partial class BinaryReader : System.IDisposable @@ -1288,10 +1278,8 @@ namespace System.IO public override void Write(byte[] array, int offset, int count) { } public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } public override void WriteByte(byte value) { } -#if netcoreapp11 public Stream UnderlyingStream { get { return default(Stream); } } public int BufferSize { get { return 0; } } -#endif } public partial class EndOfStreamException : System.IO.IOException { @@ -1323,9 +1311,7 @@ namespace System.IO public override long Position { get { throw null; } set { } } public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback callback, object state) { throw null; } public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback callback, object state) { throw null; } -#if netcoreapp11 public override void CopyTo(System.IO.Stream destination, int bufferSize) { } -#endif public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } protected override void Dispose(bool disposing) { } public override int EndRead(System.IAsyncResult asyncResult) { throw null; } diff --git a/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.csproj b/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.csproj index 4eb594ad36..f0f05ddfc9 100644 --- a/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.csproj +++ b/src/System.Runtime.Extensions/ref/System.Runtime.Extensions.csproj @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <DefineConstants Condition="'$(TargetGroup)' == 'netcoreapp'">$(DefineConstants);netcoreapp11</DefineConstants> - </PropertyGroup> <ItemGroup> <Compile Include="System.Runtime.Extensions.cs" /> <Compile Include="System.Runtime.Extensions.Manual.cs" /> |