ASP.NET + C# Multi-Project Solution. Where should I put my global utility functions?
.net, asp.net, c#, scope, variables
Solution
The best way of doing this is to create a dll project (maybe called something like "CommonCode"?), that you can then reference this dll from all of your other projects and access the classes and methods therein.
You will have to have some sort of "qualifier" (as you call it) somewhere, but to reduce the impact use the using statement at the top of each file, e.g.
using util;
Problem
As the Title says, I've got a multi-project solution. I've got a "core" project that is loaded with most of the other projects. So my question is this, I have a few utility functions such as FormatPhoneNumber(..) that I would like to be able to access in the following manner from anywhere. (in Project_B which depends on Core) ``` string str = FormatPhoneNumber(inputString); ``` At worst, I suppose I could live with a qualifier of some sort: ``` string str = util.FormatPhoneNumber(inputString); ```