Skip to content

Instantly share code, notes, and snippets.

@Redth

Redth/build.cake Secret

Created Apr 23, 2018
Embed
What would you like to do?
#addin nuget:?package=Cake.Json&version=3.0.0
// #addin nuget:?package=Newtonsoft.Json&version=9.0.1
// #addin nuget:?package=Newtonsoft.Json&version=11.0.2
Compiling build script...
(2603,12): error CS1705: Assembly 'Cake.Json' with identity 'Cake.Json, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version than referenced assembly 'Newtonsoft.Json' with identity 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
(2609,12): error CS1705: Assembly 'Cake.Json' with identity 'Cake.Json, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version than referenced assembly 'Newtonsoft.Json' with identity 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
Error: Cake.Core.CakeException: Error(s) occurred when compiling build script:
(2603,12): error CS1705: Assembly 'Cake.Json' with identity 'Cake.Json, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version than referenced assembly 'Newtonsoft.Json' with identity 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
(2609,12): error CS1705: Assembly 'Cake.Json' with identity 'Cake.Json, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version than referenced assembly 'Newtonsoft.Json' with identity 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
at Cake.Scripting.Roslyn.RoslynScriptSession.Execute (Cake.Core.Scripting.Script script) [0x00182] in <f2dfd1d7ff874bb5925674ed0d0fc83d>:0
at Cake.Core.Scripting.ScriptRunner.Run (Cake.Core.Scripting.IScriptHost host, Cake.Core.IO.FilePath scriptPath, System.Collections.Generic.IDictionary`2[TKey,TValue] arguments) [0x00358] in <bf8648e2e0a54f859ebcbb1728e8c9cf>:0
at Cake.Commands.BuildCommand.Execute (Cake.CakeOptions options) [0x00026] in <f2dfd1d7ff874bb5925674ed0d0fc83d>:0
at Cake.CakeApplication.Run (Cake.CakeOptions options) [0x00015] in <f2dfd1d7ff874bb5925674ed0d0fc83d>:0
at Cake.Program.Main () [0x000d1] in <f2dfd1d7ff874bb5925674ed0d0fc83d>:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment