Selaa lähdekoodia

nuspec dependency fixes

Explicitly don't add any dependencies for "old" platforms, to avoid unnecessary
dependencies in those cases.

Fixes issue #1203.
Jon Skeet 9 vuotta sitten
vanhempi
commit
f1c5754f0f
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 10 0
      csharp/src/Google.Protobuf/Google.Protobuf.nuspec

+ 10 - 0
csharp/src/Google.Protobuf/Google.Protobuf.nuspec

@@ -15,6 +15,16 @@
     <copyright>Copyright 2015, Google Inc.</copyright>
     <tags>Protocol Buffers Binary Serialization Format Google proto proto3</tags>
     <dependencies>
+      <!-- Dependencies for older, monolithic-assembly platforms -->
+      <group targetFramework="net45" />
+      <group targetFramework="wp8" />
+      <group targetFramework="win8" />
+      <group targetFramework="wpa81" />
+      <group targetFramework="xamarin.ios" />
+      <group targetFramework="monotouch" />
+      <group targetFramework="monoandroid" />
+
+      <!-- Dependencies for newer, more granular platforms (.NET Core etc) -->
       <group targetFramework="dotnet">
         <dependency id="System.Collections" version="4.0.0" />
         <dependency id="System.Diagnostics.Debug" version="4.0.0" />