Any way to use DispatchProxy v6.0.0 from a net48 target? #64726
-
The System.Reflection.DispatchProxy NuGet package was never updated for the final 5.0.0 or 6.0.0 version. But I'd really like to reference the 6.0.0 package in a project that multi-targets .NET Framework 4.8 and .NET 6.0. The net6.0 build just works (presumably due to the Microsoft.NET.Sdk), but to get the net48 build to compile I have to reference the older, buggy v4.7.1 package like this: <Choose>
<When Condition=" '$(TargetFramework)' == 'net48' ">
<ItemGroup>
<PackageReference Include="System.Reflection.DispatchProxy" Version="4.7.1" />
</ItemGroup>
</When>
</Choose> Is there a way to reference System.Reflection.DispatchProxy v6.0.0 for net48? I ask because it contains the fix for bug #30917. In my net48 build I have to make my client proxy class public with a hack like this in order for the v4.7.1 version to work: #if NETFRAMEWORK
public
#else
internal
#endif
class ClientProxy : DispatchProxy I don't like leaking that implementation detail from my project. If there's no way to reference the SDK's v6.0.0 library from net48, is there any chance the DispatchProxy NuGet package version will ever be updated to a final 6.0.0 version? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It seems that the OOB version of that package has been discontinued. See #39220. |
Beta Was this translation helpful? Give feedback.
It seems that the OOB version of that package has been discontinued. See #39220.
I'm not sure how to deliver bug fix for it in this scenario. Asking @ericstj