@@ -139,12 +139,14 @@ function buildDotNetNewNuGetPackage() {
139139 { from : / \s * < O u t p u t P a t h .* ?< \/ O u t p u t P a t h > / g, to : '' } ,
140140 ] ;
141141 _ . forEach ( templates , ( templateConfig , templateName ) => {
142- const templateOutputDir = path . join ( outputRoot , 'templates' , templateName ) ;
143- const templateOutputProjectDir = path . join ( templateOutputDir , sourceProjectName ) ;
144- writeTemplate ( templateConfig . dir , templateOutputProjectDir , contentReplacements , filenameReplacements , templateConfig . forceInclusion ) ;
142+ const templateOutputDir = path . join ( outputRoot , 'Content' , templateName ) ;
143+ writeTemplate ( templateConfig . dir , templateOutputDir , contentReplacements , filenameReplacements , templateConfig . forceInclusion ) ;
145144
146- // Add a .netnew.json file
147- fs . writeFileSync ( path . join ( templateOutputDir , '.netnew.json' ) , JSON . stringify ( {
145+ // Add the .template.config dir and its contents
146+ const templateConfigDir = path . join ( templateOutputDir , '.template.config' ) ;
147+ mkdirp . sync ( templateConfigDir ) ;
148+
149+ fs . writeFileSync ( path . join ( templateConfigDir , 'template.json' ) , JSON . stringify ( {
148150 author : 'Microsoft' ,
149151 classifications : [ 'Standard>>Quick Starts' ] ,
150152 name : `ASP.NET Core SPA with ${ templateConfig . displayName } ` ,
@@ -155,6 +157,10 @@ function buildDotNetNewNuGetPackage() {
155157 guids : [ projectGuid ] ,
156158 sourceName : sourceProjectName
157159 } , null , 2 ) ) ;
160+
161+ fs . writeFileSync ( path . join ( templateConfigDir , 'dotnetcli.host.json' ) , JSON . stringify ( {
162+ symbolInfo : { }
163+ } , null , 2 ) ) ;
158164 } ) ;
159165
160166 // Invoke NuGet to create the final package
0 commit comments