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 6748461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:34:04+00:00 2026-05-26T12:34:04+00:00

Having a bit of an issue here. I’m creating an application in Visual Studio

  • 0

Having a bit of an issue here. I’m creating an application in Visual Studio 2010 in C# (Windows Forms).

The UI is going to be done in a WebBrowser (so I can use jQuery goodness and for ease of development).

For this I want to create a folder called HTML which will store all my HTML files and my javascript files.

My colleague tells me to create the folder separately and copy and paste into the compiled application directory referencing the files using: System.AppDomain.CurrentDomain.BaseDirectory.ToString() + "HTML\\FirstPage.htm" etc…

This seems strange to me. His argument is sound – if you need to edit/change anything then you don’t need to open your VM (we’re on Macs) open Visual Studio, edit, recompile, redistribute etc you just open the HTML files in the application directory. (my argument to this was that its just not that much extra work!)

I can see problems coming when different versions of the HTML files start getting mixed up and such, and to me it feels more “right” to compile the files directly as resources – OR… at least have them as files within the project explorer in Visual Studio.

So my question is: What would be the best way to do this? Would it be best to compile the HTML files as resources (and how would I do that? I’m very new to all this)? Or would it be better to do it the way my colleague said? If so is there a way to get Visual Studio to automatically copy the latest version of the files into the application directory at build time?

Thanks a lot.

  • 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-26T12:34:04+00:00Added an answer on May 26, 2026 at 12:34 pm

    No need for resources, they are far less manageable.

    Easiest solution will be to add the folder with all the files to the project, and then, in their properties set:

    Build Action = Content
    Copy to Output Directory = Copy if newer

    That’s it!
    Now whenever you compile your project, all these files would be updated with the latest version.

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

Sidebar

Related Questions

hello fellow java developers. I'm having a bit of an issue here. I have
I'm having a strange issue here, i have this bit of code: <?php if
I'm having a bit of an issue here switching between my view controllers. I
Ok, so here's a bit of code. I'm having an issue where I want
Ok so im having a bit of an issue here. basically Im reading shared
Ok. I'm having an issue with the following bit of code: StreamReader arrComputer =
Having a bit of a problem creating an instance of an object. Bear in
I'm having a bit o' trouble... Here is my mappings.xml file... <?xml version=1.0 encoding=utf-8?>
I'm having an issue when calling 32 bit Delphi DLL files from a C#
Having a bit of trouble wrapping my head around Qtimer this morning. Here's the

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.