简体   繁体   English

如何确保将文件从我的工作目录复制到bin / Debug rsp中。斌/释放?

[英]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.

相关问题 使用bin \\ Release中的文件进行部署 - Deploy with files from bin\Release Bin / Debug和Bin / Release之间的区别 - Difference between Bin/Debug and Bin/Release .gitignore和Visual Studio项目:忽略bin / Debug目录,但不忽略bin / Release目录 - .gitignore and Visual Studio project: Ignore bin/Debug directory but not bin/Release directory 为什么即使编译时没有引用任何库,也会将dll文件复制到项目的Bin / Debug文件夹中? - why are there dll files copied to my project's Bin/Debug folder upon compilation despite not referencing any of those libraries? 为什么 contentFiles 文件夹中的文件没有被复制到 bin 文件夹中? - Why are the files from the contentFiles folder not getting copied over to the bin folder? 为什么我的 bin 发布目录中有 System.*.* dll? - Why are there System.*.* dlls in my bin release directory? 如何从WebApp访问bin / Debug(ConsoleApp)? - How to access bin/Debug (ConsoleApp) from WebApp? 不需要的文化特定 dll 复制到 bin 目录 - unwanted culture specific dlls copied to bin directory 将“目标计算机上的文件系统”复制到bin / Debug和bin / Release - Copy “Filesystem on Target Machine” to bin/Debug and bin/Release 如何设置MyPackage.targets文件以将所有dll添加到bin / debug或bin / Release文件夹中? - How to set up MyPackage.targets file to add all dll's into the bin/debug or bin/Release folder?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM