Would there be any interest in adding a function to the assembly
function set to retrieve the physical location of an assembly by
(friendly or strong) name?

We have been testing the following function listed below
(assembly::get-location) to be able to compile against references in
the GAC, or to deploy PDB files to the GAC.

Please provide your feedback.  I don't want to upload a new function
that is in conflict with with vision of the assembly function-set.

Thanks,
Steve

---------------------------------
[Function("get-location")]
public static string GetLocation(string assemblyName)
{
    System.Reflection.Assembly assembly;
    string retVal = String.Empty;
            
    try
    {
        assembly =
System.Reflection.Assembly.LoadWithPartialName(assemblyName);
        retVal = assembly.Location;
    }
    catch {}
            
    return(retVal);
}
---------------------------------



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to