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 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:
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.
精彩评论