-
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. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
You do not need the api-ms-redirect .dlls for Win10. cc @VSadov |
Beta Was this translation helpful? Give feedback.
-
They are needed for Win7. |
Beta Was this translation helpful? Give feedback.
-
Btw is there a way to disable these in csproj? |
Beta Was this translation helpful? Give feedback.
They are needed for Win7.