From 972cd1cfd71f2a208ee2ff774390e2b6e766be80 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Thu, 14 Nov 2024 18:27:08 -0800 Subject: [PATCH] Add avalonia constrains on item tempaltes --- .../templatedcontrol/.template.config/template.json | 8 +++++++- .../csharp/usercontrol/.template.config/template.json | 8 +++++++- templates/csharp/window/.template.config/template.json | 8 +++++++- .../templatedcontrol/.template.config/template.json | 8 +++++++- .../fsharp/usercontrol/.template.config/template.json | 8 +++++++- templates/fsharp/window/.template.config/template.json | 8 +++++++- .../resource-dictionary/.template.config/template.json | 8 +++++++- templates/styles/.template.config/template.json | 8 +++++++- 8 files changed, 56 insertions(+), 8 deletions(-) diff --git a/templates/csharp/templatedcontrol/.template.config/template.json b/templates/csharp/templatedcontrol/.template.config/template.json index a21c8803..ae369feb 100644 --- a/templates/csharp/templatedcontrol/.template.config/template.json +++ b/templates/csharp/templatedcontrol/.template.config/template.json @@ -48,5 +48,11 @@ }, "continueOnError": true } - ] + ], + "constraints": { + "Avalonia": { + "type": "project-capability", + "args": "Avalonia" + } + } } \ No newline at end of file diff --git a/templates/csharp/usercontrol/.template.config/template.json b/templates/csharp/usercontrol/.template.config/template.json index 27b5d423..2c73cf67 100644 --- a/templates/csharp/usercontrol/.template.config/template.json +++ b/templates/csharp/usercontrol/.template.config/template.json @@ -48,5 +48,11 @@ }, "continueOnError": true } - ] + ], + "constraints": { + "Avalonia": { + "type": "project-capability", + "args": "Avalonia" + } + } } \ No newline at end of file diff --git a/templates/csharp/window/.template.config/template.json b/templates/csharp/window/.template.config/template.json index e121439b..51152689 100644 --- a/templates/csharp/window/.template.config/template.json +++ b/templates/csharp/window/.template.config/template.json @@ -48,5 +48,11 @@ }, "continueOnError": true } - ] + ], + "constraints": { + "Avalonia": { + "type": "project-capability", + "args": "Avalonia" + } + } } \ No newline at end of file diff --git a/templates/fsharp/templatedcontrol/.template.config/template.json b/templates/fsharp/templatedcontrol/.template.config/template.json index 424ab4f1..8bf8c1ee 100644 --- a/templates/fsharp/templatedcontrol/.template.config/template.json +++ b/templates/fsharp/templatedcontrol/.template.config/template.json @@ -48,5 +48,11 @@ }, "continueOnError": true } - ] + ], + "constraints": { + "Avalonia": { + "type": "project-capability", + "args": "Avalonia" + } + } } \ No newline at end of file diff --git a/templates/fsharp/usercontrol/.template.config/template.json b/templates/fsharp/usercontrol/.template.config/template.json index dcc73f62..1bf146b9 100644 --- a/templates/fsharp/usercontrol/.template.config/template.json +++ b/templates/fsharp/usercontrol/.template.config/template.json @@ -48,5 +48,11 @@ }, "continueOnError": true } - ] + ], + "constraints": { + "Avalonia": { + "type": "project-capability", + "args": "Avalonia" + } + } } \ No newline at end of file diff --git a/templates/fsharp/window/.template.config/template.json b/templates/fsharp/window/.template.config/template.json index 8096bef9..504dea6d 100644 --- a/templates/fsharp/window/.template.config/template.json +++ b/templates/fsharp/window/.template.config/template.json @@ -48,5 +48,11 @@ }, "continueOnError": true } - ] + ], + "constraints": { + "Avalonia": { + "type": "project-capability", + "args": "Avalonia" + } + } } \ No newline at end of file diff --git a/templates/resource-dictionary/.template.config/template.json b/templates/resource-dictionary/.template.config/template.json index f1f73dce..f0512632 100644 --- a/templates/resource-dictionary/.template.config/template.json +++ b/templates/resource-dictionary/.template.config/template.json @@ -26,5 +26,11 @@ }, "continueOnError": true } - ] + ], + "constraints": { + "Avalonia": { + "type": "project-capability", + "args": "Avalonia" + } + } } diff --git a/templates/styles/.template.config/template.json b/templates/styles/.template.config/template.json index 22363a81..f9b960f8 100644 --- a/templates/styles/.template.config/template.json +++ b/templates/styles/.template.config/template.json @@ -26,5 +26,11 @@ }, "continueOnError": true } - ] + ], + "constraints": { + "Avalonia": { + "type": "project-capability", + "args": "Avalonia" + } + } }