More updates to "dotnet new" template to produce correct template.json values

This commit is contained in:
SteveSandersonMS
2017-02-13 14:42:47 +00:00
parent 1115a0aff5
commit 1bf283877e

View File

@@ -149,8 +149,24 @@ function buildDotNetNewNuGetPackage() {
shortName: `${templateConfig.dotNetNewId.toLowerCase()}`, shortName: `${templateConfig.dotNetNewId.toLowerCase()}`,
tags: { language: 'C#', type: 'project' }, tags: { language: 'C#', type: 'project' },
sourceName: sourceProjectName, sourceName: sourceProjectName,
preferNameDirectory: true, sources: [{
symbols: {} source: './',
target: './',
exclude: ['.deployment', '.template.config/**', 'project.json', '*.xproj']
}],
symbols: {
sdkVersion: {
type: 'bind',
binding: 'dotnet-cli-version',
replaces: '1.0.0-preview2-1-003177'
},
dockerBaseImage: {
type: 'parameter',
replaces: 'microsoft/dotnet:1.1.0-sdk-projectjson',
defaultValue: 'microsoft/dotnet:1.1.0-sdk-msbuild'
}
},
preferNameDirectory: true
}, null, 2)); }, null, 2));
fs.writeFileSync(path.join(templateConfigDir, 'dotnetcli.host.json'), JSON.stringify({ fs.writeFileSync(path.join(templateConfigDir, 'dotnetcli.host.json'), JSON.stringify({