File tree Expand file tree Collapse file tree 8 files changed +23
-27
lines changed
src/Microsoft.DotNet.Web.ProjectTemplates.2.1/content
test/Templates.Test/Helpers Expand file tree Collapse file tree 8 files changed +23
-27
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.1 </TargetFramework >
4
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.0 </TargetFramework >
5
5
<TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
6
- <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >$(TemplateDep_RuntimeFramework_2_1)</RuntimeFrameworkVersion >
7
- <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >$(TemplateDep_RuntimeFramework_2_1)</NETStandardImplicitPackageVersion >
6
+ <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >$(TemplateDep_RuntimeFramework_2_1)</RuntimeFrameworkVersion >
7
+ <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >$(TemplateDep_RuntimeFramework_2_1)</NETStandardImplicitPackageVersion >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.1 </TargetFramework >
4
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.0 </TargetFramework >
5
5
<TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
6
- <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >TemplateDep_RuntimeFramework_2_1</RuntimeFrameworkVersion >
7
- <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >TemplateDep_RuntimeFramework_2_1</NETStandardImplicitPackageVersion >
6
+ <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >TemplateDep_RuntimeFramework_2_1</RuntimeFrameworkVersion >
7
+ <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >TemplateDep_RuntimeFramework_2_1</NETStandardImplicitPackageVersion >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
<PropertyGroup >
3
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.1 </TargetFramework >
3
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.0 </TargetFramework >
4
4
<TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
5
- <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >$(TemplateDep_RuntimeFramework_2_1)</RuntimeFrameworkVersion >
6
- <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >$(TemplateDep_RuntimeFramework_2_1)</NETStandardImplicitPackageVersion >
5
+ <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >$(TemplateDep_RuntimeFramework_2_1)</RuntimeFrameworkVersion >
6
+ <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >$(TemplateDep_RuntimeFramework_2_1)</NETStandardImplicitPackageVersion >
7
7
8
8
<UserSecretsId Condition =" '$(IndividualAuth)' == 'True' OR '$(OrganizationalAuth)' == 'True'" >aspnet-Company.WebApplication1-0ce56475-d1db-490f-8af1-a881ea4fcd2d</UserSecretsId >
9
9
<WebProject_DirectoryAccessLevelKey Condition =" '$(OrganizationalAuth)' == 'True' AND '$(OrgReadAccess)' != 'True'" >0</WebProject_DirectoryAccessLevelKey >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.1 </TargetFramework >
4
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.0 </TargetFramework >
5
5
<TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
6
- <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >$(TemplateDep_RuntimeFramework_2_1)</RuntimeFrameworkVersion >
7
- <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >$(TemplateDep_RuntimeFramework_2_1)</NETStandardImplicitPackageVersion >
6
+ <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >$(TemplateDep_RuntimeFramework_2_1)</RuntimeFrameworkVersion >
7
+ <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >$(TemplateDep_RuntimeFramework_2_1)</NETStandardImplicitPackageVersion >
8
8
9
9
<UserSecretsId Condition =" '$(IndividualAuth)' == 'True' OR '$(OrganizationalAuth)' == 'True'" >aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502</UserSecretsId >
10
10
<WebProject_DirectoryAccessLevelKey Condition =" '$(OrganizationalAuth)' == 'True' AND '$(OrgReadAccess)' != 'True'" >0</WebProject_DirectoryAccessLevelKey >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.1 </TargetFramework >
4
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.0 </TargetFramework >
5
5
<TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
6
- <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >TemplateDep_RuntimeFramework_2_1</RuntimeFrameworkVersion >
7
- <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >TemplateDep_RuntimeFramework_2_1</NETStandardImplicitPackageVersion >
6
+ <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >TemplateDep_RuntimeFramework_2_1</RuntimeFrameworkVersion >
7
+ <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >TemplateDep_RuntimeFramework_2_1</NETStandardImplicitPackageVersion >
8
8
9
9
<MvcRazorCompileOnPublish >true</MvcRazorCompileOnPublish >
10
10
</PropertyGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.1 </TargetFramework >
4
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.0 </TargetFramework >
5
5
<TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
6
- <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >$(TemplateDep_RuntimeFramework_2_1)</RuntimeFrameworkVersion >
7
- <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >$(TemplateDep_RuntimeFramework_2_1)</NETStandardImplicitPackageVersion >
6
+ <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >$(TemplateDep_RuntimeFramework_2_1)</RuntimeFrameworkVersion >
7
+ <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >$(TemplateDep_RuntimeFramework_2_1)</NETStandardImplicitPackageVersion >
8
8
9
9
<UserSecretsId Condition =" '$(IndividualAuth)' == 'True' OR '$(OrganizationalAuth)' == 'True'" >aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502</UserSecretsId >
10
10
<WebProject_DirectoryAccessLevelKey Condition =" '$(OrganizationalAuth)' == 'True' AND '$(OrgReadAccess)' != 'True'" >0</WebProject_DirectoryAccessLevelKey >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.1 </TargetFramework >
4
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >netcoreapp2.0 </TargetFramework >
5
5
<TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
6
- <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >TemplateDep_RuntimeFramework_2_1</RuntimeFrameworkVersion >
7
- <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.1 '" >TemplateDep_RuntimeFramework_2_1</NETStandardImplicitPackageVersion >
6
+ <RuntimeFrameworkVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >TemplateDep_RuntimeFramework_2_1</RuntimeFrameworkVersion >
7
+ <NETStandardImplicitPackageVersion Condition =" '$(Framework)' == 'netcoreapp2.0 '" >TemplateDep_RuntimeFramework_2_1</NETStandardImplicitPackageVersion >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
Original file line number Diff line number Diff line change @@ -15,15 +15,11 @@ internal static class TemplatePackageInstaller
15
15
"Microsoft.DotNet.Web.Client.ItemTemplates" ,
16
16
"Microsoft.DotNet.Web.ItemTemplates" ,
17
17
"Microsoft.DotNet.Web.ProjectTemplates.2.0" ,
18
+ "Microsoft.DotNet.Web.ProjectTemplates.2.1" ,
18
19
"Microsoft.DotNet.Web.Spa.ProjectTemplates" ,
19
20
"Microsoft.AspNetCore.SpaTemplates" ,
20
21
} ;
21
22
22
- private static readonly string [ ] _extraTemplatePackagesToUninstall = new [ ]
23
- {
24
- "Microsoft.DotNet.Web.ProjectTemplates.2.1" ,
25
- } ;
26
-
27
23
public static void EnsureTemplatePackagesWereReinstalled ( ITestOutputHelper output )
28
24
{
29
25
lock ( _templatePackagesReinstallationLock )
@@ -39,7 +35,7 @@ public static void EnsureTemplatePackagesWereReinstalled(ITestOutputHelper outpu
39
35
private static void ReinstallTemplatePackages ( ITestOutputHelper output )
40
36
{
41
37
// Remove any previous or prebundled version of the template packages
42
- foreach ( var packageName in _templatePackages . Concat ( _extraTemplatePackagesToUninstall ) )
38
+ foreach ( var packageName in _templatePackages )
43
39
{
44
40
var proc = ProcessEx . Run (
45
41
output ,
You can’t perform that action at this time.
0 commit comments