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

Notification

Icon
Error

NCrunch does not honor CopyLocal settings in project file.
jimitndiaye
#1 Posted : Monday, May 27, 2013 10:30:11 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/27/2013(UTC)
Posts: 1
Location: United Kingdom

Hi I've got a CSPROJ with CopyLocal set to true for two reference assemblies and set to false for all others. When NCrunch creates its workspace version of the CSPROJ it removes all the <Private>false</Private> and <Private>true</Private> elements from the References, causing my build to fail. I'm using the assemblies that have been set to be locally copied to build a list of assemblies that are going to be merged into the main assembly. So when NCrunch messes up the copy settings the build fails. Editing the workspace CSPROJ to include the <Private> tags immediately fixes the problem but of course every time NCrunch creates a new workspace it will remove them.

Does anyone know of any workarounds for this problem?
Remco
#2 Posted : Monday, May 27, 2013 11:30:21 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi,

Thanks for sharing this issue. NCrunch currently doesn't acknowledge the Private properties as assigned to reference elements in the build script - I'll make a note to include a future fix for this.

I can't think of any workaround that will prevent NCrunch from removing these properties from the script, so I think the best option may be to look at other ways of the solving the problem (i.e. making sure the right files get copied). Would it be possible to rig up a post-build event that automatically deletes any of the files you don't want to have in the build output directory? If you set the Copy referenced assemblies to workspace setting to TRUE for the project in question, NCrunch will by default copy ALL referenced assemblies into the output directory, and you can then delete the ones you don't want to include in the merge process by using the post-build event.
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.025 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download