From e1348e7871222315dbb2d89d25211215f57581fd Mon Sep 17 00:00:00 2001 From: wing328 Date: Sun, 10 Jan 2016 02:29:58 +0800 Subject: [PATCH] add new files for c# --- .../main/resources/csharp/compile-mono.sh.mustache | 12 ++++++++++++ .../main/resources/csharp/packages.config.mustache | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 modules/swagger-codegen/src/main/resources/csharp/compile-mono.sh.mustache create mode 100644 modules/swagger-codegen/src/main/resources/csharp/packages.config.mustache diff --git a/modules/swagger-codegen/src/main/resources/csharp/compile-mono.sh.mustache b/modules/swagger-codegen/src/main/resources/csharp/compile-mono.sh.mustache new file mode 100644 index 00000000000..9472dcc8d3d --- /dev/null +++ b/modules/swagger-codegen/src/main/resources/csharp/compile-mono.sh.mustache @@ -0,0 +1,12 @@ +wget -nc https://nuget.org/nuget.exe; +mozroots --import --sync +mono nuget.exe install vendor/packages.config -o vendor; +mkdir -p bin; +mcs -sdk:45 -r:vendor/Newtonsoft.Json.8.0.2/lib/net45/Newtonsoft.Json.dll,\ +vendor/RestSharp.105.2.3/lib/net45/RestSharp.dll,\ +System.Runtime.Serialization.dll \ +-target:library \ +-out:bin/{{packageName}}.dll \ +-recurse:'src/*.cs' \ +-doc:bin/{{packageName}}.xml \ +-platform:anycpu diff --git a/modules/swagger-codegen/src/main/resources/csharp/packages.config.mustache b/modules/swagger-codegen/src/main/resources/csharp/packages.config.mustache new file mode 100644 index 00000000000..c87bbb79fa6 --- /dev/null +++ b/modules/swagger-codegen/src/main/resources/csharp/packages.config.mustache @@ -0,0 +1,5 @@ + + + + +