AmazedSaint.Elastic.Templating.DynamicTemplateHost.ResolveAssemblyReference C# (CSharp) Méthode

ResolveAssemblyReference() public méthode

The engine calls this method to resolve assembly references used in the generated transformation class project, and for the optional
public ResolveAssemblyReference ( string assemblyReference ) : string
assemblyReference string
Résultat string
        public virtual string ResolveAssemblyReference(string assemblyReference)
        {
            if (File.Exists(assemblyReference))
            {
                return assemblyReference;
            }
            string candidate = Path.Combine(Path.GetDirectoryName(this.TemplateFile), assemblyReference);
            if (File.Exists(candidate))
            {
                return candidate;
            }
            return "";
        }