can dll be compiled to aot ?

mc 3,641 Reputation points
2024-04-01T05:58:43.48+00:00

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

like c++ DLL?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,352 questions
ASP.NET Core
ASP.NET Core
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 (SqlWork.com) 55,196 Reputation points
    2024-04-01T15:50:41.2766667+00:00

    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.

    https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/?tabs=net7%2Cwindows

    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