Skip to content

Commit 1978801

Browse files
committed
Build against the lowest supported NuGet version for dependencies
Workaround problem where we are compiled against a higher version than NuGet installs and configures in the assembly binding redirects for consuming users.
1 parent 7d179a2 commit 1978801

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

paket.dependencies

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ source https://www.nuget.org/api/v2
33
redirects: on
44

55
nuget EWSoftware.SHFB = 2014.11.22-beta
6-
nuget Flurl.Http.Signed
7-
nuget Flurl.Signed
6+
nuget Flurl.Http.Signed ~> 0.7.0
7+
nuget Flurl.Signed ~> 1.0
88
nuget ILMerge
9-
nuget Marvin.JsonPatch.Signed
9+
nuget Marvin.JsonPatch.Signed ~> 0.7.0
1010
nuget Moq
11-
nuget Newtonsoft.Json
11+
nuget Newtonsoft.Json ~> 6.0
1212
nuget NuGet.CommandLine
1313
nuget SharpZipLib
1414
nuget SimpleRESTServices = 1.3.0.1

paket.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ NUGET
1313
PCLStorage (>= 0.9.6) - framework: portable-net45+sl50+win+wpa81+wp80
1414
Flurl.Signed (1.0.10)
1515
ilmerge (2.14.1208)
16-
Marvin.JsonPatch.Signed (0.9)
16+
Marvin.JsonPatch.Signed (0.7)
1717
Newtonsoft.Json (>= 6.0.4)
1818
Microsoft.Bcl (1.1.10) - framework: portable-net45+sl50+win+wpa81+wp80
1919
Microsoft.Bcl.Build (>= 1.0.14)
@@ -24,7 +24,7 @@ NUGET
2424
Microsoft.Bcl (>= 1.1.10)
2525
Microsoft.Bcl.Build (>= 1.0.14)
2626
Moq (4.2.1510.2205)
27-
Newtonsoft.Json (8.0.3)
27+
Newtonsoft.Json (6.0.8)
2828
NuGet.CommandLine (3.4.3)
2929
PCLStorage (1.0.2) - framework: portable-net45+sl50+win+wpa81+wp80
3030
Microsoft.Bcl (>= 1.1.6) - framework: net10, net11, net20, net30, net35, net40, net40-full

src/Samples/FSharpCodeSamples/app.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<dependentAssembly>
66
<Paket>True</Paket>
77
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
8-
<bindingRedirect oldVersion="0.0.0.0-999.999.999.999" newVersion="8.0.0.0" />
8+
<bindingRedirect oldVersion="0.0.0.0-999.999.999.999" newVersion="6.0.0.0" />
99
</dependentAssembly>
1010
</assemblyBinding></runtime></configuration>

src/corelib/app.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<dependentAssembly>
66
<Paket>True</Paket>
77
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
8-
<bindingRedirect oldVersion="0.0.0.0-999.999.999.999" newVersion="8.0.0.0" />
8+
<bindingRedirect oldVersion="0.0.0.0-999.999.999.999" newVersion="6.0.0.0" />
99
</dependentAssembly>
1010
</assemblyBinding></runtime></configuration>

src/testing/integration/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<dependentAssembly>
1212
<Paket>True</Paket>
1313
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
14-
<bindingRedirect oldVersion="0.0.0.0-999.999.999.999" newVersion="8.0.0.0" />
14+
<bindingRedirect oldVersion="0.0.0.0-999.999.999.999" newVersion="6.0.0.0" />
1515
</dependentAssembly>
1616
</assemblyBinding></runtime></configuration>

src/testing/unit/app.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<dependentAssembly>
66
<Paket>True</Paket>
77
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
8-
<bindingRedirect oldVersion="0.0.0.0-999.999.999.999" newVersion="8.0.0.0" />
8+
<bindingRedirect oldVersion="0.0.0.0-999.999.999.999" newVersion="6.0.0.0" />
99
</dependentAssembly>
1010
</assemblyBinding></runtime></configuration>

0 commit comments

Comments
 (0)