Is there any way to have a class library with the same name as an WPF application?
I just hit an IOException "Cannot locate resource 'blah.xaml'." after renaming a class library to match the WPF application. i.e. only the file name extension is different.
e.g. MyApp.exe
and MyApp.dll
. If I rename to MyApp.Library.dll
all is well.
Top of the stack trace:
at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
at System.Windows.Application.DoStartup()