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

Notification

Icon
Error

Add NCrunch.Framework to NuGet
Rory.Adams
#1 Posted : Monday, February 13, 2012 9:27:53 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/23/2011(UTC)
Posts: 1
Location: South Africa

Thanks: 1 times
The NCrunch.Framework wiki page suggests copying NCrunch.Framework.dll from the GAC into the project's folder to prevent the build from breaking on machines that don't have NCrunch installed. While the solution works, it just doesn't feel right since NuGet was released; why not add the assembly to NuGet? It'll allow existing users to take advantage of NuGet features like automatic package restoration and update detection, and might catch the attention of potential new users browsing through the NuGet repo.

P.S. Thanks for an awesome plug-in ;)
Remco
#2 Posted : Monday, February 13, 2012 8:47:12 PM(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 Rory,

Thanks for posting! I've been considering placing this DLL under nuget. My main concern is that it needs to be versioned alongside the installation of NCrunch consuming it, otherwise many of the features activated by it may not actually work.

I'm glad your enjoying the tool :)
otac0n
#3 Posted : Wednesday, February 15, 2012 9:53:26 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/22/2011(UTC)
Posts: 51
Location: Seattle, WA

Was thanked: 7 time(s) in 7 post(s)
The same problem would arise when more than one person are sharing a solution as well, so I'm not sure how that affects the decision to use NuGet.
Remco
#4 Posted : Thursday, February 16, 2012 8:22:41 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)
You are absolutely correct. And giving more space for people to create version inconsistencies will only make this worse...

It may be the best solution would be to make the NCrunch.Framework code a bit smarter so that it can warn about version inconsistencies. I'll have a think about it.
otac0n
#5 Posted : Saturday, February 18, 2012 12:40:15 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/22/2011(UTC)
Posts: 51
Location: Seattle, WA

Was thanked: 7 time(s) in 7 post(s)
Respectfully, I don't see how putting the assemblies on NuGet "will only make this worse".

People "create version inconsistencies" by upgrading NCrunch to the next version, NOT by referencing a new Framework version. The framework version is only going to be updated when the NEW version of NCrunch stops working with the OLD Framework DLL. If you are trying to prevent inconsistencies altogether, the *only way* to do so is to stop releasing new versions.

If it were me, I would trust people to be able to keep NuGet packages in sync much more than I would trust them to manually manage DLLs by extracting them from the GAC.
1 user thanked otac0n for this useful post.
Remco on 2/18/2012(UTC)
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.038 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download