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

Notification

Icon
Error

Console runner does not ignore database project
Nid_fr
#1 Posted : Friday, September 12, 2014 11:11:42 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/1/2014(UTC)
Posts: 5
Location: France

Hi,

I'm getting build errors on our database projects when running the console runner. Since they don't show up in the NCrunch configuration like other projects I can't fix the build errors, and I can't ignore them. Is there any way to avoid trying to build them when using the console runner ?

Cheers,

J.
Remco
#2 Posted : Friday, September 12, 2014 12:01:22 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi, thanks for sharing this issue.

The console runner loads projects straight off disk, where the VS extension will load projects out of the IDE's memory. It looks like the VS integration is managing to filter out the database projects, but the console runner won't know the difference until it tries to load them (and fails as you've described).

I'll need to have a look at how this can be resolved in the NCrunch code.

Meanwhile, a simple workaround is to manually create an NCrunch configuration file for each database project. If the configuration file has the 'IgnoreThisComponentCompletely' property set to 'true', the console runner won't try the load the project.

Just create a projectname.ncrunchproject file next to each of your database projects. Inside this file, add the following content:

<ProjectConfiguration>
<IgnoreThisComponentCompletely>true</IgnoreThisComponentCompletely>
</ProjectConfiguration>

Make sure the files are checked into your VCS. When the console tool next runs, it will then know to ignore the DB projects.
Nid_fr
#3 Posted : Friday, September 12, 2014 2:54:25 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/1/2014(UTC)
Posts: 5
Location: France

Thanks, that did the trick !
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.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download