I'm trying to create a shim for System.Net.Sockets.SocketAsyncEventArgs
but have been unable to get VS to create the shim.
Here is my current System.fakes
file:
<Fakes xmlns="http://schemas.microsoft.com/fakes/2011/" Diagnostic="true">
<Assembly Name="System" Version="4.0.0.0"/>
<ShimGeneration>
<Clear/>
<Add FullName="System.Net.Sockets.SocketAsyncEventArgs"/>
</ShimGeneration>
</Fakes>
This gives the following error:
'System.Net.Sockets.SocketClientAccessPolicyProtocol' is obsolete:
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Is there a way to shim a class that has the Obsolete["Message", IsError = True]
attribute set?