# Additional reference

**URL:** https://www.finalbuilder.com/forums/t/additional-reference/834
**Category:** Discussion
**Created:** [May 5, 2008, 2:35am UTC](https://www.finalbuilder.com/forums/t/additional-reference/834 "2008-05-05T02:35:08Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![utveckling](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/u/c6cbf5/32.png) [@utveckling](https://www.finalbuilder.com/forums/u/utveckling)
#### Post date: [May 5, 2008, 2:35am UTC](https://www.finalbuilder.com/forums/t/additional-reference/834/1 "2008-05-05T02:35:08Z")

</div>

When we were using team build we could use AdditionalReference to specify additional paths, but I cannot seem to get that to work using FinalBuilder. I have created a new build type from Team Explorer and when I try to build it complains about missing references. I then added a AdditionalReferencePath tags to the TFSBuild.proj as we did before but it doesn't seem to take.

Regards,

Magnus Haggren

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [May 8, 2008, 2:09am UTC](https://www.finalbuilder.com/forums/t/additional-reference/834/2 "2008-05-08T02:09:32Z")

</div>

Hi Magnus,   
  
 Thanks for your post. Sorry it’s taken us a couple of days to get back to you.   
  
 Probably the best way to supply additional references is to use an MSBuild Project action in your FinalBuilder project. You can use the MSBuild Project action to build your solution files, and then supply a ReferencePath property to let it know where to find dependency assemblies.   
  
 To configure this, add an MSBuild Project action, set the “Project File” path to match your Visual Studio solution. On the Project Properties tab, add a property with name “ReferencePath” and set the value to a semicolon-delimited list of extra paths to check, ie   
  
 C:\Build\Project A References;C:\Build\Project B References   
  
  
 We’ll see if we can add a “ReferencePaths” option to the Build [VS.NET](http://VS.NET) Solution action, so you don’t need to use the MSBuild Project action to add this information.   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

### Author: ![haggy](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@haggy](https://www.finalbuilder.com/forums/u/haggy)
#### Post date: [May 14, 2008, 8:19am UTC](https://www.finalbuilder.com/forums/t/additional-reference/834/3 "2008-05-14T08:19:09Z")

</div>

Hi   
  
 I got same problem here.   
  
 My Projectes are referencing some assemblines like “…\lib\my.dll” and Finalbuilder isn’t able to solve this. May I solve this problem by giving final builder extra commandline args?

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [May 15, 2008, 1:02am UTC](https://www.finalbuilder.com/forums/t/additional-reference/834/4 "2008-05-15T01:02:49Z")

</div>

Hi Boas,   
  
 Is this in the “HintPath” section for referenced assemblies (which can be seen when you select the Assembly reference and click the Properties tab in Visual Studio)? If so, these paths are (by default) set as relative paths.   
  
 If they are not correct when your build runs, then you can use the ReferencePath property (as described above) to add one or more extra directories to search for the referenced assemblies. You only need to do this for any assemblies which are not found by using the HintPath.   
  
 We actually have a test build coming out which supports ReferencePaths directly in the Build [VS.NET](http://VS.NET) Solution action (instead of having to use the MSBuild action.) Let me know if you’d like me to post a download link.   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [May 15, 2008, 1:36am UTC](https://www.finalbuilder.com/forums/t/additional-reference/834/5 "2008-05-15T01:36:57Z")

</div>

For reference, the standard list of search paths which MSBuild/VS2005/VS2008 use to find assembly references looks something like this (in order):   
  
- Files from the current project.  
  
- ReferencePath property. A list of directories (as mentioned above.) This list is normally set under "Reference Paths" in Visual Studio, but can be overridden.   
  
- HintPath for the referenced assembly (as mentioned above.)   
  
- Framework Directory for the framework you're building against.  
  
- Any directories found in the registry under HKEY\_LOCAL\_MACHINE\Software\Microsoft\.NETFramework\\AssemblyFoldersEx   
  
- Registered Assembly Folders (AssemblyFolders property.)  
  
- GAC (Global Assembly Cache, strong named assemblies only.)   
  
- Current directory .  
  
- Output directory for the project .

---

<div class="post-metadata">

### Author: ![utveckling](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/u/c6cbf5/32.png) [@utveckling](https://www.finalbuilder.com/forums/u/utveckling)
#### Post date: [May 15, 2008, 7:21am UTC](https://www.finalbuilder.com/forums/t/additional-reference/834/6 "2008-05-15T07:21:54Z")

</div>

Angus,   
 I would like to try the test build if possible. Then I would not need to convert our script to use MSBuild instead of Build [VS.net](http://VS.net) Solution.   
  
 Thanks,   
 Magnus

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [May 15, 2008, 8:19am UTC](https://www.finalbuilder.com/forums/t/additional-reference/834/7 "2008-05-15T08:19:15Z")

</div>

Of course:   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/600/FB600\_671.exe](https://www.finalbuilder.com/downloads/finalbuilder/600/FB600_671.exe)   
  
 We added a variety of the common MSBuild options to the Build [VS.NET](http://VS.NET) Solution action. If you need to supply any custom properties, there is an option for that as well. The help topic for the action should explain anything you need to know.   
  
 Please let us know how you go.

---

<div class="post-metadata">

### Author: ![utveckling](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/u/c6cbf5/32.png) [@utveckling](https://www.finalbuilder.com/forums/u/utveckling)
#### Post date: [May 15, 2008, 8:46am UTC](https://www.finalbuilder.com/forums/t/additional-reference/834/8 "2008-05-15T08:46:00Z")

</div>

Angus,   
 That worked well. I can now build our solution with additional references. Thanks!   
  
 /Magnus
