Browse Source

References defined in a file template are now added along with their hintpath when adding a new file to a project.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3643 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 17 years ago
parent
commit
b4cc2ff514
  1. 1
      src/Main/Base/Project/Src/Internal/Templates/File/FileTemplate.cs

1
src/Main/Base/Project/Src/Internal/Templates/File/FileTemplate.cs

@ -269,6 +269,7 @@ namespace ICSharpCode.SharpDevelop.Internal.Templates @@ -269,6 +269,7 @@ namespace ICSharpCode.SharpDevelop.Internal.Templates
if (!reference.HasAttribute("include"))
throw new InvalidDataException("Reference without 'include' attribute!");
ReferenceProjectItem item = new ReferenceProjectItem(null, reference.GetAttribute("include"));
item.SetMetadata("HintPath", reference.GetAttribute("hintPath"));
requiredAssemblyReferences.Add(item);
}
}

Loading…
Cancel
Save