开发者

How to ensure that files are copied from my working directory into bin/Debug rsp. bin/Release?

开发者 https://www.devze.com 2023-02-12 13:50 出处:网络
I have various files in my Visual Studio Solutions that have to be copied to the bin/Debug fo开发者_JAVA百科lder if I change it.

I have various files in my Visual Studio Solutions that have to be copied to the bin/Debug fo开发者_JAVA百科lder if I change it.

I tried to set Copy to Output Directory - Copy always but it doesnt work. So how can i make sure that when building these files are copied to bin/debug?

Here a screenshot from one example:

How to ensure that files are copied from my working directory into bin/Debug rsp. bin/Release?


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.


Are you using the Debug profile? The build section of your properties has an output path which is set to bin/debug if you are using this profile.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号