Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Payload file does not exist' What does this mean?

Tags:

c#

xaml

I'm trying to draw some graphs in a windows 8 app.

So I downloaded this:

http://modernuitoolkit.codeplex.com/

I then right clicked my project, clicked add reference and navigated to the .dll file.

But when I try and build the project I get loads of these type of errors:

Error 18 Payload file 'c:\users\mark\Desktop\ChartingTest\ChartingTest\ModernUI.Toolkit.Data.Charting\Charts\Series\LineSeries.xaml' does not exist. App1

Error 15 Payload file 'c:\users\mark\Desktop\ChartingTest\ChartingTest\ModernUI.Toolkit.Data.Charting\Charts\Series\DataPointSeries.xaml' does not exist. App1

Error 16 Payload file 'c:\users\mark\Desktop\ChartingTest\ChartingTest\ModernUI.Toolkit.Data.Charting\Charts\Series\DefinitionSeries.xaml' does not exist. App1

Error 17 Payload file 'c:\users\mark\Desktop\ChartingTest\ChartingTest\ModernUI.Toolkit.Data.Charting\Charts\Series\LegendItem.xaml' does not exist. App1

That is just a few of them. They seem to be releated to Xaml.

Thanks.

like image 793
William Avatar asked May 06 '13 23:05

William


Video Answer


2 Answers

As the other answers suggest, creating the appropriate directory and moving the generated .xr.xml file does work, however,


The correct solution for this is to,

  1. Open the Project Properties (via right clicking the project within the Solution Explorer, or focusing on the project and pressing Alt + Enter.

  2. Navigate to the Build section (as of VS 2017, via the sidebar)

  3. Check the Generate Library Layout checkbox under the Output group.

Generate library layout

...upon doing which Visual Studio will generate the necessary directory and file structure for you.

like image 149
ravindUwU Avatar answered Oct 21 '22 15:10

ravindUwU


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
like image 30
Abdallah Shakhatreh Avatar answered Oct 21 '22 14:10

Abdallah Shakhatreh