Pass /NOEXP /NOIMPLIB options to the linker when publishing native AOT .exes (#74641)
VS2022 link.exe creates *.lib and *.exp files when linking .exes and prints a message like "Creating library bin\Release\net7.0\win-x64\native\repro.lib and object bin\Release\net7.0\win-x64\native\repro.exp" to the console. These files are not really useful for .exes and the message is unnecessary clutter in the dotnet publish output with NativeAOT. Pass /NOEXP /NOIMPLIB to the linker to suppress this behavior.
Showing
想要评论请 注册 或 登录