Unable to load Managed DirectX9.0 assemblies in .NETCore 3.1 which is built against version v1.1.4322.

  • Thread starter Thread starter SMathew1979
  • Start date Start date
S

SMathew1979

Guest
  • We have a VS2019 .NET Windows Forms application which is using Managed DirectX 9.0, built against v1.1.4322 run time of .NET.

We are using useLegacyV2RuntimeActivationPolicy = true setting in app.Config to load the DirectX assemblies.

<configuration>

<startup useLegacyV2RuntimeActivationPolicy="true">

  • Now we are trying to port this application to .NET core 3.1 . In .net core, app.config is not available and we could not find the alternative solution for the useLegacyV2RuntimeActivationPolicy configuration setting which is required for loading ManagedDirectX9.0.

Are there any methods to make Managed DirectX 9.0 work in .NET Core 3.1?

We observed that Managed Wrapper (C++/CLI library ) developed using Visual studio 2005 (.net 2.0) is not loading in .netcore 3.1 Win Forms application.

Please suggest how to load C++/CLI Managed wrapper library which is targeting .NET 2.0 in .netcore 3.1.

Are there any configuration settings available similar to useLegacyV2RuntimeActivationPolicy?

Continue reading...
 
Back
Top