Skip to content
This repository has been archived by the owner on Sep 21, 2018. It is now read-only.

Commit

Permalink
Move server gc section for full framework to app.config
Browse files Browse the repository at this point in the history
  • Loading branch information
phenning committed Apr 26, 2016
1 parent 3ceaabf commit 289ac23
Show file tree
Hide file tree
Showing 15 changed files with 50 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/BaseTemplates/EmptyWeb/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"web.config"
Expand Down
4 changes: 2 additions & 2 deletions src/BaseTemplates/StarterWeb/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
4 changes: 2 additions & 2 deletions src/BaseTemplates/WebAPI/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
5 changes: 5 additions & 0 deletions src/Rules/Common/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<configuration>
<runtime>
<gcServer enabled="true"/>
</runtime>
</configuration>
4 changes: 2 additions & 2 deletions src/Rules/StarterWeb/AI/IndividualAuth/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
4 changes: 2 additions & 2 deletions src/Rules/StarterWeb/AI/NoAuth/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
4 changes: 2 additions & 2 deletions src/Rules/StarterWeb/IndividualAuth/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
4 changes: 2 additions & 2 deletions src/Rules/StarterWeb/OrganizationalAuth/Common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
4 changes: 2 additions & 2 deletions src/Rules/WebAPI/AI/NoAuth/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
4 changes: 2 additions & 2 deletions src/Rules/WebAPI/AI/OrganizationalAuth/Single/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
4 changes: 2 additions & 2 deletions src/Rules/WebAPI/OrganizationalAuth/Single/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},

$if$ ($context$ == WebCore)
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

$endif$
"content": [
"wwwroot",
"Views",
Expand Down
7 changes: 7 additions & 0 deletions src/TemplateRules.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@
<TargetName>$(Rules)</TargetName>
<SearchPath>.\</SearchPath>
</LooseFiles>

<!-- Common Files -->
<LooseFiles Include="
Rules\Common\app.config">
<TargetName>$(Rules)</TargetName>
<SearchPath>.\</SearchPath>
</LooseFiles>
</ItemGroup>

<Target Name="BuildLooseFiles" Inputs="@(LooseFiles)" Outputs="$(TemplatesOutputPath)%(TargetName).zip" DependsOnTargets="SetupPackageSource;DeterminePackageVersions">
Expand Down
14 changes: 14 additions & 0 deletions src/Templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@
<BaseTemplate ID="Microsoft.DNX.CSharp.EmptyWeb"
VSTemplatePath="DNXEmptyWeb.vstemplate"
DefaultContext="WebCore">
<ApplyRules Option="WebDesktop">
<RunRule RuleID="ApplyAppConfig" />
</ApplyRules>
</BaseTemplate>

<BaseTemplate ID="Microsoft.DNX.CSharp.StarterWeb"
Expand Down Expand Up @@ -188,6 +191,9 @@
</ApplyRules>
</ApplyRules>
</ApplyRules>
<ApplyRules Option="WebDesktop">
<RunRule RuleID="ApplyAppConfig" />
</ApplyRules>
</BaseTemplate>

<BaseTemplate ID="Microsoft.DNX.CSharp.WebAPI"
Expand Down Expand Up @@ -222,6 +228,9 @@
</ApplyRules>
</ApplyRules>
</ApplyRules>
<ApplyRules Option="WebDesktop">
<RunRule RuleID="ApplyAppConfig" />
</ApplyRules>
</BaseTemplate>
</BaseTemplates>

Expand Down Expand Up @@ -378,5 +387,10 @@
<ReplaceFile Destination="project.json" Source="Rules\WebAPI\AI\OrganizationalAuth\Single\project.json"/>
<ReplaceFile Destination="Startup.cs" Source="Rules\WebAPI\AI\OrganizationalAuth\Single\Startup.cs"/>
</Rule>

<!-- Apply app.config file for full FX -->
<Rule ID="ApplyAppConfig">
<AddFile Destination="app.config" Source="Rules\Common\app.config"/>
</Rule>
</Rules>
</TemplateDefinition>

0 comments on commit 289ac23

Please sign in to comment.