You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Microsoft.NETCore.Native.Windows.targets includes "Synchronization.lib" when it's actually "synchronization.lib" #137588
I have a native AOT cross compiling setup where I compile my project targeting Windows from Linux using pre downloaded Windows SDK libs and include files. Under this setup, I get the following error: lld-link: Error : could not open 'Synchronization.lib': No such file or directory, but the file exists, it's just named "synchronization.lib" which causes problems on case sensitive file systems.
The important part is what ends up in the link.rsp file in the obj folder. This file is what ends up being used to list the libraries to link and it is what contains "Synchronization.lib" so this could be checked on a regular native AOT Windows project.
Expected behavior
I don't see an error about not finding "Synchronization.lib".
Actual behavior
I see an error about "Synchronization.lib" not being found while it exists as "synchronization.lib".
Regression?
This worked on .NET 10. It stopped working when I upgraded to .NET 11 and given the commit I linked below, it seemed to have been an issue since after preview 6.
Known Workarounds
I can workaround this by editing the item for now, but I am submitting this to see if it's a bug that should be addressed in the target directly.
Configuration
.NET 11 GA
Arch Linux
x64
Other information
The Windows SDK comes with a lib called "synchronization.lib" which net11 started to include as part of the native AOT build since this commit: b836f4b , but it specified it as "Synchronization.lib" which causes problems on case sensitive file systems since it cannot locate the file.
While I understand cross compiling isn't something that's well tested, I find that the other libs included are all lowercase which matches the filenames the Windows SDK have. This suggests to me this was a mistake: that it wasn't meant to start with a capital letter.
Activity
dotnet-policy-service commentedon Nov 15, 2026
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.
jkotas commentedon Nov 15, 2026
Would you like to send a PR to fix this?
aldelaro5 commentedon Nov 15, 2026
Sure, I wanted to make sure I had a workaround in case, but I can work on an upstream PR now.
Fix the casing of the synchronization.lib filename (dotnet#137599)