c# - 如何使 JSON 文件成为 Visual Studio 2012 中项目的一部分

标签 c# json visual-studio-2012

如何使 JSON 文件成为 Visual Studio 2012 中项目的一部分?如何访问文件?如何设置它们自动复制?

最佳答案

How make JSON-files part of project in Visual Studio 2012

右键单击项目并选择“添加文件...”选项(您可以在项目中引用任何)。

How access to the file?

您需要详细说明这一点...访问何时?在运行时/设计期间?

How to set them copy automatically

添加到项目后,右键单击该文件并将 Copy to Output Dir 选项设置为 true

关于c# - 如何使 JSON 文件成为 Visual Studio 2012 中项目的一部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20856565/

相关文章:

c# - 简单集合的有序交换

C# 到 VB6 互操作 : indexed array properties are not accessible across nested COM interfaces

c# - WPF - 自动调整所有文本的大小

visual-studio-2010 - Visual Studio 2013 总是在类别排序中打开属性窗口

c++ - 打印到控制台的警告消息未使构建失败

c# - 从类库项目访问 appsettings.json 文件设置

c# - 使用 Linq 按 List<ListItem> 进行过滤

iOS - DetailViewController 不显示来自 JSON 的多个条目/值

java - .json 字符串中的.equal?

javascript - 无法使用 json 对象通过 Javascript 显示动态表