开发者

Copy asset files to /Debug

开发者 https://www.devze.com 2022-12-20 16:37 出处:网络
Using VS 2008 I want to copy 开发者_如何转开发files in the project folder to the /Debug folder on each build.

Using VS 2008 I want to copy 开发者_如何转开发files in the project folder to the /Debug folder on each build.

How can you do that?

There's an answer for C# but it doesn't work for VC++ (xml parse error on project load)


Disclaimer: This works in .Net development.

In your solution explorer select the file you wish to have copied. Then in the properties panel under "Build action" select "Copy to output".

This should solve your problem.


It's a long time since I last used VC++, but I guess you still have possibility to define post-build steps, e.g. to copy files into the output folder (debug or release). Check the property page for your project ("Build Events") and you should be able to find it there.


Simply changing the settings for "Copy to output directory" should work. There are special cases, like embedding the thing (see this related question), but normally it should be just fine.

0

精彩评论

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

关注公众号