From ee81ada15f281d67c7097ef81c7769a501cdbdf2 Mon Sep 17 00:00:00 2001 From: Chris Bacon Date: Mon, 18 Jul 2016 15:01:22 +0100 Subject: [PATCH 1/2] Generated libraries target netstandard1.3 --- .../___package_name___.csproj.tmpl | 64 +++++++++++++++++++ .../NetStandard/project.json.tmpl | 14 ++++ .../___package_name___.nuspec.tmpl | 10 +++ 3 files changed, 88 insertions(+) create mode 100644 ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/NetStandard/___package_name___.csproj.tmpl create mode 100644 ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/NetStandard/project.json.tmpl diff --git a/ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/NetStandard/___package_name___.csproj.tmpl b/ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/NetStandard/___package_name___.csproj.tmpl new file mode 100644 index 0000000000..95235a04f0 --- /dev/null +++ b/ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/NetStandard/___package_name___.csproj.tmpl @@ -0,0 +1,64 @@ + + + + + 14.0 + Debug + AnyCPU + {E5F5E62A-616D-4F0D-8508-A76D7E760619} + Library + Properties + {{ api.module.name }} + {{ api.module.name }} + en-US + 512 + {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + + + v5.0 + {{ api.module.name }}.xml + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + bin\ReleaseSigned\ + TRACE + true + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + + + + + + + + + + + + \ No newline at end of file diff --git a/ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/NetStandard/project.json.tmpl b/ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/NetStandard/project.json.tmpl new file mode 100644 index 0000000000..4a43d2a93c --- /dev/null +++ b/ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/NetStandard/project.json.tmpl @@ -0,0 +1,14 @@ +{ + "supports": {}, + "dependencies": { + "Google.Apis": "{{ features.releaseVersion }}", + "Google.Apis.Core": "{{ features.releaseVersion }}", + "Newtonsoft.Json": "9.0.1", + "System.IO": "4.1.0", + "System.Runtime": "4.1.0", + "System.Threading.Tasks": "4.0.11" + }, + "frameworks": { + "netstandard1.3": {} + } +} \ No newline at end of file diff --git a/ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/___package_name___.nuspec.tmpl b/ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/___package_name___.nuspec.tmpl index e71de6d75d..34c494471c 100644 --- a/ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/___package_name___.nuspec.tmpl +++ b/ClientGenerator/src/googleapis/codegen/languages/csharp/default/templates/___package_name___/___package_name___.nuspec.tmpl @@ -16,6 +16,8 @@ - .NET Framework 4 and 4.5 + - NetStandard1.3 + - Windows Store apps - Windows Phone 8 and 8.1 @@ -30,6 +32,10 @@ Google + + {% if api.authscopes %} + {% endif %} +