Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit a4af8e0

Browse files
author
Atsushi Kanamori
committed
Fix failures in System.Dynamic.Runtime.Tests
1 parent e64e284 commit a4af8e0

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
2+
<Library>
3+
<Type Name="System.Func&lt;&gt;" Dynamic="Required Public" />
4+
<Type Name="System.Func&lt;,&gt;" Dynamic="Required Public" />
5+
<Type Name="System.Func&lt;,,,&gt;" Dynamic="Required Public" />
6+
<Type Name="System.TimeoutException" Dynamic="Required Public" />
7+
</Library>
8+
</Directives>
9+

src/System.Dynamic.Runtime/tests/System.Dynamic.Runtime.Tests.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,8 @@
163163
<Link>Common\System\PlatformDetection.cs</Link>
164164
</Compile>
165165
</ItemGroup>
166+
<ItemGroup>
167+
<EmbeddedResource Include="Resources\$(AssemblyName).rd.xml" />
168+
</ItemGroup>
166169
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
167-
</Project>
170+
</Project>

src/System.Linq.Expressions/src/Resources/System.Linq.Expressions.rd.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
<Type Name="System.Linq.Expressions.ExpressionType" Serialize="Public"/>
119119
<!-- Every Expression<T> type must be visible to reflection -->
120120
<Type Name="System.Linq.Expressions.Expression&lt;&gt;" Activate="Public"/>
121+
<!-- CachedReflectionInfo.cs obtains MemberInfo's for many DynamicObject members -->
122+
<Type Name="System.Dynamic.DynamicObject" Dynamic="Required Public" />
121123
</Assembly>
122124
<Assembly Name="System.Private.CoreLib">
123125
<Namespace Name="System">

0 commit comments

Comments
 (0)