-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET8 AOT produces faulty win-x64 static library #95100
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsDescriptionWin-x64 static library produced by .NET8 AOT fails to link when used in a Windows c++ console project. It results in error by cvtres.exe: ConsoleApplication1.res : fatal error LNK1241: resource file ClassLibrary1.lib(ClassLibrary1.obj) already specified. Removing .rc file from the build solves the issue. Reproduction Steps
Expected behaviorBuilds w/o issues Actual behaviorConsoleApplication1.res : fatal error LNK1241: resource file ClassLibrary1.lib(ClassLibrary1.obj) already specified. Regression?Was linking successfully in .NET7 Known WorkaroundsRemove .rc from the build ConfigurationNo response Other informationNo response
|
Thank you for reporting this issue. You should be able to work around it by specifying |
Description
Win-x64 static library produced by .NET8 AOT fails to link when used in a Windows c++ console project. It results in error by cvtres.exe: ConsoleApplication1.res : fatal error LNK1241: resource file ClassLibrary1.lib(ClassLibrary1.obj) already specified.
Removing .rc file from the build solves the issue.
Reproduction Steps
bootstrapperdll.obj
Runtime.WorkstationGC.lib
eventpipe-enabled.lib
Runtime.VxsortEnabled.lib
System.Globalization.Native.Aot.lib
System.IO.Compression.Native.Aot.lib
Expected behavior
Builds w/o issues
Actual behavior
ConsoleApplication1.res : fatal error LNK1241: resource file ClassLibrary1.lib(ClassLibrary1.obj) already specified.
Regression?
Was linking successfully in .NET7
Known Workarounds
Remove .rc from the build
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: