Reputation: 1135
I have a C# solution in Visual Studio 2008. I have added a configuration file (called configuration.xml) to the "Solution Items" of the solution.
The idea is to have this file copied to each Project's debug/release directory upon build. How can I achieve this?
Upvotes: 3
Views: 774
Reputation: 12328
You could also add the file as a link to each project (see this answer.) This is often easier to see than looking at the project properties for a post-build step.
Upvotes: 2
Reputation: 9391
In the post build step for each of your projects add the following line
copy /Y $(SolutionDir)/configuration.xml $(ProjectDir)
If your configuration file is in a solution subdirectory you have to add that to the source path of course.
Upvotes: 4