说应该将某些东西存储在 bin \ Debug 文件夹具有误导性。该文件夹是VS放置Debug生成的生成过程输出的位置。你自己什么都不要放。对于发布版本，将输出放置在 bin \发布 folder and you copy it from there to deploy it. If you have content files for your application then you can add them to the project in the Solution Explorer and set the Build Action property to Content and the 复制 to output directory property to 复制 if newer. They will then be copied to the output folder, wherever that may be, during the Build process and you can access them in code by referring to the program folder as the root path, e.g. Application.StartupPath in WinForms. I'd probably suggest adding a folder to your project and adding the files under that. In that case, the folder will be copied to the output as well, so account for that in the path you use at run time.
Another option is to add the files to the Resources page in the project properties and then access the data using Properties.Resources in code. Depending on the type of data, you may get an object that you can use directly or a stream that you can write to a file or an object. The main advantage of resources is that the user cannot edit or delete them as they can with separate files.