Fix the tests for targeting netstandard1.3.
This commit is contained in:
parent
eec324a844
commit
38753d42b0
11 changed files with 29 additions and 19 deletions
|
@ -15,7 +15,7 @@
|
|||
"dotnet-desktop-binding-redirects": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {}
|
||||
"net46": {}
|
||||
},
|
||||
"tools": {
|
||||
"dotnet-dependency-tool-invoker": {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"dotnet-desktop-binding-redirects": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {}
|
||||
"net46": {}
|
||||
},
|
||||
"tools": {
|
||||
"dotnet-dependency-tool-invoker": {
|
||||
|
|
|
@ -9,6 +9,15 @@
|
|||
"emitEntryPoint": true
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {}
|
||||
"net46": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": {
|
||||
"type": "build"
|
||||
},
|
||||
"System.IO": {
|
||||
"type": "build"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -20,7 +20,7 @@
|
|||
"System.Runtime.Serialization.Primitives": "4.1.1"
|
||||
}
|
||||
},
|
||||
"net451": {}
|
||||
"net46": {}
|
||||
},
|
||||
"testRunner": "xunit"
|
||||
}
|
||||
|
|
|
@ -175,7 +175,7 @@
|
|||
<Message Text="%(NoAutoBuildDesktopTestAssetProjects.FullPath)" />
|
||||
|
||||
<DotNetBuild Configuration="$(Configuration)"
|
||||
Framework="net451"
|
||||
Framework="net46"
|
||||
ProjectPath="%(BuildableDesktopTestAssetProjects.FullPath)"
|
||||
ToolPath="$(DotnetUnderTest)"
|
||||
WorkingDirectory="%(BuildableDesktopTestAssetProjects.RelativeDir)" />
|
||||
|
|
|
@ -159,7 +159,7 @@
|
|||
<VersionPrefix>1.0.0-preview3-</VersionPrefix>
|
||||
<VersionSuffix>$(TestPackageBuildVersionSuffix)</VersionSuffix>
|
||||
<Clean>False</Clean>
|
||||
<Frameworks>net451;netstandard1.6</Frameworks>
|
||||
<Frameworks>netstandard1.3</Frameworks>
|
||||
</BaseTestPackageProject>
|
||||
<BaseTestPackageProject Include="src/Microsoft.DotNet.ProjectModel">
|
||||
<Name>Microsoft.DotNet.ProjectModel</Name>
|
||||
|
@ -168,7 +168,7 @@
|
|||
<VersionPrefix>1.0.0-rc4-</VersionPrefix>
|
||||
<VersionSuffix>$(TestPackageBuildVersionSuffix)</VersionSuffix>
|
||||
<Clean>False</Clean>
|
||||
<Frameworks>net451;netstandard1.6</Frameworks>
|
||||
<Frameworks>netstandard1.3</Frameworks>
|
||||
</BaseTestPackageProject>
|
||||
<BaseTestPackageProject Include="src/Microsoft.DotNet.ProjectModel.Loader">
|
||||
<Name>Microsoft.DotNet.ProjectModel.Loader</Name>
|
||||
|
@ -186,7 +186,7 @@
|
|||
<VersionPrefix>1.0.0-preview3-</VersionPrefix>
|
||||
<VersionSuffix>$(TestPackageBuildVersionSuffix)</VersionSuffix>
|
||||
<Clean>False</Clean>
|
||||
<Frameworks>netstandard1.6</Frameworks>
|
||||
<Frameworks>netstandard1.3</Frameworks>
|
||||
</BaseTestPackageProject>
|
||||
<BaseTestPackageProject Include="src/Microsoft.DotNet.InternalAbstractions">
|
||||
<Name>Microsoft.DotNet.InternalAbstractions</Name>
|
||||
|
@ -195,7 +195,7 @@
|
|||
<VersionPrefix>1.0.1-beta-</VersionPrefix>
|
||||
<VersionSuffix>$(TestPackageBuildVersionSuffix)</VersionSuffix>
|
||||
<Clean>False</Clean>
|
||||
<Frameworks>net451;netstandard1.3</Frameworks>
|
||||
<Frameworks>netstandard1.3</Frameworks>
|
||||
</BaseTestPackageProject>
|
||||
<BaseTestPackageProject Include="src/Microsoft.Extensions.Testing.Abstractions">
|
||||
<Name>Microsoft.Extensions.Testing.Abstractions</Name>
|
||||
|
@ -204,7 +204,7 @@
|
|||
<VersionPrefix>1.0.0-preview3-</VersionPrefix>
|
||||
<VersionSuffix>$(TestPackageBuildVersionSuffix)</VersionSuffix>
|
||||
<Clean>False</Clean>
|
||||
<Frameworks>net451;netstandard1.6</Frameworks>
|
||||
<Frameworks>netstandard1.3</Frameworks>
|
||||
</BaseTestPackageProject>
|
||||
<BaseTestPackageProject Include="src/Microsoft.DotNet.Compiler.Common">
|
||||
<Name>Microsoft.DotNet.Compiler.Common</Name>
|
||||
|
@ -213,7 +213,7 @@
|
|||
<VersionPrefix>1.0.0-preview3-</VersionPrefix>
|
||||
<VersionSuffix>$(TestPackageBuildVersionSuffix)</VersionSuffix>
|
||||
<Clean>False</Clean>
|
||||
<Frameworks>netstandard1.6</Frameworks>
|
||||
<Frameworks>netstandard1.3</Frameworks>
|
||||
</BaseTestPackageProject>
|
||||
<BaseTestPackageProject Include="src/Microsoft.DotNet.Files">
|
||||
<Name>Microsoft.DotNet.Files</Name>
|
||||
|
@ -222,7 +222,7 @@
|
|||
<VersionPrefix>1.0.0-preview3-</VersionPrefix>
|
||||
<VersionSuffix>$(TestPackageBuildVersionSuffix)</VersionSuffix>
|
||||
<Clean>False</Clean>
|
||||
<Frameworks>netstandard1.6</Frameworks>
|
||||
<Frameworks>netstandard1.3</Frameworks>
|
||||
</BaseTestPackageProject>
|
||||
<BaseTestPackageProject Include="src/dotnet-compile-fsc">
|
||||
<Name>dotnet-compile-fsc</Name>
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
</TestProjects>
|
||||
|
||||
<TestProjects Condition=" '%(RelativeDir)' == 'test\binding-redirects.Tests\' ">
|
||||
<Framework>net451</Framework>
|
||||
<Framework>net46</Framework>
|
||||
</TestProjects>
|
||||
<TestProjects Condition=" '%(RelativeDir)' == 'test\Installer\Microsoft.DotNet.Cli.Msi.Tests\' ">
|
||||
<Framework>net46</Framework>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Reflection.Metadata;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
|
@ -9,11 +10,11 @@ namespace Microsoft.Extensions.Testing.Abstractions
|
|||
{
|
||||
internal static class MetadataExtensions
|
||||
{
|
||||
private static PropertyInfo s_methodInfoMethodTokenProperty = typeof(MethodInfo).GetProperty("MethodToken");
|
||||
|
||||
internal static int GetMethodToken(this MethodInfo methodInfo)
|
||||
{
|
||||
var methodToken = methodInfo.MetadataToken;
|
||||
|
||||
return methodToken;
|
||||
return (int)s_methodInfoMethodTokenProperty.GetValue(methodInfo);
|
||||
}
|
||||
|
||||
internal static MethodDebugInformationHandle GetMethodDebugInformationHandle(this MethodInfo methodInfo)
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
"System.Reflection.Metadata": "1.4.1-beta-24426-02"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandard1.5": {
|
||||
"netstandard1.3": {
|
||||
"imports": [
|
||||
"portable-net45+wp80+win8+wpa81+dnxcore50",
|
||||
"portable-net45+win8"
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
"System.Collections.Immutable": "1.2.0-rc2-24022",
|
||||
"System.Net.NetworkInformation": "4.1.0-rc2-24022"
|
||||
},
|
||||
"net451": {
|
||||
"net46": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": {
|
||||
"type": "build"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"net46": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Configuration": ""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue