From 8bd159545cf3e8000d357f24369e42cc72e50b15 Mon Sep 17 00:00:00 2001 From: Mathias Simmack Date: Thu, 27 Oct 2005 09:55:17 +0000 Subject: [PATCH] support for DependentUpon and SubType attributes in XPT project templates added (see the Avalon* templates for a working demo) git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@638 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../project/CSharp/AvalonApplication.xpt | 4 ++-- .../CSharp/AvalonNavigationApplication.xpt | 4 ++-- .../Templates/File/FileDescriptionTemplate.cs | 22 +++++++++++++++++++ .../Templates/Project/ProjectDescriptor.cs | 6 +++++ 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/data/templates/project/CSharp/AvalonApplication.xpt b/data/templates/project/CSharp/AvalonApplication.xpt index 7005cc39a8..c85a476af1 100644 --- a/data/templates/project/CSharp/AvalonApplication.xpt +++ b/data/templates/project/CSharp/AvalonApplication.xpt @@ -50,7 +50,7 @@ ]]> - ]]> - ]]> - ]]> - 0) { projectFile.CopyToOutputDirectory = (CopyToOutputDirectory)Enum.Parse(typeof(CopyToOutputDirectory), file.CopyToOutputDirectory); } + if (file.DependentUpon.Length > 0) { + projectFile.DependentUpon = file.DependentUpon; + } + if (file.SubType.Length > 0) { + projectFile.SubType = file.SubType; + } projectFile.Include = FileUtility.GetRelativePath(project.Directory, fileName);