WPF Splash Screen Adding Errors

I need to upload a png image as a splash screen for my WPF.

I imported the file into the project and changed the Build Action to a Screensaver

This should have worked, but I get this error message:

Unknown build error, 'An item with the same key has already been added.' 

Googling the error did not help.

+9
wpf splash-screen
source share
1 answer

I can confirm that changing the assembly action to the application definition and subsequent construction (there will be errors), and then switching to the splash screen and launching the program will clear this error.

+10
source share

All Articles