Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Hello,

I try the VMProtect Demo with PDB file generate by Visual Studio 2022, compiling .NET 7.0 console application to Native single EXE file

I turned on debugging symbols for Publish and Release build, and try the PDB file in the Publish folder and Release folder

But it does not work

VMprotect imports the PDB file, but when going to use it, say invalid address on all methods

I use this process here: Native AOT deployment overview - .NET | Microsoft Learn

I also try to use DumpBin.exe to convert PDB file to MAP file (see below), but the syntax and formatting is not correct. it is similar to MAP file, but not close enough.

So the issue was answered here: Native AOT - unable to generate MAP files · Issue #80992 · dotnet/runtime · GitHub

HOWEVER The compilation time takes so long between when the .MAP is generated and the EXE is spit out, that VMProtect is rejecting the time stamp

How do I fix this?

After spending some time on this, I think right now its safe to say VMprotect cannot support Native AOT compiled EXE binary, unless the MAP file is the problem

Every method I try to protect gives

“Command not supported”

OR

“Address is already used by function xxxxxxxx”


I know this is still early days for .NET Native AOT, but the potential is very exciting

But sadly, I guess not ready yet

Do you have a very simple example (EXE+ PDB + MAP + VMP files) that shows the following problems:
1.

VMprotect imports the PDB file, but when going to use it, say invalid address on all methods

The compilation time takes so long between when the .MAP is generated and the EXE is spit out, that VMProtect is rejecting the time stamp

Every method I try to protect gives

“Command not supported”

OR

“Address is already used by function xxxxxxxx”

Yes I have sample ZIP with unprotected EXE and VIsual Studio project. where to send it?

info@vmpsoft.com

I try to email yesterday, email is not delivered, say timeout

I try to email twice now, both emails bounced back.

It seems your mail server has problems too.

Yesterday, the VMPsoft website had a 1Gb.ru - Дом для вашего сайта; универсальный ASP, .NET и PHP/PERL/SSI хостинг, VDS и сервера error on it instead of home page

I just try to send email again

I am still unable to email info@vmpsoft.com

I email plenty of other people just fine, and they email me back just fine (including Themida support)

If you want the sample program and VS project I am having problem with, maybe there is another way I can send it?

We are happy for the themida’s support.

The topic is closed.