Hide Errors from Visual Studio 2005 Error List

Last post 10-02-2008 2:33 PM by svdoever. 3 replies.

Sort Posts:

  • Hide Errors from Visual Studio 2005 Error List

    03-11-2008, 6:41 PM
    • Member
      487 point Member
    • iffypop
    • Member since 02-14-2007, 1:12 AM
    • London!
    • Posts 96

    Hi,

    In Visual Studio, I have various items in my error list such as:

     

    • Error    20    File 'images/myIcon16.gif' was not found.   

     

     

    Actually, that path is correct - the error doesnt stop my project from building, but it is annoying me, and I want to hide these kind of errors from the list. How can I choose what to show/hide in the errors list?

     
     

    Ta

    Chris.

     

  • Re: Hide Errors from Visual Studio 2005 Error List

    03-12-2008, 4:36 PM
    Answer
    • Member
      180 point Member
    • ripjet69
    • Member since 03-05-2008, 4:04 PM
    • Posts 25
    iffypop:

    Hi,

    In Visual Studio, I have various items in my error list such as:

     

    • Error    20    File 'images/myIcon16.gif' was not found.   

     

     

    Actually, that path is correct - the error doesnt stop my project from building, but it is annoying me, and I want to hide these kind of errors from the list. How can I choose what to show/hide in the errors list?

     
     

    Ta

    Chris.

     

    I've found that closing the aspx source file when I compile will remove any html errors from the error list. This is not a fix but it helps hide the html errors until I get time to research the problem more.
    We have not because we seek not!
  • Re: Hide Errors from Visual Studio 2005 Error List

    07-17-2008, 8:27 AM
    • Member
      2 point Member
    • yigiterol
    • Member since 07-17-2008, 12:21 PM
    • Posts 1

    You should include the image file into your project as a content file.

  • Re: Hide Errors from Visual Studio 2005 Error List

    10-02-2008, 2:33 PM
    • Member
      4 point Member
    • svdoever
    • Member since 11-10-2003, 11:04 PM
    • Amsterdam
    • Posts 2

    From the blog post: http://neilkilbride.blogspot.com/2007/10/visual-studio-error-list-html-errors.html.

     Nothing annoys me more on a Friday afternoon than the Visual Studio Error List rearring its ugly head and popping up with errors (often irrelevant ones) about the HTML markup.

    So after playing about with settings and poking around the interweb I found you can either just close all the HTML (or aspx) files you are working on (as it only critises open document's markup) or you can tell Visual Studio to ignore the errors by unchecking:

    Tools > Options > Text Editor > HTML > Validation > Show errors

    Please, no comments about using the correct validation target, actually fixing the errors or conforming to how Visual Studio wants me to do everything - it's my party and I'll do what I want :P

     

    Regards,

     

    Serge van den Oever
    http://weblogs.asp.net/soever

Page 1 of 1 (4 items)