Is it possible to use the .NET assembly in a program other than the CLR?

I am developing a plugin for 3DsMax. So it is not CLR C ++. My question is, is it possible to use the .NET assembly inside this plugin?

thank you for your responses

Regards Nem.

+4
source share
3 answers

Yes, however you need to host the CLR in your application.

This is how IIS hosts ASP.NET websites and how SQLServer enables CLR functions, etc.

Take a look at the CLR hosting API: http://msdn.microsoft.com/en-us/magazine/cc163567.aspx

+4
source

You can do this through COM-interop.

You can associate a .NET assembly with a demonstration of a COM interface, which can then be accessed by any native process that can use COM services.

+3
source

The bottom line is that if you want to use the .NET assembly, you will need the CLR to run it. There are many ways to do this in your own process, including

  • CLR hosting inside a regular process
  • Starting assembly in a separate .Net process and transferring via COM interface
+3
source

All Articles