<AssemblyName>System.Runtime.InteropServices.RuntimeInformation</AssemblyName>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<ProjectGuid>{F9DF2357-81B4-4317-908E-512DA9395583}</ProjectGuid>
- <PackageTargetFramework Condition="'$(PackageTargetFramework)' == ''">netstandard1.1</PackageTargetFramework>
+ <PackageTargetFramework Condition="'$(PackageTargetFramework)' == ''">netstandard1.5</PackageTargetFramework>
<DefineConstants Condition="'$(TargetGroup)'=='net45'">net45</DefineConstants>
<DefineConstants Condition="'$(TargetGroup)'=='wpa81'">wpa81</DefineConstants>
<DefineConstants Condition="'$(TargetGroup)'=='win8'">win8</DefineConstants>
// See the LICENSE file in the project root for more information.
using System.Reflection;
+using System.Diagnostics;
namespace System.Runtime.InteropServices
{
{
get
{
- return s_frameworkDescription ?? (s_frameworkDescription = $"{FrameworkName} {typeof(object).GetTypeInfo().Assembly.GetName().Version}");
+ return s_frameworkDescription ?? (s_frameworkDescription = $"{FrameworkName} {FileVersionInfo.GetVersionInfo(typeof(object).GetTypeInfo().Assembly.Location).FileVersion}");
}
}
}
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1",
"System.Diagnostics.Debug": "4.0.0",
- "System.Reflection": "4.0.0",
+ "System.Reflection": "4.1.1-beta-24229-02",
"System.Resources.ResourceManager": "4.0.0",
"System.Runtime": "4.0.0",
"System.Runtime.InteropServices": "4.0.0",
- "System.Threading": "4.0.0"
+ "System.Threading": "4.0.0",
+ "System.Diagnostics.FileVersionInfo": "4.0.0"
},
"frameworks": {
- "netstandard1.1": {
+ "netstandard1.5": {
"dependencies": {},
"imports": [
"dotnet5.2"
using System.Runtime.InteropServices;
using System.Reflection;
+using System.Diagnostics;
using Xunit;
namespace System.Runtime.InteropServices.RuntimeInformationTests
[Fact]
public void VerifyRuntimeDebugName()
{
- string expected = string.Format(".NET Core {0}", typeof(object).GetTypeInfo().Assembly.GetName().Version);
+ string expected = string.Format(".NET Core {0}", FileVersionInfo.GetVersionInfo(typeof(object).GetTypeInfo().Assembly.Location).FileVersion);
Assert.Equal(expected, RuntimeInformation.FrameworkDescription);
Assert.Same(RuntimeInformation.FrameworkDescription, RuntimeInformation.FrameworkDescription);
}
"exclude": "compile"
},
"Microsoft.xunit.netcore.extensions": "1.0.0-prerelease-00508-01",
- "Microsoft.DotNet.BuildTools.TestSuite": "1.0.0-prerelease-00520-02"
+ "Microsoft.DotNet.BuildTools.TestSuite": "1.0.0-prerelease-00520-02",
+ "System.Diagnostics.FileVersionInfo": "4.0.0"
},
"frameworks": {
"netstandard1.3": {}