Suppress warning without code
Asked Answered
D

1

21

I am trying to suppress some warnings in Visual Studio, but the problem is that they don't have a code or anything I could use to identify them(or I can't find it).

Most of these errors look like "The referenced component could not be loaded" or 'cannot find custom tool on this system'.

Both these type of errors appear on the Error List tab from visual studio, but they don't appear in the Output tab, where I could see their' code also.

If anyone could give me some tips about how to suppress them, would be great.

Douala answered 17/5, 2016 at 14:19 Comment(5)
The referenced component could not be loaded - check the Modules Window, Debug Menu > Windows > ModulesCesaria
custom tool... https://mcmap.net/q/661498/-vs-2008-custom-tool-problemDubonnet
Project Properties -> Build -> Suppress warnings. Try adding the warning text there.Lumper
Have you tried the SuppressMessageAttribute with just the warning text?Pussyfoot
Can you share a screenshot?Finicking
T
1

Check if there are referenced assemblies with yellow warning signs. If your code still compiles, you can remove these.

Threlkeld answered 16/11, 2023 at 9:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.