代码之家  ›  专栏  ›  技术社区  ›  Priyanshu

windows商店应用程序的有效负载错误

  •  0
  • Priyanshu  · 技术社区  · 11 年前

    我通过引用链接了CalendarControl依赖于NotesApp的两个项目,但当我编译项目时,我面临两个错误。有人能指引我正确的方向吗??

    错误1

    负载包含两个或多个具有相同目标路径“App.xaml”的文件。源文件: D: \windows store app\Notes\Source\C#\NotesApp\bin\Debug\app.xaml D: \windows store app\CalendarControl\Calendar Control\CalendarControl\bin\Debug\app.xaml NotesApp

    错误2

    有效负载包含两个或多个具有相同目标路径“Common\StandardsStyles.xaml”的文件。源文件: D: \windows store app\Notes\Source\C#\NotesApp\bin\Debug\Common\StandardStyles.xaml D: \windows store app\CalendarControl\Calendar Control\CalendarControl\bin\Debug\Common\StandardStyles.xaml NotesApp

    1 回复  |  直到 11 年前
        1
  •  1
  •   Abdallah Shakhatreh    10 年前

    要解决此问题,请转到DLL输出文件夹(例如bin\Release),创建一个名为“DLL名称”的新文件夹(例如MyUserControlLibrary),然后将XAML文件向下移动到此文件夹。

    bin\释放

    MyUserControlLibrary.dll

    我的用户控件库.pri

    \MyUserControlLibrary[文件夹]<--创造

       UserControl1.xaml <-- move here
    
       UserControl2.xaml <-- move here