private void HandleAssemblyDirective([NotNull] IT4AssemblyDirective directive) { // i.e. non-empty if (!(directive.Path is T4PathWithMacros path)) { return; } ReferencedAssemblies.Add(path); }
private void HandleAssemblyDirective([NotNull] IT4AssemblyDirective directive) { // i.e. non-empty var existingPath = directive.ResolvedPath; if (!existingPath.ResolvedPath.IsNotEmpty()) { return; } ReferencedAssemblies.Add(existingPath); }
private static T4FailureRawData CreateError([NotNull] IT4AssemblyDirective directive) { var attribute = directive.GetFirstAttribute(T4DirectiveInfoManager.Assembly.NameAttribute); if (attribute == null) { return(T4FailureRawData.FromElement(directive, "Missing assembly name")); } string message = $"Unresolved assembly reference: {attribute.Value.GetText()}"; return(T4FailureRawData.FromElement(directive, message)); }
public FileSystemPath Resolve(IT4AssemblyDirective directive) => Resolve(directive.ResolvedPath);