This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add forwards for RuntimeInformation and ValueTuple
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
1 parent
87f2577
commit 0622870
Showing
6 changed files
with
336 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
platforms/net461/System.Runtime.InteropServices.RuntimeInformation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
platforms/net461/System.Runtime.InteropServices.RuntimeInformation.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
Oops, something went wrong.