In my C # client application, I use XSLT to convert XML to HTML.
I would like to be able to edit these files in place without recompiling the whole solution. I'm having trouble developing how to configure Visual Studio 2008 to resolve this.
The problem is that XSLT files must somehow be copied to the output directory. This is currently happening during the build process. (My XSLT files have the value "copy if newer".) The build process can take several minutes, which seems excessive for small changes to the HTML.
I could make changes to XSLT in the output directory, but the output directory is not under source control. I accidentally destroyed my quick changes several times by building my solution.
I would like to reduce the cycle time for debugging XSLT by keeping XSLT files under source control and preventing accidental overwriting.
Summary of answers: It seems that the most practical approach to solving this problem - given that Visual Studio does not have a pleasant way to do this out of the box - is to create a separate project containing content files. These files are copied to the output location when creating the project. That way, I don't need to compile the whole solution, just one project with all the static information like XSLT, CSS, images, etc.
Several people suggested using synchronization or batch copying tools, but for now it will work for me personally, setting it up for other team members will also be a lot of additional work.
visual-studio xslt
dthrasher
source share