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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:36:28+00:00 2026-05-10T22:36:28+00:00

I have included a resource in my Visual Studio 2005 solution that was a

  • 0

I have included a resource in my Visual Studio 2005 solution that was a file on the hard drive. It is a text file, that contains text, and has a .htm extension.

For months it worked fine, until I wanted to edit the contents of the text file. Suddenly Visual Studio insists on syntax checking the file as though it were an HTML file – when it is not.

i would really rather not workaround this bug in Visual Studio by forcing the file to be named:

SomeFilename.htm.VSbug.doNotRemove 

rather than

SomeFilename.htm 

Not everything that uses the file is Visual Studio, and it would be a shame to force everyone to change because of issues with Visual Studio.

Even more to the point – what did i originally do so that VS would (correctly) ignore randomly added text files – and how do i do that again?


Update One

Since some people are, of course, curious – here is the contents of the file:

SomeFilename.htm

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN'     'http://www.w3.org/TR/html4/strict.dtd'>  <HTML> <HEAD>     <TITLE>New Document</TITLE>     <META http-equiv='X-UA-Compatible' content='IE=edge'>     <META http-equiv='Content-Type' content='text/html; charset=UTF-8'>  </HEAD>  <BODY style='margin: 0 auto'>     <DIV style='text-align:center;'>         <A href='%PANELLINK%' target='_blank'><IMG border='0' src='%PANELIMAGE%' style='%IMAGESTYLE%'></A><BR>         %CAPTIONTEXT%     </DIV> </BODY> </HTML> 

As you can see, the file does not contain html. Don’t forget – the file’s contents are beside the point.


Answer

Editing the file through Visual Studio is what triggers Visual Studio to think it has some jurisdiction over the contents of the resource file.

Deleting the file and re-adding it, as well as only editing the resource text file outside of VS, ensures that VS will not try to parse the file’s contents.

  • 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. 2026-05-10T22:36:29+00:00Added an answer on May 10, 2026 at 10:36 pm

    This obviously begs the question – why do you use a wrong file extension on a system, where file type is determined by these extensions?

    Sorry, the answer is of course wrong. I was pretty sure I had done it that way already. Still, I think the above comment is still valid, even if not applicable universally. Marking the answer “offensive” is just rude and doesn’t change that.

    However, your problem can be solved relatively easily. Instead of opening the file through double-click, you can right-click it and choose “Open with …” in its context menu. There you can select the text editor.

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

Sidebar

Ask A Question

Stats

  • Questions 71k
  • Answers 71k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Yes it's possible, but AFAIK only via Reflection. The following… May 11, 2026 at 1:28 pm
  • added an answer From the SVN book (emphasis added): The perceptive reader is… May 11, 2026 at 1:28 pm
  • added an answer Are you sure that char is signed? Try declaring the… May 11, 2026 at 1:28 pm

Related Questions

No related questions found

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.