[2.0.x PATCH] Add app.config to net 4.x templates (#231)
Addresses #170
This commit is contained in:
parent
c786c029f4
commit
a177c557c5
|
|
@ -8,9 +8,10 @@ branches:
|
||||||
- release
|
- release
|
||||||
- dev
|
- dev
|
||||||
- /^rel\/.*/
|
- /^rel\/.*/
|
||||||
|
- /^release\/.*/
|
||||||
- /^(.*\/)?ci-.*$/
|
- /^(.*\/)?ci-.*$/
|
||||||
build_script:
|
build_script:
|
||||||
- ps: .\build.ps1
|
- ps: .\build.cmd
|
||||||
clone_depth: 1
|
clone_depth: 1
|
||||||
environment:
|
environment:
|
||||||
global:
|
global:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
language: csharp
|
||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
||||||
|
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libunwind8
|
||||||
|
mono: none
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
osx_image: xcode8.2
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- release
|
||||||
|
- dev
|
||||||
|
- /^rel\/.*$/
|
||||||
|
- /^release\/.*$/
|
||||||
|
- /^(.*\/)?ci-.*$/
|
||||||
|
before_install:
|
||||||
|
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi
|
||||||
|
script:
|
||||||
|
- ./build.sh
|
||||||
|
|
@ -22,6 +22,14 @@
|
||||||
"target": "./",
|
"target": "./",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
".template.config/**"
|
".template.config/**"
|
||||||
|
],
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -22,6 +22,14 @@
|
||||||
"target": "./",
|
"target": "./",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
".template.config/**"
|
".template.config/**"
|
||||||
|
],
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -22,6 +22,14 @@
|
||||||
"target": "./",
|
"target": "./",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
".template.config/**"
|
".template.config/**"
|
||||||
|
],
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -10,8 +10,12 @@
|
||||||
<Compile Include="Program.fs" />
|
<Compile Include="Program.fs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup Condition="'$(TargetFrameworkOverride)' == ''">
|
||||||
<PackageReference Include="Microsoft.AspNetCore.All" Version="${MicrosoftAspNetCoreAllPackageVersion}" />
|
<PackageReference Include="Microsoft.AspNetCore.All" Version="${MicrosoftAspNetCoreAllPackageVersion}" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition="'$(TargetFrameworkOverride)' != ''">
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore" Version="${MicrosoftAspNetCorePackageVersion}" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,12 @@
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"modifiers": [
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"condition": "(!IncludeLaunchSettings)",
|
"condition": "(!IncludeLaunchSettings)",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -18,6 +18,18 @@
|
||||||
},
|
},
|
||||||
"sourceName": "Company.WebApplication1",
|
"sourceName": "Company.WebApplication1",
|
||||||
"preferNameDirectory": true,
|
"preferNameDirectory": true,
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"symbols": {
|
"symbols": {
|
||||||
"TargetFrameworkOverride": {
|
"TargetFrameworkOverride": {
|
||||||
"type": "parameter",
|
"type": "parameter",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -27,6 +27,12 @@
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"modifiers": [
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"condition": "(!IndividualAuth && !OrganizationalAuth)",
|
"condition": "(!IndividualAuth && !OrganizationalAuth)",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -26,6 +26,12 @@
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"modifiers": [
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"condition": "(!IndividualAuth && !OrganizationalAuth)",
|
"condition": "(!IndividualAuth && !OrganizationalAuth)",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -19,6 +19,18 @@
|
||||||
},
|
},
|
||||||
"sourceName": "Company.WebApplication1",
|
"sourceName": "Company.WebApplication1",
|
||||||
"preferNameDirectory": true,
|
"preferNameDirectory": true,
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"symbols": {
|
"symbols": {
|
||||||
"TargetFrameworkOverride": {
|
"TargetFrameworkOverride": {
|
||||||
"type": "parameter",
|
"type": "parameter",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -26,6 +26,12 @@
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"modifiers": [
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"condition": "(windir == 'C:\\Windows')",
|
"condition": "(windir == 'C:\\Windows')",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -18,6 +18,18 @@
|
||||||
},
|
},
|
||||||
"sourceName": "Company.WebApplication1",
|
"sourceName": "Company.WebApplication1",
|
||||||
"preferNameDirectory": true,
|
"preferNameDirectory": true,
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"symbols": {
|
"symbols": {
|
||||||
"TargetFrameworkOverride": {
|
"TargetFrameworkOverride": {
|
||||||
"type": "parameter",
|
"type": "parameter",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -22,6 +22,14 @@
|
||||||
"target": "./",
|
"target": "./",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
".template.config/**"
|
".template.config/**"
|
||||||
|
],
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -22,6 +22,14 @@
|
||||||
"target": "./",
|
"target": "./",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
".template.config/**"
|
".template.config/**"
|
||||||
|
],
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -22,6 +22,14 @@
|
||||||
"target": "./",
|
"target": "./",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
".template.config/**"
|
".template.config/**"
|
||||||
|
],
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"condition": "(TargetFrameworkOverride == '')",
|
||||||
|
"exclude": [
|
||||||
|
"app.config"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<gcServer enabled="true"/>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
|
|
@ -14,7 +14,8 @@ namespace Templates.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
|
[OSSkipCondition(OperatingSystems.Linux)]
|
||||||
|
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||||
public void EmptyWebTemplate_Works_NetFramework()
|
public void EmptyWebTemplate_Works_NetFramework()
|
||||||
=> EmptyWebTemplateImpl("net461");
|
=> EmptyWebTemplateImpl("net461");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@ namespace Templates.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
|
[OSSkipCondition(OperatingSystems.Linux)]
|
||||||
|
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||||
[InlineData(null)]
|
[InlineData(null)]
|
||||||
[InlineData("F#")]
|
[InlineData("F#")]
|
||||||
public void MvcTemplate_NoAuth_Works_NetFramework(string languageOverride)
|
public void MvcTemplate_NoAuth_Works_NetFramework(string languageOverride)
|
||||||
|
|
@ -55,7 +56,8 @@ namespace Templates.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
|
[OSSkipCondition(OperatingSystems.Linux)]
|
||||||
|
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||||
public void MvcTemplate_IndividualAuth_Works_NetFramework()
|
public void MvcTemplate_IndividualAuth_Works_NetFramework()
|
||||||
=> MvcTemplate_IndividualAuthImpl("net461");
|
=> MvcTemplate_IndividualAuthImpl("net461");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@ namespace Templates.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
|
[OSSkipCondition(OperatingSystems.Linux)]
|
||||||
|
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||||
public void RazorPagesTemplate_NoAuth_Works_NetFramework()
|
public void RazorPagesTemplate_NoAuth_Works_NetFramework()
|
||||||
=> RazorPagesTemplate_NoAuthImpl("net461");
|
=> RazorPagesTemplate_NoAuthImpl("net461");
|
||||||
|
|
||||||
|
|
@ -48,7 +49,8 @@ namespace Templates.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
|
[OSSkipCondition(OperatingSystems.Linux)]
|
||||||
|
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||||
public void RazorPagesTemplate_IndividualAuth_Works_NetFramework()
|
public void RazorPagesTemplate_IndividualAuth_Works_NetFramework()
|
||||||
=> RazorPagesTemplate_IndividualAuthImpl("net461");
|
=> RazorPagesTemplate_IndividualAuthImpl("net461");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,8 @@ namespace Templates.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
|
[OSSkipCondition(OperatingSystems.Linux)]
|
||||||
|
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||||
// Just use 'angular' as representative for .NET 4.6.1 coverage, as
|
// Just use 'angular' as representative for .NET 4.6.1 coverage, as
|
||||||
// the client-side code isn't affected by the .NET runtime choice
|
// the client-side code isn't affected by the .NET runtime choice
|
||||||
[InlineData("angular")]
|
[InlineData("angular")]
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@ namespace Templates.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
|
[OSSkipCondition(OperatingSystems.Linux)]
|
||||||
|
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||||
public void WebApiTemplate_Works_NetFramework()
|
public void WebApiTemplate_Works_NetFramework()
|
||||||
=> WebApiTemplateImpl("net461");
|
=> WebApiTemplateImpl("net461");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue