Список ошибок visual studio 2010

I’m cleaning up a project to get rid of all the warnings, but I can only see the first 100 or so in the Error List pane.

This is a problem because we’re using Team Server for source control and all the warnings shown are in files that are currently checked out (and therefore I can’t modify without making someone else possibly do a lot of work when they check in).

I’d like to be able to see the full list so I can continue my cleaning while others are working.


In case it makes a difference,

  • The project in question is a VB.NET web application (using the application model). It doesn’t seem that I can compile individual pages.
  • Environment is VS2010 Premium; I can get Ultimate on my machine if necessary.

asked Aug 18, 2010 at 16:46

Jon Seigel's user avatar

2

The full list of warnings should be visible in the output window. After building open the output window, switch it to the build output and you should have access to all errors emitted by the compiler.

Note: The compiler itself still has a hard limit on the number of errors it will report for a given project (true for both VB and C#). This cannot be overridden in Visual Studio or the command line.

answered Aug 18, 2010 at 16:48

JaredPar's user avatar

JaredParJaredPar

734k149 gold badges1243 silver badges1455 bronze badges

2

Can’t you temporarily locally do something similar to

#pragma warning disable 

in the files which are checked out by the others so you don’t have to see their warnings?

answered Aug 18, 2010 at 17:16

Andreas Brinck's user avatar

Andreas BrinckAndreas Brinck

51.3k14 gold badges84 silver badges114 bronze badges

1

In order for me to get the full list of warnings to appear in Visual Studio 2022, I had to use the Menu Bar at the top of the screen, clicking on: Analyse -> Run Code Analysis -> On Solution.

Without doing this, the warnings would only appear for the files that I had open in Visual Studio, rather than all warnings appearing for the whole solution.

answered Nov 30, 2022 at 15:08

samHumeniuk's user avatar

I’m cleaning up a project to get rid of all the warnings, but I can only see the first 100 or so in the Error List pane.

This is a problem because we’re using Team Server for source control and all the warnings shown are in files that are currently checked out (and therefore I can’t modify without making someone else possibly do a lot of work when they check in).

I’d like to be able to see the full list so I can continue my cleaning while others are working.


In case it makes a difference,

  • The project in question is a VB.NET web application (using the application model). It doesn’t seem that I can compile individual pages.
  • Environment is VS2010 Premium; I can get Ultimate on my machine if necessary.

asked Aug 18, 2010 at 16:46

Jon Seigel's user avatar

2

The full list of warnings should be visible in the output window. After building open the output window, switch it to the build output and you should have access to all errors emitted by the compiler.

Note: The compiler itself still has a hard limit on the number of errors it will report for a given project (true for both VB and C#). This cannot be overridden in Visual Studio or the command line.

answered Aug 18, 2010 at 16:48

JaredPar's user avatar

JaredParJaredPar

734k149 gold badges1243 silver badges1455 bronze badges

2

Can’t you temporarily locally do something similar to

#pragma warning disable 

in the files which are checked out by the others so you don’t have to see their warnings?

answered Aug 18, 2010 at 17:16

Andreas Brinck's user avatar

Andreas BrinckAndreas Brinck

51.3k14 gold badges84 silver badges114 bronze badges

1

In order for me to get the full list of warnings to appear in Visual Studio 2022, I had to use the Menu Bar at the top of the screen, clicking on: Analyse -> Run Code Analysis -> On Solution.

Without doing this, the warnings would only appear for the files that I had open in Visual Studio, rather than all warnings appearing for the whole solution.

answered Nov 30, 2022 at 15:08

samHumeniuk's user avatar

I have Win7 64 bits, Visual Studio 2010, and I have developed an Addin for Vs2010.

I try show messages in Error List Windows VS.
I use ErrorListProvider in OnBuildProjConfigDone build event for Addin

this._buildEvents.OnBuildProjConfigDone += new _dispBuildEvents_OnBuildProjConfigDoneEventHandler(_buildEvents_OnBuildProjConfigDone);

I get this error InvalidOperationException

The service ‘Microsoft.VisualStudio.Shell.Interop.IVsTaskList’ must be
installed for this feature to work. Ensure that this service is
available.

Connect

 public partial class Connect : IDTExtensibility2, IDTCommandTarget, System.Windows.Forms.IWin32Window, IOleCommandTarget

OnBuildProjConfigDone

void _buildEvents_OnBuildProjConfigDone(string project, string projectConfig, string platform, string solutionConfig, bool success)
{

// Omitted
 if (!resul)
 {
                project.DTE.ExecuteCommand("Build.Cancel");

                var errorListHelper = new ErrorListHelper();
                ErrorListProvider errorProvider = errorListHelper.GetErrorListProvider();
                var newError = new ErrorTask();
                newError.ErrorCategory = TaskErrorCategory.Message;
                newError.Category = TaskCategory.BuildCompile;
                newError.Text = "Cualquier mensaje de error aqui";
                errorProvider.Tasks.Add(newError);
 }
}      

ErrorListHelper

public class ErrorListHelper : System.IServiceProvider
{
    public ErrorListProvider GetErrorListProvider()
    {
        ErrorListProvider provider = new ErrorListProvider(this);
        provider.ProviderName = "Provider";
        provider.ProviderGuid = System.Guid.NewGuid();
        return provider;
    }

    public object GetService(Type serviceType)
    {
        return Package.GetGlobalService(serviceType);
    }
}

Suggestion by @JohnL: I put a breakpoint in my GetService method and Package.GetGlobalService is returning null.

Any suggestions?

  • Remove From My Forums
  • Question

  • I have been using Visual Studio 2010 Premium Edition for a week.

    It sometime crashes on opening up Solution (click it from Start Page).

    No specific error reported to user, it just want to restart. Once restarted it works fine.

    If possible I want to submit the error to MS for further investigation.

    Please let me know where can I find the error logs.

    Thanks in advance.

Answers

  • Hi Ferry,

    Based on your description, it seems that you want to get the log files when you run VS instance to troubleshoot the crash.

    To get Visual Studio and logs all activity to the specified log file when we apply Visual Studio products, we can issue «/log» option to run Visual Studio instance.
    Please go to Start menu >> Run >> type «Devenv.exe /log <log path>». Then the log files will be generated in the <log path>.
    For more information, please check:
    http://msdn.microsoft.com/en-us/library/ms241272%28VS.80%29.aspx
    http://blogs.msdn.com/saraford/archive/2005/10/20/483157.aspx

    Frankly speaking, for VS IDE crash issue, there would be many causes for it to happen.

    You might refer to my reply in the following thread to try some common steps for troubleshooting.
    Please check:
    http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/f425381b-de05-401b-8d03-37951dfab25a

    One quick way to check the root cause of crash issue, you could get the memory dump and report your issue to MSDN feedback site:
    http://connect.microsoft.com.

    Hope this helps. If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact
    msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

    • Marked as answer by

      Wednesday, April 21, 2010 11:04 AM

Помогаю со студенческими работами здесь

Необходимо определить, на какой строке находится каждое слово в textbox
в мультилайновом компоненте textbox напечатан текст.
Слова перенесены автоматически (не по \n!),…

Определить, в какой строке матрицы находится больше всего нулей
Нужно показать двухмерный массив А, который состоит из елементов 0 и 1, и указать в какой строке…

Найти наибольший элемент матрицы и указать, в какой строке он находится
1. Дан двумерный массив размером 16х16. Найти наибольший элемент и указать, в какой строке он…

Как в RichTextBox-е или TextBox-е определить в какой строке и столбце находится курсор?
Подскажите пожалуйста(по возможности примером), как в RichTextBox-е или TextBox-е определить в…

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

2

Понравилась статья? Поделить с друзьями:
  • Список ошибок carel
  • Список ошибок бмв е70
  • Список негрубых орфографических ошибок егэ фипи
  • Список логических ошибок
  • Список ошибок airbag