@@ -11,7 +11,7 @@ import * as targz from 'tar.gz';
11
11
const isWindows = / ^ w i n / . test ( process . platform ) ;
12
12
const textFileExtensions = [ '.gitignore' , 'template_gitignore' , '.config' , '.cs' , '.cshtml' , '.csproj' , '.html' , '.js' , '.json' , '.jsx' , '.md' , '.nuspec' , '.ts' , '.tsx' ] ;
13
13
const yeomanGeneratorSource = './src/yeoman' ;
14
- const localizationPackageGuid = '{296D76CB-AD6F-4B46-9072-33CC07E265F8 }' ;
14
+ const webToolsVSPackageGuid = '{0CD94836-1526-4E85-87D3-FB5274C5AFC9 }' ;
15
15
16
16
const dotNetPackages = {
17
17
builtIn : 'Microsoft.DotNet.Web.Spa.ProjectTemplates' ,
@@ -27,12 +27,12 @@ interface TemplateConfig {
27
27
}
28
28
29
29
const templates : { [ key : string ] : TemplateConfig } = {
30
- 'angular' : { dotNetPackageId : dotNetPackages . builtIn , dir : '../../templates/AngularSpa/' , dotNetNewId : 'Angular' , displayName : 'Angular' , localizationIdStart : 100 } ,
31
- 'aurelia' : { dotNetPackageId : dotNetPackages . extra , dir : '../../templates/AureliaSpa/' , dotNetNewId : 'Aurelia' , displayName : 'Aurelia' , localizationIdStart : 200 } ,
32
- 'knockout' : { dotNetPackageId : dotNetPackages . extra , dir : '../../templates/KnockoutSpa/' , dotNetNewId : 'Knockout' , displayName : 'Knockout.js' , localizationIdStart : 300 } ,
33
- 'react-redux' : { dotNetPackageId : dotNetPackages . builtIn , dir : '../../templates/ReactReduxSpa/' , dotNetNewId : 'ReactRedux' , displayName : 'React.js and Redux' , localizationIdStart : 400 } ,
34
- 'react' : { dotNetPackageId : dotNetPackages . builtIn , dir : '../../templates/ReactSpa/' , dotNetNewId : 'React' , displayName : 'React.js' , localizationIdStart : 500 } ,
35
- 'vue' : { dotNetPackageId : dotNetPackages . extra , dir : '../../templates/VueSpa/' , dotNetNewId : 'Vue' , displayName : 'Vue.js' , localizationIdStart : 600 }
30
+ 'angular' : { dotNetPackageId : dotNetPackages . builtIn , dir : '../../templates/AngularSpa/' , dotNetNewId : 'Angular' , displayName : 'Angular' , localizationIdStart : 1100 } ,
31
+ 'aurelia' : { dotNetPackageId : dotNetPackages . extra , dir : '../../templates/AureliaSpa/' , dotNetNewId : 'Aurelia' , displayName : 'Aurelia' , localizationIdStart : 1200 } ,
32
+ 'knockout' : { dotNetPackageId : dotNetPackages . extra , dir : '../../templates/KnockoutSpa/' , dotNetNewId : 'Knockout' , displayName : 'Knockout.js' , localizationIdStart : 1300 } ,
33
+ 'react-redux' : { dotNetPackageId : dotNetPackages . builtIn , dir : '../../templates/ReactReduxSpa/' , dotNetNewId : 'ReactRedux' , displayName : 'React.js and Redux' , localizationIdStart : 1400 } ,
34
+ 'react' : { dotNetPackageId : dotNetPackages . builtIn , dir : '../../templates/ReactSpa/' , dotNetNewId : 'React' , displayName : 'React.js' , localizationIdStart : 1500 } ,
35
+ 'vue' : { dotNetPackageId : dotNetPackages . extra , dir : '../../templates/VueSpa/' , dotNetNewId : 'Vue' , displayName : 'Vue.js' , localizationIdStart : 1600 }
36
36
} ;
37
37
38
38
function isTextFile ( filename : string ) : boolean {
@@ -258,8 +258,8 @@ function buildDotNetNewNuGetPackage(packageId: string) {
258
258
259
259
fs . writeFileSync ( path . join ( templateConfigDir , 'vs-2017.3.host.json' ) , JSON . stringify ( {
260
260
$schema : 'http://json.schemastore.org/vs-2017.3.host' ,
261
- name : { text : templateConfig . displayName , package : localizationPackageGuid , id : localisedNameId . toString ( ) } ,
262
- description : { text : `ASP.NET Core application with ${ templateConfig . displayName } ` , package : localizationPackageGuid , id : localisedDescId . toString ( ) } ,
261
+ name : { text : templateConfig . displayName , package : webToolsVSPackageGuid , id : localisedNameId . toString ( ) } ,
262
+ description : { text : `A project template for creating an ASP.NET Core application with ${ templateConfig . displayName } ` , package : webToolsVSPackageGuid , id : localisedDescId . toString ( ) } ,
263
263
order : 301 ,
264
264
icon : 'icon.png' ,
265
265
learnMoreLink : 'https://github.com/aspnet/JavaScriptServices' ,
0 commit comments