Daily Usage Issues

Hide Warnings - save in v3.ncrunchsolution

Started by UppSol on 2,335 views

Hi, is there a way so "suppress" this warning and save this "hide/suppress warning" in the solution config file (v3.ncrunchsolution)

This is just a sample for any warning I want to "suppress"

This project has been configured to include additional files in the NCrunch workspace using the 'Additional files to include' setting, but at least one expression used to include files returned nothing.

The following expressions returned no files:
**.config


Click here to hide this warning

Edit:
Is it OK to add this to the v3.ncrunchsolution file?
<HiddenComponentWarnings>
<Value>UnnecessaryFileIncludeWarning</Value>
</HiddenComponentWarnings>


Br

Edited

Hi, thanks for posting.

Right now we have two types of warnings that are shown:

Global warnings (things that are not attached to a project): These are stored in your NCrunch global configuration file under your windows user profile in the 'HiddenGlobalWarnings' XML field.

Project warnings (like the one you're seeing): These are stored in the project's configuration file (i.e. project.v3.ncrunchproject) inside the 'HiddenComponentWarnings' XML field.

In theory, if you hide the warnings then check in your project configuration files, you won't see them again.
Adding the hidden component warnings to the NCrunch solution configuration file may yield unintended results.

Config settings are usually designed to inherit, but this one isn't. It might work, but then it may get cleared out by other hidden warnings if you add them at project level. Basically it's untested. The NCrunch UI has no concept of warnings hidden at a solution level.
Remco wrote:Hi, thanks for posting.

Right now we have two types of warnings that are shown:

Global warnings (things that are not attached to a project): These are stored in your NCrunch global configuration file under your windows user profile in the 'HiddenGlobalWarnings' XML field.

Project warnings (like the one you're seeing): These are stored in the project's configuration file (i.e. project.v3.ncrunchproject) inside the 'HiddenComponentWarnings' XML field.

In theory, if you hide the warnings then check in your project configuration files, you won't see them again.



O.K but I have to add this "hide" config to every .project.v3.ncrunchproject and not only one time in the v3.ncrunchsolution.
I just wanted to be sure that I don't add it over and over again instead of just add it in a central(one) place.

But it's absolutely OK for me, thx!

Edited

Post a reply

Log in to reply.