diff --git a/templates/AngularSpa/AngularSpa.csproj b/templates/AngularSpa/AngularSpa.csproj index 7ff4100..57ed7d4 100644 --- a/templates/AngularSpa/AngularSpa.csproj +++ b/templates/AngularSpa/AngularSpa.csproj @@ -1,15 +1,22 @@ - netcoreapp2.0 + netcoreapp2.0 + TargetFrameworkOverride true $(PackageTargetFallback);portable-net45+win8+wp8+wpa81; false - + + + + + + + diff --git a/templates/AureliaSpa/AureliaSpa.csproj b/templates/AureliaSpa/AureliaSpa.csproj index ff88f56..ae09f5b 100644 --- a/templates/AureliaSpa/AureliaSpa.csproj +++ b/templates/AureliaSpa/AureliaSpa.csproj @@ -1,15 +1,22 @@ - netcoreapp2.0 + netcoreapp2.0 + TargetFrameworkOverride true $(PackageTargetFallback);portable-net45+win8+wp8+wpa81; false - + + + + + + + diff --git a/templates/KnockoutSpa/KnockoutSpa.csproj b/templates/KnockoutSpa/KnockoutSpa.csproj index ff88f56..ae09f5b 100644 --- a/templates/KnockoutSpa/KnockoutSpa.csproj +++ b/templates/KnockoutSpa/KnockoutSpa.csproj @@ -1,15 +1,22 @@ - netcoreapp2.0 + netcoreapp2.0 + TargetFrameworkOverride true $(PackageTargetFallback);portable-net45+win8+wp8+wpa81; false - + + + + + + + diff --git a/templates/ReactReduxSpa/ReactReduxSpa.csproj b/templates/ReactReduxSpa/ReactReduxSpa.csproj index 7ff4100..57ed7d4 100644 --- a/templates/ReactReduxSpa/ReactReduxSpa.csproj +++ b/templates/ReactReduxSpa/ReactReduxSpa.csproj @@ -1,15 +1,22 @@ - netcoreapp2.0 + netcoreapp2.0 + TargetFrameworkOverride true $(PackageTargetFallback);portable-net45+win8+wp8+wpa81; false - + + + + + + + diff --git a/templates/ReactSpa/ReactSpa.csproj b/templates/ReactSpa/ReactSpa.csproj index ff88f56..ae09f5b 100644 --- a/templates/ReactSpa/ReactSpa.csproj +++ b/templates/ReactSpa/ReactSpa.csproj @@ -1,15 +1,22 @@ - netcoreapp2.0 + netcoreapp2.0 + TargetFrameworkOverride true $(PackageTargetFallback);portable-net45+win8+wp8+wpa81; false - + + + + + + + diff --git a/templates/VueSpa/VueSpa.csproj b/templates/VueSpa/VueSpa.csproj index ff88f56..ae09f5b 100644 --- a/templates/VueSpa/VueSpa.csproj +++ b/templates/VueSpa/VueSpa.csproj @@ -1,15 +1,22 @@ - netcoreapp2.0 + netcoreapp2.0 + TargetFrameworkOverride true $(PackageTargetFallback);portable-net45+win8+wp8+wpa81; false - + + + + + + + diff --git a/templates/package-builder/src/build/build.ts b/templates/package-builder/src/build/build.ts index 9985420..b98a4b0 100644 --- a/templates/package-builder/src/build/build.ts +++ b/templates/package-builder/src/build/build.ts @@ -181,6 +181,13 @@ function buildDotNetNewNuGetPackage(packageId: string) { exclude: ['.template.config/**'] }], symbols: { + TargetFrameworkOverride: { + type: 'parameter', + description: 'Overrides the target framework', + replaces: 'TargetFrameworkOverride', + datatype: 'string', + defaultValue: '' + }, Framework: { type: 'parameter', description: 'The target framework for the project.', @@ -191,6 +198,7 @@ function buildDotNetNewNuGetPackage(packageId: string) { description: 'Target netcoreapp2.0' } ], + replaces: 'netcoreapp2.0', defaultValue: 'netcoreapp2.0' }, skipRestore: { @@ -226,7 +234,16 @@ function buildDotNetNewNuGetPackage(packageId: string) { }, null, 2)); fs.writeFileSync(path.join(templateConfigDir, 'dotnetcli.host.json'), JSON.stringify({ + $schema: 'http://json.schemastore.org/dotnetcli.host', symbolInfo: { + TargetFrameworkOverride: { + isHidden: 'true', + longName: 'target-framework-override', + shortName: '' + }, + Framework: { + longName: 'framework' + }, skipRestore: { longName: 'no-restore', shortName: '' @@ -235,12 +252,14 @@ function buildDotNetNewNuGetPackage(packageId: string) { }, null, 2)); fs.writeFileSync(path.join(templateConfigDir, 'vs-2017.3.host.json'), JSON.stringify({ + $schema: 'http://json.schemastore.org/vs-2017.3.host', name: { text: templateConfig.displayName }, - description: { text: `Web application built with MVC ASP.NET Core and ${templateConfig.displayName}` }, - order: 2000, + description: { text: `ASP.NET Core application with MVC and ${templateConfig.displayName}` }, + order: 301, icon: 'icon.png', learnMoreLink: 'https://github.com/aspnet/JavaScriptServices', - uiFilters: [ 'oneaspnet' ] + uiFilters: [ 'oneaspnet' ], + minFullFrameworkVersion: '4.6.1' }, null, 2)); });