简体   繁体   English

Windows Store应用程序的有效负载错误

[英]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. 我已经链接了我的两个项目,其中CalendarControl通过引用依赖于NotesApp,但是在编译项目时会遇到2个错误。 Can anyone guide me in the right direction ?? 谁能指导我正确的方向?

Error 1 错误1

Payload contains two or more files with the same destination path 'App.xaml'. 有效负载包含两个或多个文件,这些文件具有相同的目标路径“ 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 源文件:D:\\ windows存储应用程序\\ Notes \\ Source \\ C#\\ NotesApp \\ bin \\ Debug \\ App.xaml D:\\ windows存储应用程序\\ CalendarControl \\ CalendarControl \\ CalendarControl \\ bin \\ Debug \\ App.xaml NotesApp

Error 2 错误2

Payload contains two or more files with the same destination path 'Common\\StandardStyles.xaml'. 有效负载包含两个或多个文件,这些文件具有相同的目标路径“ 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 源文件:D:\\ windows存储应用程序\\ Notes \\ Source \\ C#\\ NotesApp \\ bin \\ Debug \\ Common \\ StandardStyles.xaml D:\\ windows存储应用程序\\ CalendarControl \\ CalendarControl \\ CalendarControl \\ bin \\ Debug \\ Common \\ StandardStyles.xaml NotesApp

To workaround this, go to the DLL output folder (eg bin\\Release), create a new folder named like your DLL-Name (eg MyUserControlLibrary) and move the XAML files down to this folder. 要解决此问题,请转到DLL输出文件夹(例如bin \\ Release),创建一个名为DLL-Name的新文件夹(例如MyUserControlLibrary),然后将XAML文件向下移动到该文件夹​​。

bin\\Release 斌\\发布

MyUserControlLibrary.dll MyUserControlLibrary.dll

MyUserControlLibrary.pri MyUserControlLibrary.pri

\\MyUserControlLibrary [folder] <-- create \\ MyUserControlLibrary [文件夹] <-创建

   UserControl1.xaml <-- move here

   UserControl2.xaml <-- move here

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM