Added nuget packages, handling empty return types and fixes.

This commit is contained in:
Marcin Stefaniuk
2016-05-17 12:58:50 +02:00
parent 8fc25d9aad
commit 3a2cbd8904
6 changed files with 173 additions and 112 deletions

View File

@@ -91,6 +91,9 @@ public class NancyFXServerCodegen extends AbstractCSharpCodegen {
apiPackage = packageName + ".Api";
modelPackage = packageName + ".Models";
supportingFiles.add(new SupportingFile("ApiException.mustache", sourceFolder, "ApiException.cs"));
supportingFiles.add(new SupportingFile("packages.config.mustache", sourceFolder, "packages.config"));
if (optionalProjectFileFlag) {
supportingFiles.add(new SupportingFile("Solution.mustache", "", packageName + ".sln"));
supportingFiles.add(new SupportingFile("Project.mustache", sourceFolder, packageName + ".csproj"));