can dll be compiled to aot ?

mc 3,641 Reputation points

Can the DLL Library be aot and can not be decompiled by dnSpy or other tools?

like c++ DLL?

Microsoft Technologies based on the .NET software framework.
3,352 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
4,148 questions
{count} votes

Accepted answer
  1. Bruce ( 55,196 Reputation points

    while you can compile a library to AOT. There are restrictions on what code the library executes, limited reflection, etc. also the library is a native library, and will not have managed code entry points. you would use pinvoke to call methods in the library just like any native library.

    note: typically you use would an obfuscator for your needs. google for the best options.

    0 comments No comments

0 additional answers

Sort by: Most helpful