Priyanshu
Priyanshu

Reputation: 89

Payload error for windows store application

I have linked two of my projects in which CalendarControl is dependent on NotesApp through a reference but when i compile my project i face 2 errors. Can anyone guide me in the right direction ??

Error 1

Payload contains two or more files with the same destination path 'App.xaml'. Source files: D:\windows store app\Notes\Source\C#\NotesApp\bin\Debug\App.xaml D:\windows store app\CalendarControl\CalendarControl\CalendarControl\bin\Debug\App.xaml NotesApp

Error 2

Payload contains two or more files with the same destination path 'Common\StandardStyles.xaml'. Source files: D:\windows store app\Notes\Source\C#\NotesApp\bin\Debug\Common\StandardStyles.xaml D:\windows store app\CalendarControl\CalendarControl\CalendarControl\bin\Debug\Common\StandardStyles.xaml NotesApp

Upvotes: 0

Views: 582

Answers (1)

Abdallah Shakhatreh
Abdallah Shakhatreh

Reputation: 770

To workaround this, go to the DLL output folder (e.g. bin\Release), create a new folder named like your DLL-Name (e.g. MyUserControlLibrary) and move the XAML files down to this folder.

bin\Release

MyUserControlLibrary.dll

MyUserControlLibrary.pri

\MyUserControlLibrary [folder] <-- create

   UserControl1.xaml <-- move here

   UserControl2.xaml <-- move here

Upvotes: 1

Related Questions