@@ -190,16 +190,11 @@ public void processOpts() {
190
190
supportingFiles .add (new SupportingFile ("gitignore" , packageFolder , ".gitignore" ));
191
191
supportingFiles .add (new SupportingFile ("appsettings.json" , packageFolder , "appsettings.json" ));
192
192
193
- //supportingFiles.add(new SupportingFile("Startup.mustache", packageFolder, "Startup.cs"));
194
-
195
193
supportingFiles .add (new SupportingFile ("validateModel.mustache" , packageFolder + File .separator + "Attributes" , "ValidateModelStateAttribute.cs" ));
196
194
supportingFiles .add (new SupportingFile ("web.config" , packageFolder , "web.config" ));
197
195
198
196
supportingFiles .add (new SupportingFile ("Properties" + File .separator + "launchSettings.json" , packageFolder + File .separator + "Properties" , "launchSettings.json" ));
199
197
200
- // supportingFiles.add(new SupportingFile("Filters" + File.separator + "BasePathFilter.mustache", packageFolder + File.separator + "Filters", "BasePathFilter.cs"));
201
- // supportingFiles.add(new SupportingFile("Filters" + File.separator + "GeneratePathParamsValidationFilter.mustache", packageFolder + File.separator + "Filters", "GeneratePathParamsValidationFilter.cs"));
202
-
203
198
supportingFiles .add (new SupportingFile ("wwwroot" + File .separator + "README.md" , packageFolder + File .separator + "wwwroot" , "README.md" ));
204
199
supportingFiles .add (new SupportingFile ("wwwroot" + File .separator + "index.html" , packageFolder + File .separator + "wwwroot" , "index.html" ));
205
200
supportingFiles .add (new SupportingFile ("wwwroot" + File .separator + "web.config" , packageFolder + File .separator + "wwwroot" , "web.config" ));
@@ -373,7 +368,7 @@ private void setAspNetCoreVersion() {
373
368
} else {
374
369
this .aspNetCoreVersion = optionValue ;
375
370
}
376
- if (!this .aspNetCoreVersion .equals ("2.0" ) && !this .aspNetCoreVersion .equals ("2.1" ) && !this .aspNetCoreVersion .equals ("2.2" )) {
371
+ if (!this .aspNetCoreVersion .equals ("2.0" ) && !this .aspNetCoreVersion .equals ("2.1" ) && !this .aspNetCoreVersion .equals ("2.2" ) && ! this . aspNetCoreVersion . equals ( "3.0" ) ) {
377
372
LOGGER .error ("version '" + this .aspNetCoreVersion + "' is not supported, switching to default version: '" + DEFAULT_ASP_NET_CORE_VERSION + "'" );
378
373
this .aspNetCoreVersion = DEFAULT_ASP_NET_CORE_VERSION ;
379
374
}
0 commit comments