简体   繁体   中英

How to manage files common to release and build in VS C# Express?

I have a C# Console app in VS C# Express 2008. The program needs to read a few files at runtime, which I would like to place in the same directory as the .EXE for convenience. But of course there are two .EXEs, one debug and one release, and I don't want to copies of everything. What's the best way to manage this?

You could just change the output path of both configurations to use just 'bin\\'.

-- or --

You could add the files to the project, right-click, and set "Copy to Output Directory" to "Always"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM