提交 d0b43ea2 编写于 作者: V Venkatraman Mahalingam

Resolved system.Runtime references which lead to ApiCompat errors


Commit migrated from https://github.com/dotnet/corefx/commit/b97cfb0e710d8dd296f82a7bfe89918dac74fb2f
上级 26c4f603
CannotMakeMoreVisible : Visibility of member 'System.Diagnostics.Tracing.EventListener.EventSourceIndex(System.Diagnostics.Tracing.EventSource)' is 'Family' in the implementation but 'Public' in the contract.
MembersMustExist : Member 'System.Diagnostics.Tracing.EventSource.add_EventCommandExecuted(System.EventHandler<System.Diagnostics.Tracing.EventCommandEventArgs>)' does not exist in the implementation but it does exist in the contract.
MembersMustExist : Member 'System.Diagnostics.Tracing.EventSource.remove_EventCommandExecuted(System.EventHandler<System.Diagnostics.Tracing.EventCommandEventArgs>)' does not exist in the implementation but it does exist in the contract.
\ No newline at end of file
......@@ -20,7 +20,6 @@
<Compile Include="System\Reflection\DispatchProxyGenerator.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetGroup)' == 'netcore50aot'">
<TargetingPackReference Include="System.Private.CoreLib" />
<TargetingPackReference Include="System.Private.Interop" />
</ItemGroup>
<ItemGroup>
......
......@@ -18,7 +18,8 @@
},
"netcore50": {
"dependencies": {
"Microsoft.TargetingPack.Private.NETNative": "1.0.0-rc3-23910"
"Microsoft.TargetingPack.Private.NETNative": "1.0.0-rc3-23910",
"System.Runtime": "4.0.20"
}
}
}
......
......@@ -22,6 +22,7 @@
<ItemGroup Condition="'$(TargetGroup)' == 'netcore50aot'">
<TargetingPackReference Include="System.Private.CoreLib" />
<TargetingPackReference Include="System.Private.Interop" />
<ProjectReference Include="../../System.Runtime/src/redist/System.Runtime.depproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetGroup)' == 'net46'">
<TargetingPackReference Include="mscorlib" />
......
......@@ -23,7 +23,6 @@
<TargetingPackReference Include="mscorlib" />
</ItemGroup>
<ItemGroup Condition="'$(TargetGroup)' == 'netcore50aot'">
<TargetingPackReference Include="System.Private.CoreLib" />
<TargetingPackReference Include="System.Private.Interop" />
</ItemGroup>
<ItemGroup>
......
......@@ -10,7 +10,8 @@
},
"netcore50": {
"dependencies": {
"Microsoft.TargetingPack.Private.NETNative": "1.0.0-rc3-23910"
"Microsoft.TargetingPack.Private.NETNative": "1.0.0-rc3-23910",
"System.Runtime": "4.0.20"
}
},
"net46": {
......
......@@ -22,7 +22,6 @@
</PropertyGroup>
<ItemGroup>
<TargetingPackReference Include="mscorlib" Condition="'$(TargetGroup)' != 'netcore50aot'" />
<TargetingPackReference Include="System.Private.CoreLib" Condition="'$(TargetGroup)' == 'netcore50aot'" />
<TargetingPackReference Include="System.Private.Threading" Condition="'$(TargetGroup)' == 'netcore50aot'" />
</ItemGroup>
<ItemGroup>
......
......@@ -2,7 +2,8 @@
"frameworks": {
"netcore50": {
"dependencies": {
"Microsoft.TargetingPack.Private.NETNative": "1.0.0-rc3-23910"
"Microsoft.TargetingPack.Private.NETNative": "1.0.0-rc3-23910",
"System.Runtime": "4.0.20"
}
}
}
......
......@@ -36,7 +36,7 @@
<TargetingPackReference Include="System.Core" />
</ItemGroup>
<ItemGroup Condition="'$(TargetGroup)' == 'netcore50aot'">
<TargetingPackReference Include="System.Private.CoreLib" />
<TargetingPackReference Include="System.Private.CoreLib.Threading" />
<TargetingPackReference Include="System.Private.Threading" />
</ItemGroup>
<ItemGroup>
......
......@@ -7,7 +7,8 @@
},
"netcore50": {
"dependencies": {
"Microsoft.TargetingPack.Private.NETNative": "1.0.0-rc3-23910"
"Microsoft.TargetingPack.Private.NETNative": "1.0.0-rc3-23910",
"System.Runtime": "4.0.20"
}
},
"net46": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册