@@ -181,6 +181,13 @@ function buildDotNetNewNuGetPackage(packageId: string) {
181181 exclude : [ '.template.config/**' ]
182182 } ] ,
183183 symbols : {
184+ TargetFrameworkOverride : {
185+ type : 'parameter' ,
186+ description : 'Overrides the target framework' ,
187+ replaces : 'TargetFrameworkOverride' ,
188+ datatype : 'string' ,
189+ defaultValue : ''
190+ } ,
184191 Framework : {
185192 type : 'parameter' ,
186193 description : 'The target framework for the project.' ,
@@ -191,6 +198,7 @@ function buildDotNetNewNuGetPackage(packageId: string) {
191198 description : 'Target netcoreapp2.0'
192199 }
193200 ] ,
201+ replaces : 'netcoreapp2.0' ,
194202 defaultValue : 'netcoreapp2.0'
195203 } ,
196204 skipRestore : {
@@ -226,7 +234,16 @@ function buildDotNetNewNuGetPackage(packageId: string) {
226234 } , null , 2 ) ) ;
227235
228236 fs . writeFileSync ( path . join ( templateConfigDir , 'dotnetcli.host.json' ) , JSON . stringify ( {
237+ $schema : 'http://json.schemastore.org/dotnetcli.host' ,
229238 symbolInfo : {
239+ TargetFrameworkOverride : {
240+ isHidden : 'true' ,
241+ longName : 'target-framework-override' ,
242+ shortName : ''
243+ } ,
244+ Framework : {
245+ longName : 'framework'
246+ } ,
230247 skipRestore : {
231248 longName : 'no-restore' ,
232249 shortName : ''
@@ -235,12 +252,14 @@ function buildDotNetNewNuGetPackage(packageId: string) {
235252 } , null , 2 ) ) ;
236253
237254 fs . writeFileSync ( path . join ( templateConfigDir , 'vs-2017.3.host.json' ) , JSON . stringify ( {
255+ $schema : 'http://json.schemastore.org/vs-2017.3.host' ,
238256 name : { text : templateConfig . displayName } ,
239- description : { text : `Web application built with MVC ASP.NET Core and ${ templateConfig . displayName } ` } ,
240- order : 2000 ,
257+ description : { text : `ASP.NET Core application with MVC and ${ templateConfig . displayName } ` } ,
258+ order : 301 ,
241259 icon : 'icon.png' ,
242260 learnMoreLink : 'https://github.com/aspnet/JavaScriptServices' ,
243- uiFilters : [ 'oneaspnet' ]
261+ uiFilters : [ 'oneaspnet' ] ,
262+ minFullFrameworkVersion : '4.6.1'
244263 } , null , 2 ) ) ;
245264 } ) ;
246265
0 commit comments