Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Hide Warnings - save in v3.ncrunchsolution
UppSol
#1 Posted : Monday, May 4, 2020 11:19:00 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/21/2019(UTC)
Posts: 39
Location: Austria

Thanks: 30 times
Was thanked: 7 time(s) in 7 post(s)
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
Remco
#2 Posted : Monday, May 4, 2020 11:32:31 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
1 user thanked Remco for this useful post.
UppSol on 5/4/2020(UTC)
Remco
#4 Posted : Monday, May 4, 2020 11:35:14 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
UppSol
#3 Posted : Monday, May 4, 2020 11:35:47 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/21/2019(UTC)
Posts: 39
Location: Austria

Thanks: 30 times
Was thanked: 7 time(s) in 7 post(s)
Remco;14693 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!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.040 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download