What You Are Seeing?
An exception was thrown while invoking the constructor 'Void .ctor(IFileSystem, ICakeEnvironment, INuGetContentResolver, ICakeLog, ICakeConfiguration)' on type 'NuGetPackageInstaller'. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: path1
What is Expected?
Expected to get it working
What version of Cake are you using?
0.35.0
Are you running on a 32 or 64 bit system?
x64
What environment are you running on? Windows? Linux? Mac?
NAME="Linux Mint"
VERSION="19.1 (Tessa)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19.1"
VERSION_ID="19.1"
How Did You Get This To Happen? (Steps to Reproduce)
I'm using bootstap sh script with sample cake.build file in the root
Output Log
./build.sh --verbosity=Diagnostic
Feeds used:
/home/disposer/.nuget/packages/
https://api.nuget.org/v3/index.json
All packages listed in /home/disposer/work/dfin/venue-cake/tools/packages.config are already installed.
Module directory does not exist.
NuGet Config not specified. Will use NuGet default mechanism for resolving it.
Error: Autofac.Core.DependencyResolutionException: An exception was thrown while activating Cake.Commands.BuildCommand -> Cake.Core.Scripting.ScriptRunner -> Cake.Core.Scripting.Analysis.ScriptAnalyzer -> λ:Cake.Core.Scripting.Processors.Loading.ILoadDirectiveProvider[] -> Cake.NuGet.NuGetLoadDirectiveProvider -> Cake.NuGet.Install.NuGetPackageInstaller. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(IFileSystem, ICakeEnvironment, INuGetContentResolver, ICakeLog, ICakeConfiguration)' on type 'NuGetPackageInstaller'. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: path1
at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in <65984520577646ec9044386ec4a7b3dd>:0
at NuGet.Common.NuGetEnvironment.GetFolderPath (NuGet.Common.NuGetFolderPath folder) [0x00058] in <c9b6d8ba44d840a594d9bae9ddd53803>:0
at NuGet.Common.NuGetEnvironment.GetFolderPath (NuGet.Common.NuGetFolderPath folder) [0x00064] in <c9b6d8ba44d840a594d9bae9ddd53803>:0
at NuGet.Configuration.XPlatMachineWideSetting..ctor () [0x0000c] in <d9bf5a3137394fefa4038f4faad72388>:0
at Cake.NuGet.Install.NuGetPackageInstaller..ctor (Cake.Core.IO.IFileSystem fileSystem, Cake.Core.ICakeEnvironment environment, Cake.NuGet.INuGetContentResolver contentResolver, Cake.Core.Diagnostics.ICakeLog log, Cake.Core.Configuration.ICakeConfiguration config) [0x00109] in <cba3a8dab4d847a1a02801159438f04a>:0
at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,object[])
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate () [0x0008f] in <2fad6ed004784647b9555cb639266f73>:0
--- End of inner exception stack trace ---
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate () [0x00113] in <2fad6ed004784647b9555cb639266f73>:0
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance (Autofac.IComponentContext context, System.Collections.Generic.IEnumerable`1[T] parameters) [0x000b2] in <2fad6ed004784647b9555cb639266f73>:0
at Autofac.Core.Resolving.InstanceLookup.Activate (System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& decoratorTarget) [0x0002c] in <2fad6ed004784647b9555cb639266f73>:0
--- End of inner exception stack trace ---
at Autofac.Core.Resolving.InstanceLookup.Activate (System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& decoratorTarget) [0x00071] in <2fad6ed004784647b9555cb639266f73>:0
at Autofac.Core.Resolving.InstanceLookup.Execute () [0x0007f] in <2fad6ed004784647b9555cb639266f73>:0
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance (Autofac.Core.ISharingLifetimeScope currentOperationScope, Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00071] in <2fad6ed004784647b9555cb639266f73>:0
at Autofac.Core.Resolving.ResolveOperation.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <2fad6ed004784647b9555cb639266f73>:0
at Autofac.Core.Resolving.ResolveOperation.Execute (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00016] in <2fad6ed004784647b9555cb639266f73>:0
at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00041] in <2fad6ed004784647b9555cb639266f73>:0
at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure)
at Cake.Commands.CommandFactory.CreateBuildCommand () [0x00000] in <a105507eb0df4ed3b55d00ab6c3a93e0>:0
at Cake.CakeApplication.CreateCommand (Cake.CakeOptions options) [0x000ab] in <a105507eb0df4ed3b55d00ab6c3a93e0>:0
at Cake.CakeApplication.Run (Cake.CakeOptions options) [0x0000e] in <a105507eb0df4ed3b55d00ab6c3a93e0>:0
at Cake.Program.Main () [0x000d1] in <a105507eb0df4ed3b55d00ab6c3a93e0>:0
What You Are Seeing?
An exception was thrown while invoking the constructor 'Void .ctor(IFileSystem, ICakeEnvironment, INuGetContentResolver, ICakeLog, ICakeConfiguration)' on type 'NuGetPackageInstaller'. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: path1
What is Expected?
Expected to get it working
What version of Cake are you using?
0.35.0
Are you running on a 32 or 64 bit system?
x64
What environment are you running on? Windows? Linux? Mac?
NAME="Linux Mint"
VERSION="19.1 (Tessa)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19.1"
VERSION_ID="19.1"
How Did You Get This To Happen? (Steps to Reproduce)
I'm using bootstap sh script with sample cake.build file in the root
Output Log