Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
Add forwards for RuntimeInformation and ValueTuple
Browse files Browse the repository at this point in the history
We will be providing RuntimeInformation and ValueTuple libraries
that support net461 so adding refs in that platform so that we
can get the forwards in the netstandard facade.
  • Loading branch information
weshaggard committed Apr 5, 2017
1 parent 87f2577 commit 0622870
Show file tree
Hide file tree
Showing 6 changed files with 336 additions and 31 deletions.
16 changes: 1 addition & 15 deletions netstandard/src/ApiCompatBaseline.net461.txt
Expand Up @@ -2,16 +2,6 @@ Compat issues with assembly netstandard:
MembersMustExist : Member 'System.AppContext.GetData(System.String)' does not exist in the implementation but it does exist in the contract.
MembersMustExist : Member 'System.AppContext.TargetFrameworkName.get()' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.StringNormalizationExtensions' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.TupleExtensions' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.ValueTuple' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.ValueTuple<T1>' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.ValueTuple<T1, T2>' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.ValueTuple<T1, T2, T3>' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.ValueTuple<T1, T2, T3, T4>' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.ValueTuple<T1, T2, T3, T4, T5>' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.ValueTuple<T1, T2, T3, T4, T5, T6>' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.ValueTuple<T1, T2, T3, T4, T5, T6, T7>' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Data.Common.DbColumn' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Data.Common.DbDataReaderExtensions' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Data.Common.IDbColumnSchemaGenerator' does not exist in the implementation but it does exist in the contract.
Expand Down Expand Up @@ -41,10 +31,6 @@ MembersMustExist : Member 'System.Net.Http.HttpClientHandler.SslProtocols.set(Sy
TypesMustExist : Type 'System.Net.Sockets.SocketReceiveFromResult' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Net.Sockets.SocketReceiveMessageFromResult' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Net.Sockets.SocketTaskExtensions' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Runtime.CompilerServices.TupleElementNamesAttribute' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Runtime.InteropServices.Architecture' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Runtime.InteropServices.OSPlatform' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Runtime.InteropServices.RuntimeInformation' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Runtime.Serialization.DataContractSerializerExtensions' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Runtime.Serialization.ISerializationSurrogateProvider' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Security.SecureStringMarshal' does not exist in the implementation but it does exist in the contract.
Expand All @@ -65,4 +51,4 @@ MembersMustExist : Member 'System.Text.RegularExpressions.Regex.Caps.set(System.
TypesMustExist : Type 'System.Threading.PreAllocatedOverlapped' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Threading.ThreadPoolBoundHandle' does not exist in the implementation but it does exist in the contract.
TypesMustExist : Type 'System.Xml.XPath.XDocumentExtensions' does not exist in the implementation but it does exist in the contract.
Total Issues: 66
Total Issues: 52
17 changes: 1 addition & 16 deletions netstandard/src/GenApi.exclude.net461.txt
Expand Up @@ -21,19 +21,4 @@ T:System.Security.Cryptography.IncrementalHash
T:System.Security.Cryptography.TripleDESCng
T:System.Threading.PreAllocatedOverlapped
T:System.Threading.ThreadPoolBoundHandle
T:System.Xml.XPath.XDocumentExtensions
T:System.Runtime.InteropServices.Architecture
T:System.Runtime.InteropServices.OSPlatform
T:System.Runtime.InteropServices.RuntimeInformation
T:System.TupleExtensions
T:System.ValueTuple
T:System.ValueTuple`1
T:System.ValueTuple`1
T:System.ValueTuple`2
T:System.ValueTuple`3
T:System.ValueTuple`4
T:System.ValueTuple`5
T:System.ValueTuple`6
T:System.ValueTuple`7
T:System.ValueTuple`8
T:System.Runtime.CompilerServices.TupleElementNamesAttribute
T:System.Xml.XPath.XDocumentExtensions
@@ -0,0 +1,36 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace System.Runtime.InteropServices
{
public enum Architecture
{
Arm = 2,
Arm64 = 3,
X64 = 1,
X86 = 0,
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct OSPlatform : System.IEquatable<System.Runtime.InteropServices.OSPlatform>
{
public static System.Runtime.InteropServices.OSPlatform Linux { get { throw null; } }
public static System.Runtime.InteropServices.OSPlatform OSX { get { throw null; } }
public static System.Runtime.InteropServices.OSPlatform Windows { get { throw null; } }
public static System.Runtime.InteropServices.OSPlatform Create(string osPlatform) { throw null; }
public override bool Equals(object obj) { throw null; }
public bool Equals(System.Runtime.InteropServices.OSPlatform other) { throw null; }
public override int GetHashCode() { throw null; }
public static bool operator ==(System.Runtime.InteropServices.OSPlatform left, System.Runtime.InteropServices.OSPlatform right) { throw null; }
public static bool operator !=(System.Runtime.InteropServices.OSPlatform left, System.Runtime.InteropServices.OSPlatform right) { throw null; }
public override string ToString() { throw null; }
}
public static partial class RuntimeInformation
{
public static string FrameworkDescription { get { throw null; } }
public static System.Runtime.InteropServices.Architecture OSArchitecture { get { throw null; } }
public static string OSDescription { get { throw null; } }
public static System.Runtime.InteropServices.Architecture ProcessArchitecture { get { throw null; } }
public static bool IsOSPlatform(System.Runtime.InteropServices.OSPlatform osPlatform) { throw null; }
}
}
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputType>Library</OutputType>
<!-- disable obsolete warnings/errors -->
<NoWarn>$(NoWarn);0618;0619;0809</NoWarn>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="mscorlib.csproj" />
<Compile Include="System.Runtime.InteropServices.RuntimeInformation.cs" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>

0 comments on commit 0622870

Please sign in to comment.