|
Every application I publish as self-contained with .NET 6 and before outputs a large set of api-ms* assemblies/DLLs. While I understand for what reason they are here, I thought the original reason was that API call from former P/Invokes are redirected to newer API calls. I assumed that increasing the RuntimeIdentifier to win10 or even higher versions, like net5.0-windows10.0.22000.0 gets rid of them but they are still there. What is the reason why they are still there even in never version and can I safely delete them? I would also be nice if there would be a good reference to read about. I'm not sure if something is written in "Windows Internals" or if I missed it. |
Replies: 3 comments 6 replies
|
You do not need the api-ms-redirect .dlls for Win10. cc @VSadov |
They are needed for Win7. |
|
Btw is there a way to disable these in csproj? |
They are needed for Win7.