diff --git a/templates/package-builder/src/build/build.ts b/templates/package-builder/src/build/build.ts index 33cb5b6..738ec77 100644 --- a/templates/package-builder/src/build/build.ts +++ b/templates/package-builder/src/build/build.ts @@ -139,12 +139,14 @@ function buildDotNetNewNuGetPackage() { { from: /\s*/g, to: '' }, ]; _.forEach(templates, (templateConfig, templateName) => { - const templateOutputDir = path.join(outputRoot, 'templates', templateName); - const templateOutputProjectDir = path.join(templateOutputDir, sourceProjectName); - writeTemplate(templateConfig.dir, templateOutputProjectDir, contentReplacements, filenameReplacements, templateConfig.forceInclusion); + const templateOutputDir = path.join(outputRoot, 'Content', templateName); + writeTemplate(templateConfig.dir, templateOutputDir, contentReplacements, filenameReplacements, templateConfig.forceInclusion); - // Add a .netnew.json file - fs.writeFileSync(path.join(templateOutputDir, '.netnew.json'), JSON.stringify({ + // Add the .template.config dir and its contents + const templateConfigDir = path.join(templateOutputDir, '.template.config'); + mkdirp.sync(templateConfigDir); + + fs.writeFileSync(path.join(templateConfigDir, 'template.json'), JSON.stringify({ author: 'Microsoft', classifications: [ 'Standard>>Quick Starts' ], name: `ASP.NET Core SPA with ${templateConfig.displayName}`, @@ -155,6 +157,10 @@ function buildDotNetNewNuGetPackage() { guids: [ projectGuid ], sourceName: sourceProjectName }, null, 2)); + + fs.writeFileSync(path.join(templateConfigDir, 'dotnetcli.host.json'), JSON.stringify({ + symbolInfo: {} + }, null, 2)); }); // Invoke NuGet to create the final package diff --git a/templates/package-builder/src/dotnetnew/Microsoft.AspNetCore.Spa.Templates.nuspec b/templates/package-builder/src/dotnetnew/Microsoft.AspNetCore.Spa.Templates.nuspec index 46c0011..f2da06f 100644 --- a/templates/package-builder/src/dotnetnew/Microsoft.AspNetCore.Spa.Templates.nuspec +++ b/templates/package-builder/src/dotnetnew/Microsoft.AspNetCore.Spa.Templates.nuspec @@ -1,19 +1,15 @@ - + Microsoft.AspNetCore.Spa.Templates {version} - Class Library and Console Application Templates for .NET Core + Single Page Application templates for ASP.NET Core Microsoft - false - My package description. - - - - - + en-US + https://github.com/aspnet/javascriptservices + https://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm + + + - - - - \ No newline at end of file +