Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesRelease Build Hang with Christoc Visual Studio TemplatesRelease Build Hang with Christoc Visual Studio Templates
Previous
 
Next
New Post
10/20/2015 6:46 PM
 

I am posting this here, in case anyone else bumps into this problem. I lost a full day of productivity until I figured it out.

I have a very large DNN solution with multiple projects, all built based on the Christoc DNN  Visual Studio template. My issue only started happening after one particular project grew to a certain point. It would compile just fine in debug mode, but in release mode the build would hang almost immediately. The only way out of it was to kill the Visual Studio process, reboot, and then delete all of the temporary files and folders that were created by the msbuild script. 

These were all things that normally the build cleans up by itself after creating the _install and _source zip files, but when the build would hang all of those things (including multiple .tmp files) would be left behind. At least some of the files would also be deadlocked, and could not be deleted without a reboot.

After a full day of frustration and troubleshooting, I finally discovered that things were getting deadlocked during one of the zip directives in the msbuild script.  If you look at BuildScripts\ModulePackage.targets you will see several elements that are all similar to:

<zip files="@(ResourcesContent)" workingdirectory="$(MSBuildProjectDirectory)\ResourcesZip" zipfilename="Resources.$(Extension)" />

What I had to do to get my build working again was to turn off parallel compression in all of the zip directives, so I changed them to look like:

<zip files="@(ResourcesContent)" workingdirectory="$(MSBuildProjectDirectory)\ResourcesZip" zipfilename="Resources.$(Extension)" ParallelCompression="false" />

After adding that attribute to all four places, my build went back to working correctly.

I don't know what specifically caused the zip process to suddenly start deadlocking on my dev machine. I was able to open the exact same source code on another system and build without issue, even without adding that attribute to the msbuild script. Still, that is what fixed the problem on the affected machine.

So, for anyone who is banging their head against the wall trying to figure out why all of a sudden their build hangs with the (very excellent) Christoc templates, please give this a shot. I hope it works for you as well.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesRelease Build Hang with Christoc Visual Studio TemplatesRelease Build Hang with Christoc Visual Studio Templates


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out