GAC based Build

Feb 8, 2011 at 10:02 AM

how can i make the nubuild refer the gac version for build process - Need to pull specific version

Mar 3, 2011 at 2:37 PM

I believe .Net Runtime locates and resolves an assmebly reference automatically by looking in the GAC.  Here's the article - So you should not have to do anything special

But if you still want to have some fine grianed control here's what you can do - You need to look at the methods that cleans up the "HintPath". NUBuild detects all various types of hintpath and cleans them and replaces them with proper file hint. Here is the outline of what you need to do to overide it with a GAC reference:

  1. Identify how the hintpath is represented in the project structure for referenced DLLs which ar ein GAC
  2. Provide a seprate list of GAC assemblies. The idea is similar to Proxy assemblies. This list should be configurable and initlaized and loaded into memory at startup
  3. When cleaning up hintpaths,detect if the reference is a GAC or not. If yes and its in the GAC exclusion list (#2) then leav it alone

Hope this helps.