Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@xamarin.com>2017-05-11 14:27:53 +0300
committerMatt Ward <matt.ward@xamarin.com>2017-05-11 14:27:53 +0300
commit4de324da44d988886fd1a755bf9baacbdffb2381 (patch)
treeff1263322250078bd7e91c23d48f35dc6a9a3741 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates
parent7318c5397ace5bad0b99cd64bc946dd30a5c195b (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.cs2
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;