mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +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({
|
fs.writeFileSync(path.join(templateConfigDir, 'template.json'), JSON.stringify({
|
||||||
author: 'Microsoft',
|
author: 'Microsoft',
|
||||||
classifications: ["Web", "MVC", "SPA"],
|
classifications: ["Web", "MVC", "SPA"],
|
||||||
name: `MVC ASP.NET Core with ${templateConfig.displayName}`,
|
|
||||||
groupIdentity: `Microsoft.AspNetCore.SpaTemplates.${templateConfig.dotNetNewId}`,
|
groupIdentity: `Microsoft.AspNetCore.SpaTemplates.${templateConfig.dotNetNewId}`,
|
||||||
identity: `Microsoft.AspNetCore.SpaTemplates.${templateConfig.dotNetNewId}.CSharp`,
|
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()}`,
|
shortName: `${templateConfig.dotNetNewId.toLowerCase()}`,
|
||||||
tags: { language: 'C#', type: 'project' },
|
|
||||||
sourceName: sourceProjectName,
|
sourceName: sourceProjectName,
|
||||||
sources: [{
|
sources: [{
|
||||||
source: './',
|
source: './',
|
||||||
@@ -168,7 +169,7 @@ function buildDotNetNewNuGetPackage() {
|
|||||||
defaultValue: 'microsoft/dotnet:1.1.0-sdk-msbuild'
|
defaultValue: 'microsoft/dotnet:1.1.0-sdk-msbuild'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
preferNameDirectory: true
|
tags: { language: 'C#', type: 'project' },
|
||||||
}, null, 2));
|
}, null, 2));
|
||||||
|
|
||||||
fs.writeFileSync(path.join(templateConfigDir, 'dotnetcli.host.json'), JSON.stringify({
|
fs.writeFileSync(path.join(templateConfigDir, 'dotnetcli.host.json'), JSON.stringify({
|
||||||
|
|||||||
Reference in New Issue
Block a user