c# - “有效载荷文件不存在”是什么意思?

标签 c# xaml

我正在尝试在 Windows 8 应用程序中绘制一些图表。

所以我下载了这个:

http://modernuitoolkit.codeplex.com/

然后我右键单击我的项目,单击添加引用并导航到 .dll 文件。

但是当我尝试构建项目时,我遇到了很多此类错误:

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

这只是其中的一小部分。它们似乎与 Xaml 有关。

谢谢。

最佳答案

正如其他答案所建议的那样,创建适当的目录并移动生成的 .xr.xml 文件确实有效,但是,


正确的解决方法是,

  1. 打开项目属性(通过在解决方案资源管理器中右键单击项目,或聚焦项目并按 Alt + Enter.

  2. 导航到构建部分(从 VS 2017 开始,通过边栏)

  3. 选中 Output 组下的 Generate Library Layout 复选框。

Generate library layout

...执行此操作后,Visual Studio 将为您生成必要的目录和文件结构。

关于c# - “有效载荷文件不存在”是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16408779/

相关文章:

c# - 使用和不使用静态构造函数的静态类型性能

c# - 如何在 Windows Phone 8 (C#) Framework 中添加 C++ DLL

c# - SQLite 是否有 .NET/C# 包装器?

wpf - ListView 中 Gridview 列的内容对齐

c# - 我在 WPF 中创建了一个带有数据绑定(bind)的组合框。我不确定如何将值设置为 "comboboxselecteditem"

c# - ListView 中多个属性的 DisplayMemberPath

XAML 绑定(bind)到 Collection[index].ObjectProperty

javascript - 从 C# 项目页面导航到 Javascript 项目页面 Windows Phone 8.1

c# - 如何使用 C# 向表中的 GUID 列插入空值?

c# - MongoDB - 在单个集合中插入多种类型的对象