Open kentcb opened 5 years ago
I am getting this same error with just a single nuget dependency
#addin "nuget:?package=ServiceStack&version=5.0.2&loaddependencies=true"
Task("Build")
.Does(() => Console.WriteLine("Oh, hai"));
RunTarget(Argument("target", "Build"));
System.Net.Http.WinHttpHandler
shows up twice as being referenced by ServiceStack
The addin ServiceStack will reference System.Net.Http.WinHttpHandler.dll.
The addin ServiceStack will reference System.Net.Http.WinHttpHandler.dll.
I can reproduce this on both Cake version 0.30.0 and 0.32.1
I get this error on the dncore version of cake pretty much any time I try and have &loaddependencies=true on more than one addin. Full framework doesn't get it ever.
What You Are Seeing?
I'm attempting to switch from manually loading a slew of NuGets, to loading only the "main" ones and using
loaddependencies
to get the rest.First of all, attempting to run my script is incredibly slow (even a second time once the cache is primed). Secondly, it gives me an error:
What is Expected?
That it works or gives me a more useful error.
What version of Cake are you using?
I tried with both
0.28.1
and0.32.1
.Are you running on a 32 or 64 bit system?
64-bit
What environment are you running on? Windows? Linux? Mac?
Windows, but running the build inside a Linux Docker container.
How Did You Get This To Happen? (Steps to Reproduce)
Just running this puppy:
Output Log
I've upload the full diagnostic log here.