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 @@ + + + + +