Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How should I reference assemblies from another solution?

I have two scenarios:

  1. There is a Framework project for the company, and for all projects we are going to use this framework.

  2. There is a custom Framework project which is specific for a client and only some people in the company will ever need to use this DLL.

Both frameworks are stored in separated solutions on TFS.

How should one use the references for other projects? Should I put the both assemblies on GAC or something? Should I copy the output assembly manually? What is recommended, why and how I use it?

like image 934
BrunoLM Avatar asked Mar 05 '12 14:03

BrunoLM


People also ask

What are assembly references?

Reference assemblies are usually distributed with the Software Development Kit (SDK) of a particular platform or library. Using a reference assembly enables developers to build programs that target a specific library version without having the full implementation assembly for that version.


1 Answers

Custom framework

Copy the output assembly manually for the custom project unless you can include it's source directly in the solution.

Shared Framework

I would use nuget instead of GAC any time since you get rid of any versioning problems or having to create a separate installation package for framework (since you GAC)

It's easy to create a private nuget server. Simply create a new MVC3 project and install a the nuget server package: http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds

like image 122
jgauffin Avatar answered Oct 07 '22 12:10

jgauffin