Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PublishAot single warning issue for ProjectReferences (#101799)
When publishing for native AOT and a ProjectReference has trim/AOT warnings, all the warnings are being collapsed into a single "warning IL2104: Assembly 'X' produced trim warnings." The issue is that we are using FileName, which cuts off the file extension of the item. But the items we are working with already cut off the `.dll` extension, so it this is cutting off important parts of the assembly name. The fix is to just use Identity, which is the whole item id.
- Loading branch information