[英]How to ensure that files are copied from my working directory into bin/Debug rsp. bin/Release?
I have various files in my Visual Studio Solutions that have to be copied to the bin/Debug folder if I change it. 我的Visual Studio解决方案中有各种文件,如果我更改它,必须将其复制到bin / Debug文件夹中。
I tried to set Copy to Output Directory - Copy always
but it doesnt work. 我试图将Copy to Output Directory - Copy always
设置Copy to Output Directory - Copy always
但它不起作用。 So how can i make sure that when building these files are copied to bin/debug? 那么如何确保在构建这些文件时将其复制到bin / debug?
Here a screenshot from one example: 这是一个例子的屏幕截图:
Make sure the build action for the files are marked as content , otherwise they will not be copied while building. 确保文件的构建操作标记为内容 ,否则在构建时不会复制它们。
Content - The file is not compiled, but is included in the Content output group. 内容 - 文件未编译,但包含在“内容”输出组中。 For example, this setting is the default value for an .htm or other kind of Web file. 例如,此设置是.htm或其他类型的Web文件的默认值。
Are you using the Debug profile? 你在使用Debug配置文件吗? The build section of your properties has an output path which is set to bin/debug if you are using this profile. 如果使用此配置文件,则属性的构建部分具有输出路径,该路径设置为bin / debug。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.