From b4cc2ff5140223469f2d21828e6d88a39dec8efe Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Thu, 20 Nov 2008 21:30:55 +0000 Subject: [PATCH] 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 --- .../Base/Project/Src/Internal/Templates/File/FileTemplate.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Main/Base/Project/Src/Internal/Templates/File/FileTemplate.cs b/src/Main/Base/Project/Src/Internal/Templates/File/FileTemplate.cs index 48b7bf9f54..48055768ad 100644 --- a/src/Main/Base/Project/Src/Internal/Templates/File/FileTemplate.cs +++ b/src/Main/Base/Project/Src/Internal/Templates/File/FileTemplate.cs @@ -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); } }