diff --git a/src/libraries/Common/src/System/SR.CoreRT.cs b/src/libraries/Common/src/System/SR.CoreRT.cs new file mode 100644 index 0000000000000..2dca79d488fe6 --- /dev/null +++ b/src/libraries/Common/src/System/SR.CoreRT.cs @@ -0,0 +1,55 @@ +// 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. + +using System.Runtime.CompilerServices; + +namespace System +{ + // This is a placeholder for resources access implementation for corert. + // At some point we’ll have the real implementation which expect to be shared between + // System.IO, System.Runtime.Extensions and System.Resources.ResourceManager. + + internal static partial class SR + { + [MethodImpl(MethodImplOptions.NoInlining)] + internal static string GetResourceString(string resourceKey) + { + return resourceKey; + } + + internal static string GetResourceString(string resourceKey, string defaultString) + { + return defaultString != null ? defaultString : resourceKey; + } + + internal static string Format(string resourceFormat, params object[] args) + { + if (args != null) + { + return string.Format(resourceFormat, args); + } + + return resourceFormat; + } + + + [MethodImpl(MethodImplOptions.NoInlining)] + internal static string Format(string resourceFormat, object p1) + { + return string.Format(resourceFormat, p1); + } + + [MethodImpl(MethodImplOptions.NoInlining)] + internal static string Format(string resourceFormat, object p1, object p2) + { + return string.Format(resourceFormat, p1, p2); + } + + [MethodImpl(MethodImplOptions.NoInlining)] + internal static string Format(string resourceFormat, object p1, object p2, object p3) + { + return string.Format(resourceFormat, p1, p2, p3); + } + } +} diff --git a/src/libraries/System.IO/pkg/aot/System.IO.pkgproj b/src/libraries/System.IO/pkg/aot/System.IO.pkgproj index 79e4b41d6a0ae..84c2c22ee8346 100644 --- a/src/libraries/System.IO/pkg/aot/System.IO.pkgproj +++ b/src/libraries/System.IO/pkg/aot/System.IO.pkgproj @@ -11,6 +11,9 @@ netcore50aot + + netstandard13aot + diff --git a/src/libraries/System.IO/src/System.IO.builds b/src/libraries/System.IO/src/System.IO.builds index c178f8c494932..ea278ea17ed3e 100644 --- a/src/libraries/System.IO/src/System.IO.builds +++ b/src/libraries/System.IO/src/System.IO.builds @@ -9,6 +9,9 @@ netcore50aot + + netstandard13aot + diff --git a/src/libraries/System.IO/src/System.IO.csproj b/src/libraries/System.IO/src/System.IO.csproj index ba96991575748..4b32ada8e1ae0 100644 --- a/src/libraries/System.IO/src/System.IO.csproj +++ b/src/libraries/System.IO/src/System.IO.csproj @@ -16,12 +16,14 @@ + + None - + true true true @@ -41,7 +43,7 @@ - + @@ -61,9 +63,12 @@ Common\System\IO\StringBuilderCache.cs - + Common\System\SR.Core.cs + + Common\System\SR.CoreRT.cs + @@ -79,6 +84,11 @@ + + + + + diff --git a/src/libraries/System.IO/src/project.json b/src/libraries/System.IO/src/project.json index c7007f0f817a3..697611784fa7a 100644 --- a/src/libraries/System.IO/src/project.json +++ b/src/libraries/System.IO/src/project.json @@ -24,6 +24,21 @@ "dependencies": { "Microsoft.TargetingPack.NETFramework.v4.6": "1.0.1" } - } + }, + "netstandard1.3": { + "imports": [ "netcore50" ], + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1-rc3-23901", + "Microsoft.TargetingPack.Private.NETNative": "1.0.0-rc3-23901", + "System.Diagnostics.Contracts": "4.0.0", + "System.Diagnostics.Debug": "4.0.10", + "System.Diagnostics.Tools": "4.0.0", + "System.Globalization": "4.0.0", + "System.Runtime.Extensions": "4.0.10", + "System.Text.Encoding.Extensions": "4.0.0", + "System.Threading": "4.0.0", + "System.Threading.Tasks": "4.0.10" + } + } } }