Build/Test Issues

v2.24 not coping referenced assemblies

Started by MikeWard on 9,449 views

Just upgraded from 2.23 to 2.24 and a bunch of tests are failing. It appears that some of the build assets are not being copied into the NCrunch workspace. It appears that "Copy referenced assemblies to workspace" is not working. If I roll back to 2.23 everything works.
Hi, thanks for sharing this issue.

Is there any pattern around which assets aren't being copied? Are these the referenced assemblies themselves, or are they resource/content files from the referenced projects? v2.24 introduced a targeted fix to solve an issue with 'Link' content resources that weren't being copied up dependency chains.. I hope this hasn't resulted in a regression of some kind.
I haven't dug deep into just yet but it appears to be referenced assemblies from referenced projects. I can't share the project with the issue but I think I can put something together to demonstrate the issue.
MikeWard wrote:I haven't dug deep into just yet but it appears to be referenced assemblies from referenced projects. I can't share the project with the issue but I think I can put something together to demonstrate the issue.


Thanks for offering to do that. I have a fairly extensive number of tests around the copying of referenced DLLs and as far as I can tell it seems to be working correctly, but it's possible that you have a use case that I'm unfamiliar with and has somehow been broken.

Edited

We have the same issue with 2.24. The test project references another project which has an XML file contained in a folder, with "Build Action" set to "Content" and "Copy to Output Directory" set to "Copy always". The XML file does not get copied. Everything worked fine in the previous version.
samlan wrote:We have the same issue with 2.24. The test project references another project which has an XML file contained in a folder, with "Build Action" set to "Content" and "Copy to Output Directory" set to "Copy always". The XML file does not get copied. Everything worked fine in the previous version.


Can you check whether the file has perhaps been copied to an unexpected place in your output directory?

The fix in 2.24 was intended to fix an issue where a resource file in a subdirectory was being copied into the root of the output directory, when it should actually have been copied into a subdir as per standard build logic.

At the moment I'm still having trouble reproducing any issues with files not being copied up the dependency chain. Any help you can provide in terms of a sample solution would really be a huge help.

Edited

Hello,

I have reproduced the bug and made a full solution zipped to help you debug out... i retained upgrading (and paying and upgrade fee) while this bug was around.

How can we share a zip file?
Just sent the zip file via the contact web form on this site: https://www.ncrunch.net/Support/Contact

Thanks
Thanks for taking the time to put this together and sending it through!

I've successfully reproduced the issue using your build and I have implemented a fix.

Would you be interested in trying the build below to see if this solves the problem for you?

http://downloads.ncrunch.net/NCrunch_Console_3.3.0.5.msi
http://downloads.ncrunch.net/NCrunch_Console_3.3.0.5.zip
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.3.0.5.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.3.0.5.zip
http://downloads.ncrunch.net/NCrunch_LicenseServer_3.3.0.5.zip
http://downloads.ncrunch.net/NCrunch_VS2008_3.3.0.5.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.3.0.5.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.3.0.5.zip
http://downloads.ncrunch.net/NCrunch_VS2012_3.3.0.5.msi
http://downloads.ncrunch.net/NCrunch_VS2012_3.3.0.5.zip
http://downloads.ncrunch.net/NCrunch_VS2013_3.3.0.5.msi
http://downloads.ncrunch.net/NCrunch_VS2013_3.3.0.5.zip
http://downloads.ncrunch.net/NCrunch_VS2015_3.3.0.5.msi
http://downloads.ncrunch.net/NCrunch_VS2015_3.3.0.5.zip
http://downloads.ncrunch.net/NCrunch_VS2017_3.3.0.5.msi
http://downloads.ncrunch.net/NCrunch_VS2017_3.3.0.5.zip
This post has been deleted.
Thank you! all works fine now...
Thanks, right now i cannot keep ncrunch V3.3 since my license was not able to go further v2.25...
Since i was stuck with v2.22 for a long time and not able to upgrade (because of that bug) is it possible to access some kind of price reduction for a new upgrade ?

Thanks in advance
Sorry, to use v3.3 you'll need to upgrade your license. I can't provide a discount on account of a technical fault like this.

Post a reply

Log in to reply.