From a305824d37c6062b6db3ecafbd320721edc58733 Mon Sep 17 00:00:00 2001 From: Justin Dearing Date: Wed, 16 May 2007 01:13:06 +0000 Subject: [PATCH] The debug compiler always reloads the template cache. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2519 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Src/Internal/Templates/Project/ProjectTemplate.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Main/Base/Project/Src/Internal/Templates/Project/ProjectTemplate.cs b/src/Main/Base/Project/Src/Internal/Templates/Project/ProjectTemplate.cs index d30b3667bb..9bafdd47a2 100644 --- a/src/Main/Base/Project/Src/Internal/Templates/Project/ProjectTemplate.cs +++ b/src/Main/Base/Project/Src/Internal/Templates/Project/ProjectTemplate.cs @@ -50,9 +50,15 @@ namespace ICSharpCode.SharpDevelop.Internal.Templates /// public static ReadOnlyCollection ProjectTemplates { get { + #if DEBUG + // Always reload project templates if debugging. + // TODO: Make this a configurable option. + LoadProjectTemplates(); + #else if (projectTemplates == null) { LoadProjectTemplates(); } + #endif return projectTemplates.AsReadOnly(); } }