@@ -128,16 +128,10 @@ function buildDotNetNewNuGetPackage() {
128128 const sourceProjectName = 'WebApplicationBasic' ;
129129 const projectGuid = '00000000-0000-0000-0000-000000000000' ;
130130 const filenameReplacements = [
131- // TODO: For dotnetnew templates, switch to csproj. No need for SDK choice as it can be Preview3+ only.
132- { from : / .* \. x p r o j $ / , to : `${ sourceProjectName } .xproj` } ,
131+ { from : / .* \. c s p r o j $ / , to : `${ sourceProjectName } .csproj` } ,
133132 { from : / \b t e m p l a t e _ g i t i g n o r e $ / , to : '.gitignore' }
134133 ] ;
135- const contentReplacements = [
136- { from : / < P r o j e c t G u i d > [ 0 - 9 a - f \- ] { 36 } < \/ P r o j e c t G u i d > / g, to : `<ProjectGuid>${ projectGuid } </ProjectGuid>` } ,
137- { from : / < R o o t N a m e s p a c e > .* ?< \/ R o o t N a m e s p a c e > / g, to : `<RootNamespace>${ sourceProjectName } </RootNamespace>` } ,
138- { from : / \s * < B a s e I n t e r m e d i a t e O u t p u t P a t h .* ?< \/ B a s e I n t e r m e d i a t e O u t p u t P a t h > / g, to : '' } ,
139- { from : / \s * < O u t p u t P a t h .* ?< \/ O u t p u t P a t h > / g, to : '' } ,
140- ] ;
134+ const contentReplacements = [ ] ;
141135 _ . forEach ( templates , ( templateConfig , templateName ) => {
142136 const templateOutputDir = path . join ( outputRoot , 'Content' , templateName ) ;
143137 writeTemplate ( templateConfig . dir , templateOutputDir , contentReplacements , filenameReplacements , templateConfig . forceInclusion ) ;
@@ -148,14 +142,15 @@ function buildDotNetNewNuGetPackage() {
148142
149143 fs . writeFileSync ( path . join ( templateConfigDir , 'template.json' ) , JSON . stringify ( {
150144 author : 'Microsoft' ,
151- classifications : [ 'Standard>>Quick Starts' ] ,
152- name : `ASP.NET Core SPA with ${ templateConfig . displayName } ` ,
153- groupIdentity : `Microsoft.AspNetCore.Spa.${ templateConfig . dotNetNewId } ` ,
154- identity : `Microsoft.AspNetCore.Spa.${ templateConfig . dotNetNewId } ` ,
155- shortName : `aspnetcorespa-${ templateConfig . dotNetNewId . toLowerCase ( ) } ` ,
156- tags : { language : 'C#' } ,
157- guids : [ projectGuid ] ,
158- sourceName : sourceProjectName
145+ classifications : [ "Web" , "MVC" , "SPA" ] ,
146+ name : `MVC ASP.NET Core with ${ templateConfig . displayName } ` ,
147+ groupIdentity : `Microsoft.AspNetCore.SpaTemplates.${ templateConfig . dotNetNewId } ` ,
148+ identity : `Microsoft.AspNetCore.SpaTemplates.${ templateConfig . dotNetNewId } .CSharp` ,
149+ shortName : `${ templateConfig . dotNetNewId . toLowerCase ( ) } ` ,
150+ tags : { language : 'C#' , type : 'project' } ,
151+ sourceName : sourceProjectName ,
152+ preferNameDirectory : true ,
153+ symbols : { }
159154 } , null , 2 ) ) ;
160155
161156 fs . writeFileSync ( path . join ( templateConfigDir , 'dotnetcli.host.json' ) , JSON . stringify ( {
0 commit comments