Reputation: 606
In item's properties there is Copy to Output Directory option which copies a file after build. However the files I want to copy to output are very often data that can be reloaded by the program dynamically at runtime so I would like to be able to replace them on every save during debugging, while still keeping them in solution explorer.
What is the easiest way to do this?
I imagine few option
Upvotes: 0
Views: 140
Reputation: 27930
I have a sample extension for Visual Commander demonstrating how to hook the save event in Visual Studio: Run Cppcheck on the saved file.
So, you just need to add a filter condition to the OnDocumentSaved method and copy the saved file to the output directory.
Upvotes: 1