mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Add 'primaryOutputs' to dotnet new template.json files (and reorder JSON properties alphabetically)
This commit is contained in:
@@ -145,11 +145,12 @@ function buildDotNetNewNuGetPackage() {
|
||||
fs.writeFileSync(path.join(templateConfigDir, 'template.json'), JSON.stringify({
|
||||
author: 'Microsoft',
|
||||
classifications: ["Web", "MVC", "SPA"],
|
||||
name: `MVC ASP.NET Core with ${templateConfig.displayName}`,
|
||||
groupIdentity: `Microsoft.AspNetCore.SpaTemplates.${templateConfig.dotNetNewId}`,
|
||||
identity: `Microsoft.AspNetCore.SpaTemplates.${templateConfig.dotNetNewId}.CSharp`,
|
||||
name: `MVC ASP.NET Core with ${templateConfig.displayName}`,
|
||||
preferNameDirectory: true,
|
||||
primaryOutputs: [{ path: `${sourceProjectName}.csproj` }],
|
||||
shortName: `${templateConfig.dotNetNewId.toLowerCase()}`,
|
||||
tags: { language: 'C#', type: 'project' },
|
||||
sourceName: sourceProjectName,
|
||||
sources: [{
|
||||
source: './',
|
||||
@@ -168,7 +169,7 @@ function buildDotNetNewNuGetPackage() {
|
||||
defaultValue: 'microsoft/dotnet:1.1.0-sdk-msbuild'
|
||||
}
|
||||
},
|
||||
preferNameDirectory: true
|
||||
tags: { language: 'C#', type: 'project' },
|
||||
}, null, 2));
|
||||
|
||||
fs.writeFileSync(path.join(templateConfigDir, 'dotnetcli.host.json'), JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user