- Added generation of .nuspec file
This commit is contained in:
Jakub Malek 2016-05-30 12:09:00 +02:00 committed by Jakub Malek
parent 1d167b709d
commit ba26df95e2
2 changed files with 13 additions and 0 deletions

View File

@ -98,6 +98,7 @@ public class NancyFXServerCodegen extends AbstractCSharpCodegen {
supportingFiles.add(new SupportingFile("parameters.mustache", sourceFile("Utils"), "Parameters.cs")); supportingFiles.add(new SupportingFile("parameters.mustache", sourceFile("Utils"), "Parameters.cs"));
supportingFiles.add(new SupportingFile("packages.config.mustache", sourceFolder(), "packages.config")); supportingFiles.add(new SupportingFile("packages.config.mustache", sourceFolder(), "packages.config"));
supportingFiles.add(new SupportingFile("nuspec.mustache", sourceFolder(), packageName + ".nuspec"));
if (optionalProjectFileFlag) { if (optionalProjectFileFlag) {
supportingFiles.add(new SupportingFile("Solution.mustache", "", packageName + ".sln")); supportingFiles.add(new SupportingFile("Solution.mustache", "", packageName + ".sln"));

View File

@ -0,0 +1,12 @@
<?xml version="1.0"?>
<package>
<metadata>
<id>{{packageName}}</id>
<title>{{packageName}}</title>
<version>{{{version}}}</version>
<authors>swagger-codegen</authors>
<owners>swagger-codegen</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>NancyFx {{packageName}} API</description>
</metadata>
</package>