Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 494739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:31:33+00:00 2026-05-13T05:31:33+00:00

In my C# client application, I use XSLT to transform XML into HTML. I

  • 0

In my C# client application, I use XSLT to transform XML into HTML.

I would like to be able to edit these files in place, without having to recompile the entire solution. I’m having trouble working out how to set up Visual Studio 2008 to allow this.

The problem is that the XSLT files must get copied to the output directory somehow. Currently this happens during the build process. (My XSLT files are set to “copy if newer”.) The build process can take a few minutes, which seems excessive for making small tweaks to the HTML.

I could make my XSLT edits in the output directory itself, but the output directory is not under source control. I have accidentally wiped out my quick edits several times by building my solution.

I’d like to reduce the cycle time for debugging XSLT, while keeping my XSLT files under source control and preventing accidental overwrites.

Summary of Responses: It appears that the most practical approach for solving this problem — given that Visual Studio doesn’t have a nice way of doing it out of the box — is to create a separate project that contains the content files. These files get copied to the output location when the project gets built. That way I don’t have to compile the whole solution, just the one project with all the static information like XSLT, CSS, images, etc.

Several folks suggested using sync or batch copy tools, but while this would work for me personally, setting it up for the other members of the team too would be a lot of extra work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:31:33+00:00Added an answer on May 13, 2026 at 5:31 am

    I am not entirely clear about your question, but you can instruct Visual Studio to copy the file from the solution to the output folder every time that you build.

    Let me try to understand your scenario:

    • You have the XSLT files checked into source control along with your C# code. For example, if your project is in a folder called MyProj, then the XSLT files reside in MyProj/Templates
    • You want to be able to edit the xslt files in the Templates folder and submit those changes to source control just like you do with .cs or other files in your project.
    • You want a copy of your xslt files in the bin/Debug or bin/Release folder along with your executable.

    If that is the case, add the XSLT files to your Visual Studio project. Then right click on them, open Properties, and set “Build Action” = “Content” and “Copy to Output Directory” = “Always”. Whenever you build your project, the latest copy of the XSLT files will be placed in your bin/Debug or bin/Release directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.