From eb74ea32f193eb1556dc9b835a3722c7f84abee2 Mon Sep 17 00:00:00 2001 From: Jass Bagga Date: Wed, 13 Dec 2017 11:12:12 -0800 Subject: [PATCH] Add app.config to net 4.x templates (#191) Addresses #73 --- .../Aurelia-CSharp/.template.config/template.json | 6 ++++++ .../content/Aurelia-CSharp/app.config | 6 ++++++ .../Knockout-CSharp/.template.config/template.json | 6 ++++++ .../content/Knockout-CSharp/app.config | 6 ++++++ .../Vue-CSharp/.template.config/template.json | 6 ++++++ .../content/Vue-CSharp/app.config | 6 ++++++ .../EmptyWeb-FSharp.fsproj.in | 6 +++++- .../EmptyWeb-CSharp/.template.config/template.json | 6 ++++++ .../content/EmptyWeb-CSharp/app.config | 6 ++++++ .../EmptyWeb-FSharp/.template.config/template.json | 12 ++++++++++++ .../content/EmptyWeb-FSharp/app.config | 6 ++++++ .../.template.config/template.json | 6 ++++++ .../content/RazorPagesWeb-CSharp/app.config | 6 ++++++ .../StarterWeb-CSharp/.template.config/template.json | 6 ++++++ .../content/StarterWeb-CSharp/app.config | 6 ++++++ .../StarterWeb-FSharp/.template.config/template.json | 12 ++++++++++++ .../content/StarterWeb-FSharp/app.config | 6 ++++++ .../WebApi-CSharp/.template.config/template.json | 6 ++++++ .../content/WebApi-CSharp/app.config | 6 ++++++ .../WebApi-FSharp/.template.config/template.json | 12 ++++++++++++ .../content/WebApi-FSharp/app.config | 6 ++++++ .../Angular-CSharp/.template.config/template.json | 6 ++++++ .../content/Angular-CSharp/app.config | 6 ++++++ .../React-CSharp/.template.config/template.json | 6 ++++++ .../content/React-CSharp/app.config | 6 ++++++ .../ReactRedux-CSharp/.template.config/template.json | 6 ++++++ .../content/ReactRedux-CSharp/app.config | 6 ++++++ 27 files changed, 179 insertions(+), 1 deletion(-) create mode 100644 src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/app.config create mode 100644 src/Microsoft.AspNetCore.SpaTemplates/content/Knockout-CSharp/app.config create mode 100644 src/Microsoft.AspNetCore.SpaTemplates/content/Vue-CSharp/app.config create mode 100644 src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-CSharp/app.config create mode 100644 src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-FSharp/app.config create mode 100644 src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/app.config create mode 100644 src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/app.config create mode 100644 src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-FSharp/app.config create mode 100644 src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-CSharp/app.config create mode 100644 src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-FSharp/app.config create mode 100644 src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/app.config create mode 100644 src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/React-CSharp/app.config create mode 100644 src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/app.config diff --git a/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/.template.config/template.json b/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/.template.config/template.json index 3b175f8ab2..d360b45e93 100644 --- a/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/.template.config/template.json +++ b/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/.template.config/template.json @@ -24,6 +24,12 @@ ".template.config/**" ], "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + }, { "condition": "(ExcludeLaunchSettings)", "exclude": [ diff --git a/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/app.config b/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.SpaTemplates/content/Knockout-CSharp/.template.config/template.json b/src/Microsoft.AspNetCore.SpaTemplates/content/Knockout-CSharp/.template.config/template.json index 05597293a1..d5917eee94 100644 --- a/src/Microsoft.AspNetCore.SpaTemplates/content/Knockout-CSharp/.template.config/template.json +++ b/src/Microsoft.AspNetCore.SpaTemplates/content/Knockout-CSharp/.template.config/template.json @@ -24,6 +24,12 @@ ".template.config/**" ], "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + }, { "condition": "(ExcludeLaunchSettings)", "exclude": [ diff --git a/src/Microsoft.AspNetCore.SpaTemplates/content/Knockout-CSharp/app.config b/src/Microsoft.AspNetCore.SpaTemplates/content/Knockout-CSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.AspNetCore.SpaTemplates/content/Knockout-CSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.SpaTemplates/content/Vue-CSharp/.template.config/template.json b/src/Microsoft.AspNetCore.SpaTemplates/content/Vue-CSharp/.template.config/template.json index 2225ee70d6..2219dfcc14 100644 --- a/src/Microsoft.AspNetCore.SpaTemplates/content/Vue-CSharp/.template.config/template.json +++ b/src/Microsoft.AspNetCore.SpaTemplates/content/Vue-CSharp/.template.config/template.json @@ -24,6 +24,12 @@ ".template.config/**" ], "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + }, { "condition": "(ExcludeLaunchSettings)", "exclude": [ diff --git a/src/Microsoft.AspNetCore.SpaTemplates/content/Vue-CSharp/app.config b/src/Microsoft.AspNetCore.SpaTemplates/content/Vue-CSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.AspNetCore.SpaTemplates/content/Vue-CSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/EmptyWeb-FSharp.fsproj.in b/src/Microsoft.DotNet.Web.ProjectTemplates/EmptyWeb-FSharp.fsproj.in index 0fc60f74f1..7d68e6d3ea 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/EmptyWeb-FSharp.fsproj.in +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/EmptyWeb-FSharp.fsproj.in @@ -12,8 +12,12 @@ - + + + + + diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-CSharp/.template.config/template.json b/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-CSharp/.template.config/template.json index 8354091b9d..855e21cfba 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-CSharp/.template.config/template.json +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-CSharp/.template.config/template.json @@ -25,6 +25,12 @@ "sources": [ { "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + }, { "condition": "(ExcludeLaunchSettings)", "exclude": [ diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-CSharp/app.config b/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-CSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-CSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-FSharp/.template.config/template.json b/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-FSharp/.template.config/template.json index 7f0aff169d..8ec0e1ad1a 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-FSharp/.template.config/template.json +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-FSharp/.template.config/template.json @@ -18,6 +18,18 @@ }, "sourceName": "Company.WebApplication1", "preferNameDirectory": true, + "sources": [ + { + "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + } + ] + } + ], "symbols": { "RuntimeFrameworkVersion": { "type": "parameter", diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-FSharp/app.config b/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-FSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/EmptyWeb-FSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/.template.config/template.json b/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/.template.config/template.json index 2e07cf706c..77119c9bf4 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/.template.config/template.json +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/.template.config/template.json @@ -27,6 +27,12 @@ "sources": [ { "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + }, { "condition": "(!IndividualAuth && !OrganizationalAuth)", "exclude": [ diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/app.config b/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/template.json b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/template.json index be9810cf1c..1b1e7a5ad6 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/template.json +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/template.json @@ -26,6 +26,12 @@ "sources": [ { "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + }, { "condition": "(!IndividualAuth && !OrganizationalAuth)", "exclude": [ diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/app.config b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-FSharp/.template.config/template.json b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-FSharp/.template.config/template.json index 184bcafe78..7b07f45d54 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-FSharp/.template.config/template.json +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-FSharp/.template.config/template.json @@ -19,6 +19,18 @@ }, "sourceName": "Company.WebApplication1", "preferNameDirectory": true, + "sources": [ + { + "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + } + ] + } + ], "symbols": { "ExcludeLaunchSettings": { "type": "parameter", diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-FSharp/app.config b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-FSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-FSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-CSharp/.template.config/template.json b/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-CSharp/.template.config/template.json index b17f92ca51..5152217c94 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-CSharp/.template.config/template.json +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-CSharp/.template.config/template.json @@ -26,6 +26,12 @@ "sources": [ { "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + }, { "condition": "(windir == 'C:\\Windows')", "exclude": [ diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-CSharp/app.config b/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-CSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-CSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-FSharp/.template.config/template.json b/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-FSharp/.template.config/template.json index c7cd86920e..fc88b2b8de 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-FSharp/.template.config/template.json +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-FSharp/.template.config/template.json @@ -18,6 +18,18 @@ }, "sourceName": "Company.WebApplication1", "preferNameDirectory": true, + "sources": [ + { + "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + } + ] + } + ], "symbols": { "ExcludeLaunchSettings": { "type": "parameter", diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-FSharp/app.config b/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-FSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/WebApi-FSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/.template.config/template.json b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/.template.config/template.json index 2fd0394a8b..bc4eb15db0 100644 --- a/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/.template.config/template.json +++ b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/.template.config/template.json @@ -24,6 +24,12 @@ ".template.config/**" ], "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + }, { "condition": "(ExcludeLaunchSettings)", "exclude": [ diff --git a/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/app.config b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/React-CSharp/.template.config/template.json b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/React-CSharp/.template.config/template.json index c9879baa8a..d05e327c7e 100644 --- a/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/React-CSharp/.template.config/template.json +++ b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/React-CSharp/.template.config/template.json @@ -24,6 +24,12 @@ ".template.config/**" ], "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + }, { "condition": "(ExcludeLaunchSettings)", "exclude": [ diff --git a/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/React-CSharp/app.config b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/React-CSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/React-CSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/.template.config/template.json b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/.template.config/template.json index a79b46c205..d4b71d7930 100644 --- a/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/.template.config/template.json +++ b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/.template.config/template.json @@ -24,6 +24,12 @@ ".template.config/**" ], "modifiers": [ + { + "condition": "(TargetFrameworkOverride == '')", + "exclude": [ + "app.config" + ] + }, { "condition": "(ExcludeLaunchSettings)", "exclude": [ diff --git a/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/app.config b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/app.config new file mode 100644 index 0000000000..a6ad828311 --- /dev/null +++ b/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file