Skip to content

Unknown build error, 'An item with the same key has already been added.' IOException: Cannot locate resource #10971

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
Working on WPF .NET 9 application and getting this error on first compile after editing source code, no error if I rebuild it for the second time. VS 2022 Pro.
But, after running the solution, program failed with code:
System.Windows.Markup.XamlParseException: ''Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '67' and line position '14'.'
Inner Exception
IOException: Cannot locate resource 'assets/toolbaricons/refresh.png'.

DictionaryPage.xaml
DictionaryPage.xaml.cs
DictionaryViewModel.cs
Instructors.csproj
Asset Folder.jpg


Original Comments

Feedback Bot on 7/7/2025, 03:19 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions