diff options
author | Matt Ward <matt.ward@xamarin.com> | 2017-05-11 14:27:53 +0300 |
---|---|---|
committer | Matt Ward <matt.ward@xamarin.com> | 2017-05-11 14:27:53 +0300 |
commit | 4de324da44d988886fd1a755bf9baacbdffb2381 (patch) | |
tree | ff1263322250078bd7e91c23d48f35dc6a9a3741 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates | |
parent | 7318c5397ace5bad0b99cd64bc946dd30a5c195b (diff) |
[Ide] Support template conditions in new templating engine
A condition can be assigned to a template which determines whether it
is used to create the project. The conditions are tested against the
parameters defined, usually by a template wizard, and the correct
template is used. This allows one template to be grouped with others
and depending on the parameters defined it can be selected.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/MicrosoftTemplateEngineSolutionTemplate.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/MicrosoftTemplateEngineSolutionTemplate.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/MicrosoftTemplateEngineSolutionTemplate.cs index 4961c5bde1..82660dc9a5 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/MicrosoftTemplateEngineSolutionTemplate.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/MicrosoftTemplateEngineSolutionTemplate.cs @@ -49,7 +49,7 @@ namespace MonoDevelop.Ide.Templates Language = string.Empty; GroupId = template.GroupId ?? templateInfo.GroupIdentity; //TODO: Support all this params - //Condition = template.Condition; + Condition = template.Condition; //ProjectFileExtension = template.FileExtension; Wizard = template.Wizard; //SupportedParameters = template.SupportedParameters; |