Pregunta

I use several custom tools during the build process, mostly code generators for service references, T4 templating, and the like.

When these produce errors or warnings, they show up in the Error List window as expected. However, if I do a build, rebuild, or clean of some portion of the solution that does not touch upon the errors produced previously (say I'm not building a project that has a service reference import failure), the old list is still displayed.

Is there a way to fix that: Tool, plugin, build action, anything? I don't want to ignore the errors/warnings, only want the relevant ones to show based on what I'm doing. If not I guess this would be a request for the VS team.

¿Fue útil?

Solución

Closing and re-opening the project is the only way to clear the list. From what I can tell and the research I've done, the error/warnings window is like a session log for the project. Once you close the project the log is deleted.

Otros consejos

Cleaning the solution does it as well. Clear the error list in Visual Studio

You can also unload and reload the project also. That's what works for me.

On the error list window in VS2015 there's a drop down that defaults to Build + IntelliSense switching this to Build Only fixed my issues (opening dlls via resharper and VS going crazy over it)

I'm in VS 2013, writing reports. I tried all the above steps (Clean Solution/Close solution/Reopen Solution). Still had 3 errors in there 2 of which were from a 2 other reports that were not even opened. The steps above didn't work.

What I had to do was redo those steps AND close VS 2013 & reopen it. THAT fixed it. One would think by simply closing/reopening the solution, it would fix it. But restarting VS was the only way to fix it for me.

If you work with multiple projects in one solution in VS2012, a filter by current project works well. You select your project in solution explorer and you get the list with the errors that belong to the selected project only.

enter image description here

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top