Hi!
I'm getting a really annoying exception when I try to build my project, which has NuGet package restore enabled.
It seems like the error only occurs sometimes, but right now it's very frequent and quite annoying... What do you reckon, hardware issues? Bug in NuGet/somewhere else? I googled a bit but couldn't find anything really useful. This MSDN page http://msdn.microsoft.com/en-us/library/windows/desktop/aa366730(v=vs.85).aspx indicates that it could be caused when you perform LocalFree() and then try to write to the memory which has been freed...
Since the error only occurs sometimes, it's a bit hard to nail down, but it's awfully annoying. Sometimes I can get around it by building the whole solution (and not just an individual project), but sometimes this doesn't even help.
I haven't seen any similar problems in any other programs, as far as I can remember.
------ Build started: Project: MyCustomerLsoFeature, Configuration: Debug Any CPU ------
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error :
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.CAPI.CAPIUnsafe.CryptUnprotectData(IntPtr pDataIn, IntPtr ppszDataDescr, IntPtr pOptionalEntropy, IntPtr pvReserved, IntPtr pPromptStruct, UInt32 dwFlags, IntPtr pDataBlob)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.CAPI.CryptUnprotectData(IntPtr pDataIn, IntPtr ppszDataDescr, IntPtr pOptionalEntropy, IntPtr pvReserved, IntPtr pPromptStruct, UInt32 dwFlags, IntPtr pDataBlob)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.SettingsExtensions.DecryptString(String encryptedString)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.ReadCredential(String sourceName)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.<>c__DisplayClass4.<LoadPackageSources>b__2(KeyValuePair`2 p)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.LoadPackageSources()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProviderExtensions.GetEnabledPackageSources(IPackageSourceProvider provider)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProviderExtensions.GetAggregate(IPackageSourceProvider provider, IPackageRepositoryFactory factory, Boolean ignoreFailingRepositories)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Common.AggregateRepositoryHelper.CreateAggregateRepositoryFromSources(IPackageRepositoryFactory factory, IPackageSourceProvider sourceProvider, IEnumerable`1 sources)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.GetRepository()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.CreatePackageManager(IFileSystem fileSystem)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.InstallPackage(IFileSystem fileSystem, String packageId, SemanticVersion version, Boolean ignoreDependencies)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.<>c__DisplayClass7.<>c__DisplayClass9.<ExecuteInParallel>b__4()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.InnerInvoke()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.Execute()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.ThreadPoolWorkQueue.Dispatch()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error MSB3073: The command ""C:\Work\hg\MyCustomer.Lso\.nuget\nuget.exe" install "C:\Work\hg\MyCustomer.Lso\MyCustomerLsoFeature\packages.config" -source "" -o "C:\Work\hg\MyCustomer.Lso\packages"" exited with code -1073741819.
------ Build started: Project: MyCustomer.Lso.Modules.Entity, Configuration: Debug Any CPU ------
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error :
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.CAPI.CAPIUnsafe.CryptUnprotectData(IntPtr pDataIn, IntPtr ppszDataDescr, IntPtr pOptionalEntropy, IntPtr pvReserved, IntPtr pPromptStruct, UInt32 dwFlags, IntPtr pDataBlob)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.CAPI.CryptUnprotectData(IntPtr pDataIn, IntPtr ppszDataDescr, IntPtr pOptionalEntropy, IntPtr pvReserved, IntPtr pPromptStruct, UInt32 dwFlags, IntPtr pDataBlob)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.SettingsExtensions.DecryptString(String encryptedString)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.ReadCredential(String sourceName)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.<>c__DisplayClass4.<LoadPackageSources>b__2(KeyValuePair`2 p)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.LoadPackageSources()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProviderExtensions.GetEnabledPackageSources(IPackageSourceProvider provider)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProviderExtensions.GetAggregate(IPackageSourceProvider provider, IPackageRepositoryFactory factory, Boolean ignoreFailingRepositories)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Common.AggregateRepositoryHelper.CreateAggregateRepositoryFromSources(IPackageRepositoryFactory factory, IPackageSourceProvider sourceProvider, IEnumerable`1 sources)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.GetRepository()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.CreatePackageManager(IFileSystem fileSystem)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.InstallPackage(IFileSystem fileSystem, String packageId, SemanticVersion version, Boolean ignoreDependencies)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.<>c__DisplayClass7.<>c__DisplayClass9.<ExecuteInParallel>b__4()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.InnerInvoke()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.Execute()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.ThreadPoolWorkQueue.Dispatch()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error MSB3073: The command ""C:\Work\hg\MyCustomer.Lso\.nuget\nuget.exe" install "C:\Work\hg\MyCustomer.Lso\MyCustomer.Lso.Modules.Entity\packages.config" -source "" -o "C:\Work\hg\MyCustomer.Lso\packages"" exited with code -1073741819.
------ Build started: Project: MyCustomer.Lso.Modules.PackingInstructions, Configuration: Debug Any CPU ------
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error MSB3073: The command ""C:\Work\hg\MyCustomer.Lso\.nuget\nuget.exe" install "C:\Work\hg\MyCustomer.Lso\MyCustomer.Lso.Modules.PackingInstructions\packages.config" -source "" -o "C:\Work\hg\MyCustomer.Lso\packages"" exited with code -1073741819.
I'm getting a really annoying exception when I try to build my project, which has NuGet package restore enabled.
It seems like the error only occurs sometimes, but right now it's very frequent and quite annoying... What do you reckon, hardware issues? Bug in NuGet/somewhere else? I googled a bit but couldn't find anything really useful. This MSDN page http://msdn.microsoft.com/en-us/library/windows/desktop/aa366730(v=vs.85).aspx indicates that it could be caused when you perform LocalFree() and then try to write to the memory which has been freed...
Since the error only occurs sometimes, it's a bit hard to nail down, but it's awfully annoying. Sometimes I can get around it by building the whole solution (and not just an individual project), but sometimes this doesn't even help.
I haven't seen any similar problems in any other programs, as far as I can remember.
------ Build started: Project: MyCustomerLsoFeature, Configuration: Debug Any CPU ------
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error :
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.CAPI.CAPIUnsafe.CryptUnprotectData(IntPtr pDataIn, IntPtr ppszDataDescr, IntPtr pOptionalEntropy, IntPtr pvReserved, IntPtr pPromptStruct, UInt32 dwFlags, IntPtr pDataBlob)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.CAPI.CryptUnprotectData(IntPtr pDataIn, IntPtr ppszDataDescr, IntPtr pOptionalEntropy, IntPtr pvReserved, IntPtr pPromptStruct, UInt32 dwFlags, IntPtr pDataBlob)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.SettingsExtensions.DecryptString(String encryptedString)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.ReadCredential(String sourceName)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.<>c__DisplayClass4.<LoadPackageSources>b__2(KeyValuePair`2 p)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.LoadPackageSources()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProviderExtensions.GetEnabledPackageSources(IPackageSourceProvider provider)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProviderExtensions.GetAggregate(IPackageSourceProvider provider, IPackageRepositoryFactory factory, Boolean ignoreFailingRepositories)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Common.AggregateRepositoryHelper.CreateAggregateRepositoryFromSources(IPackageRepositoryFactory factory, IPackageSourceProvider sourceProvider, IEnumerable`1 sources)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.GetRepository()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.CreatePackageManager(IFileSystem fileSystem)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.InstallPackage(IFileSystem fileSystem, String packageId, SemanticVersion version, Boolean ignoreDependencies)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.<>c__DisplayClass7.<>c__DisplayClass9.<ExecuteInParallel>b__4()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.InnerInvoke()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.Execute()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.ThreadPoolWorkQueue.Dispatch()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error MSB3073: The command ""C:\Work\hg\MyCustomer.Lso\.nuget\nuget.exe" install "C:\Work\hg\MyCustomer.Lso\MyCustomerLsoFeature\packages.config" -source "" -o "C:\Work\hg\MyCustomer.Lso\packages"" exited with code -1073741819.
------ Build started: Project: MyCustomer.Lso.Modules.Entity, Configuration: Debug Any CPU ------
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error :
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.CAPI.CAPIUnsafe.CryptUnprotectData(IntPtr pDataIn, IntPtr ppszDataDescr, IntPtr pOptionalEntropy, IntPtr pvReserved, IntPtr pPromptStruct, UInt32 dwFlags, IntPtr pDataBlob)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.CAPI.CryptUnprotectData(IntPtr pDataIn, IntPtr ppszDataDescr, IntPtr pOptionalEntropy, IntPtr pvReserved, IntPtr pPromptStruct, UInt32 dwFlags, IntPtr pDataBlob)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.SettingsExtensions.DecryptString(String encryptedString)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.ReadCredential(String sourceName)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.<>c__DisplayClass4.<LoadPackageSources>b__2(KeyValuePair`2 p)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProvider.LoadPackageSources()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProviderExtensions.GetEnabledPackageSources(IPackageSourceProvider provider)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.PackageSourceProviderExtensions.GetAggregate(IPackageSourceProvider provider, IPackageRepositoryFactory factory, Boolean ignoreFailingRepositories)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Common.AggregateRepositoryHelper.CreateAggregateRepositoryFromSources(IPackageRepositoryFactory factory, IPackageSourceProvider sourceProvider, IEnumerable`1 sources)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.GetRepository()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.CreatePackageManager(IFileSystem fileSystem)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.InstallPackage(IFileSystem fileSystem, String packageId, SemanticVersion version, Boolean ignoreDependencies)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at NuGet.Commands.InstallCommand.<>c__DisplayClass7.<>c__DisplayClass9.<ExecuteInParallel>b__4()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.InnerInvoke()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.Execute()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading.ThreadPoolWorkQueue.Dispatch()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error : at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error MSB3073: The command ""C:\Work\hg\MyCustomer.Lso\.nuget\nuget.exe" install "C:\Work\hg\MyCustomer.Lso\MyCustomer.Lso.Modules.Entity\packages.config" -source "" -o "C:\Work\hg\MyCustomer.Lso\packages"" exited with code -1073741819.
------ Build started: Project: MyCustomer.Lso.Modules.PackingInstructions, Configuration: Debug Any CPU ------
C:\Work\hg\MyCustomer.Lso\.nuget\nuget.targets(58,9): error MSB3073: The command ""C:\Work\hg\MyCustomer.Lso\.nuget\nuget.exe" install "C:\Work\hg\MyCustomer.Lso\MyCustomer.Lso.Modules.PackingInstructions\packages.config" -source "" -o "C:\Work\hg\MyCustomer.Lso\packages"" exited with code -1073741819.