Search code examples
wpfapp.xaml

WPF c# app.xaml accidentally deleted


I am working on a wpf application and for a reason i did remove App.Xaml and add app.cs witch contain main method. and the application is working very well, but i need to add a resource dictionary and i did found that it will be add in App.Xaml in order to use it in all project window, but now i don't have App.Xaml, i did Add one manually but it was not working it is not like the generated one . any one can help me to add one without creating new project?


Solution

  • Make sure you set the Build Action of the new added file to ApplicationDefinition in the properties window.