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



Configuration/UseBuildConfiguration not supported by console tool?
#1 Posted : Tuesday, May 09, 2017 5:38:24 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 284

Thanks: 40 times
Was thanked: 28 time(s) in 27 post(s)
[NCrunch Console Tool v3.6.0.2]

I'm trying to verify I am building in release mode, but nothing seems to work

C:\Code>ncrunch .\My.sln -Configuration Release
ERROR: Configuration setting 'Configuration' was not found

C:\Code>ncrunch .\My.sln -UseBuildConfiguration Release
ERROR: Project-level configuration setting 'UseBuildConfiguration' cannot be overridden using the command line

Am I missing something?

#2 Posted : Tuesday, May 09, 2017 11:28:03 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 587 times
Was thanked: 667 time(s) in 638 post(s)
Thanks for sharing this. I've just checked the handling here, and it looks like I designed the configuration override system to deliberately fail for all project-level settings.

I don't completely remember why it's been done this way. It seems like it would be useful to be able to override these. Perhaps there is a reason for it. I'll take a look at it in more detail and will get back to you. Assuming it's possible to fix it, this does mean that a fix would need to be in the next minor version.

To work around this, it should still be possible to hand in a configuration file that specifies the UseBuildConfiguration setting as a global default, though this will only work if no projects in the solution have specific values declared for UseBuildConfiguration.
1 user thanked Remco for this useful post.
GreenMoose on 5/10/2017(UTC)
Users browsing this topic
Guest (2)
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.018 seconds.