如何使 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/