{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/894","labels_url":"https://api.github.com/repos/NuGet/Home/issues/894/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/894/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/894/events","html_url":"https://github.com/NuGet/Home/issues/894","id":93398383,"number":894,"title":"Update-Package fails in VS with failure to modify app.config ","user":{"login":"TimLovellSmith","id":2711795,"avatar_url":"https://avatars.githubusercontent.com/u/2711795?v=3","gravatar_id":"","url":"https://api.github.com/users/TimLovellSmith","html_url":"https://github.com/TimLovellSmith","followers_url":"https://api.github.com/users/TimLovellSmith/followers","following_url":"https://api.github.com/users/TimLovellSmith/following{/other_user}","gists_url":"https://api.github.com/users/TimLovellSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/TimLovellSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimLovellSmith/subscriptions","organizations_url":"https://api.github.com/users/TimLovellSmith/orgs","repos_url":"https://api.github.com/users/TimLovellSmith/repos","events_url":"https://api.github.com/users/TimLovellSmith/events{/privacy}","received_events_url":"https://api.github.com/users/TimLovellSmith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-06T23:11:34Z","updated_at":"2015-07-06T23:29:34Z","closed_at":null,"body":"```\r\n>Update-Package xunit.core -Pre -IgnoreDependencies\r\nAttempting to gather dependencies information for multiple packages with respect to project 'Provisioning\\AzureCache.ResourceModel.Tests', targeting '.NETFramework,Version=v4.5'\r\nAttempting to resolve dependencies for multiple packages\r\nResolving actions install multiple packages\r\nRemoved package 'xunit.core 2.0.0' from 'packages.config'\r\nSuccessfully uninstalled 'xunit.core 2.0.0' from AzureCache.ResourceModel.Tests\r\nAdding package 'xunit.core.2.1.0-beta3-build3029' to folder 'C:\\repo\\cacheprototype\\packages'\r\nAdded package 'xunit.core.2.1.0-beta3-build3029' to folder 'C:\\repo\\cacheprototype\\packages'\r\nAdded package 'xunit.core.2.1.0-beta3-build3029' to 'packages.config'\r\nSuccessfully installed 'xunit.core 2.1.0-beta3-build3029' to AzureCache.ResourceModel.Tests\r\nInstall failed. Rolling back...\r\nRemoved package 'xunit.core 2.1.0-beta3-build3029' from 'packages.config'\r\nPackage 'xunit.core 2.0.0' already exists in folder 'C:\\repo\\cacheprototype\\packages'\r\nAdded package 'xunit.core 2.0.0' to 'packages.config'\r\nRemoving package 'xunit.core 2.1.0-beta3-build3029' from folder 'C:\\repo\\cacheprototype\\packages'\r\nRemoved package 'xunit.core 2.1.0-beta3-build3029' from folder 'C:\\repo\\cacheprototype\\packages'\r\nUpdate-Package : Cannot add the file 'app.config'. There is already a linked file in this folder with the same name.\r\nAt line:1 char:1\r\n+ Update-Package xunit.core -Pre -IgnoreDependencies\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [Update-Package], Exception\r\n    + FullyQualifiedErrorId : NuGetC\r\n```\r\n\r\n\r\nStack trace:\r\n\r\n```\r\n \tmscorlib.dll!System.RuntimeMethodHandle.GetDeclaringType(System.IRuntimeMethodInfo method)\tUnknown\r\n\tmscorlib.dll!System.Delegate.GetMethodImpl()\tUnknown\r\n \tmscorlib.dll!System.MulticastDelegate.GetMethodImpl()\tUnknown\r\n \tmscorlib.dll!System.Threading.Tasks.Task.ScheduleAndStart(bool needsProtection)\tUnknown\r\n \tmscorlib.dll!System.Threading.Tasks.Task.InternalStartNew(System.Threading.Tasks.Task creatingTask, System.Delegate action, object state, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskScheduler scheduler, System.Threading.Tasks.TaskCreationOptions options, System.Threading.Tasks.InternalTaskOptions internalOptions, ref System.Threading.StackCrawlMark stackMark)\tUnknown\r\n \tmscorlib.dll!System.Threading.Tasks.TaskFactory.StartNew(System.Action action, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskCreationOptions creationOptions, System.Threading.Tasks.TaskScheduler scheduler)\tUnknown\r\n \tMicrosoft.VisualStudio.Threading.dll!Microsoft.VisualStudio.Threading.AwaitExtensions.TaskSchedulerAwaiter.OnCompleted(System.Action continuation)\tUnknown\r\n \tmscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.AwaitOnCompleted<Microsoft.VisualStudio.Threading.AwaitExtensions.TaskSchedulerAwaiter,Microsoft.VisualStudio.PlatformUI.Diagnostics.DiagnosticsPackage..<AssemblyLoadHandler>b__1>(ref Microsoft.VisualStudio.Threading.AwaitExtensions.TaskSchedulerAwaiter awaiter, ref Microsoft.VisualStudio.PlatformUI.Diagnostics.DiagnosticsPackage..<AssemblyLoadHandler>b__1 stateMachine)\tUnknown\r\n \tMicrosoft.VisualStudio.Shell.UI.Internal.dll!Microsoft.VisualStudio.PlatformUI.Diagnostics.DiagnosticsPackage.AssemblyLoadHandler()\tUnknown\r\n \tmscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.VisualStudio.PlatformUI.Diagnostics.DiagnosticsPackage..<AssemblyLoadHandler>b__1>(ref Microsoft.VisualStudio.PlatformUI.Diagnostics.DiagnosticsPackage..<AssemblyLoadHandler>b__1 stateMachine)\tUnknown\r\n \tMicrosoft.VisualStudio.Shell.UI.Internal.dll!Microsoft.VisualStudio.PlatformUI.Diagnostics.DiagnosticsPackage.AssemblyLoadHandler.AnonymousMethod__1()\tUnknown\r\n \tMicrosoft.VisualStudio.Threading.dll!Microsoft.VisualStudio.Threading.JoinableTaskFactory.RunAsync(System.Func<System.Threading.Tasks.Task> asyncMethod, bool synchronouslyBlocking, Microsoft.VisualStudio.Threading.JoinableTaskCreationOptions creationOptions, System.Delegate entrypointOverride)\tUnknown\r\n \tMicrosoft.VisualStudio.Shell.UI.Internal.dll!Microsoft.VisualStudio.PlatformUI.Diagnostics.DiagnosticsPackage.AssemblyLoadHandler(object sender, System.AssemblyLoadEventArgs args)\tUnknown\r\n \tmscorlib.dll!System.AppDomain.OnAssemblyLoadEvent(System.Reflection.RuntimeAssembly LoadedAssembly)\tUnknown\r\n \t[Native to Managed Transition]\t\r\n \tmscorlib.dll!System.Reflection.RuntimeAssembly.nLoad(System.Reflection.AssemblyName fileName, string codeBase, System.Security.Policy.Evidence assemblySecurity, System.Reflection.RuntimeAssembly locationHint, ref System.Threading.StackCrawlMark stackMark, System.IntPtr pPrivHostBinder, bool throwOnFileNotFound, bool forIntrospection, bool suppressSecurityChecks)\tUnknown\r\n \tmscorlib.dll!System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity, System.Reflection.RuntimeAssembly reqAssembly, ref System.Threading.StackCrawlMark stackMark, System.IntPtr pPrivHostBinder, bool throwOnFileNotFound, bool forIntrospection, bool suppressSecurityChecks)\tUnknown\r\n \tmscorlib.dll!System.Reflection.RuntimeAssembly.InternalLoadFrom(string assemblyFile, System.Security.Policy.Evidence securityEvidence, byte[] hashValue, System.Configuration.Assemblies.AssemblyHashAlgorithm hashAlgorithm, bool forIntrospection, bool suppressSecurityChecks, ref System.Threading.StackCrawlMark stackMark)\tUnknown\r\n \tmscorlib.dll!System.Reflection.Assembly.LoadFrom(string assemblyFile)\tUnknown\r\n \tEvaluation of: Unknown evaluation\t\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddFileToContainer(string fullPath, string folderPath, EnvDTE.ProjectItems container) Line 280\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddFileToProjectAsync(string path) Line 269\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddFileCoreAsync(string path, System.Action addFile) Line 219\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddFile() Line 170\tC#\r\n \tMicrosoft.VisualStudio.Threading.dll!Microsoft.VisualStudio.Threading.JoinableTaskFactory.RunAsync(System.Func<System.Threading.Tasks.Task> asyncMethod, bool synchronouslyBlocking, Microsoft.VisualStudio.Threading.JoinableTaskCreationOptions creationOptions, System.Delegate entrypointOverride)\tUnknown\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddFile(string path, System.IO.Stream stream) Line 166\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.BindingRedirectManager.Save(System.Xml.Linq.XDocument document) Line 177\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.BindingRedirectManager.AddBindingRedirects(System.Collections.Generic.IEnumerable<NuGet.PackageManagement.VisualStudio.AssemblyBinding> bindingRedirects) Line 102\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.RuntimeHelpers.AddBindingRedirectsAsync(NuGet.PackageManagement.ISolutionManager solutionManager, EnvDTE.Project envDTEProject, System.Collections.Generic.IDictionary<string,System.Collections.Generic.HashSet<string>> projectAssembliesCache, System.AppDomain domain, Microsoft.VisualStudio.Shell.Interop.IVsFrameworkMultiTargeting frameworkMultiTargeting) Line 145\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.RuntimeHelpers.AddBindingRedirectsAsync(EnvDTE.Project envDTEProject, System.Collections.Generic.HashSet<string> visitedProjects, NuGet.PackageManagement.VisualStudio.VSSolutionManager vsSolutionManager, System.AppDomain domain, System.Collections.Generic.Dictionary<string,System.Collections.Generic.HashSet<string>> projectAssembliesCache, Microsoft.VisualStudio.Shell.Interop.IVsFrameworkMultiTargeting frameworkMultiTargeting, NuGet.ProjectManagement.INuGetProjectContext nuGetProjectContext, System.Collections.Generic.IDictionary<string,System.Collections.Generic.List<EnvDTE.Project>> dependentEnvDTEProjectsDictionary) Line 80\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.RuntimeHelpers.AddBindingRedirectsAsync(EnvDTE.Project envDTEProject, System.Collections.Generic.HashSet<string> visitedProjects, NuGet.PackageManagement.VisualStudio.VSSolutionManager vsSolutionManager, System.AppDomain domain, System.Collections.Generic.Dictionary<string,System.Collections.Generic.HashSet<string>> projectAssembliesCache, Microsoft.VisualStudio.Shell.Interop.IVsFrameworkMultiTargeting frameworkMultiTargeting, NuGet.ProjectManagement.INuGetProjectContext nuGetProjectContext, System.Collections.Generic.IDictionary<string,System.Collections.Generic.List<EnvDTE.Project>> dependentEnvDTEProjectsDictionary) Line 93\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.RuntimeHelpers.AddBindingRedirectsAsync(NuGet.PackageManagement.VisualStudio.VSSolutionManager vsSolutionManager, EnvDTE.Project envDTEProject, System.AppDomain domain, Microsoft.VisualStudio.Shell.Interop.IVsFrameworkMultiTargeting frameworkMultiTargeting, System.Collections.Generic.IDictionary<string,System.Collections.Generic.List<EnvDTE.Project>> dependentEnvDTEProjectsDictionary, NuGet.ProjectManagement.INuGetProjectContext nuGetProjectContext) Line 64\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.RuntimeHelpers.AddBindingRedirectsAsync(EnvDTE.Project envDTEProject, NuGet.PackageManagement.VisualStudio.VSSolutionManager vsSolutionManager, Microsoft.VisualStudio.Shell.Interop.IVsFrameworkMultiTargeting frameworkMultiTargeting, NuGet.ProjectManagement.INuGetProjectContext nuGetProjectContext) Line 41\tC#\r\n \tNuGet.PackageManagement.VisualStudio.dll!NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddBindingRedirects() Line 716\tC#\r\n \tuser32.dll!77315333()\tUnknown\r\n \tuser32.dll!772f8f90()\tUnknown\r\n \tuser32.dll!772f8891()\tUnknown\r\n \tmsenv.dll!314f36a8()\tUnknown\r\n \tmsenv.dll!314f0b7d()\tUnknown\r\n \tmsenv.dll!314f0ad3()\tUnknown\r\n \tmsenv.dll!314f0a17()\tUnknown\r\n \tmsenv.dll!314f09de()\tUnknown\r\n \tmsenv.dll!314f0944()\tUnknown\r\n \tmsenv.dll!313ca06f()\tUnknown\r\n \tdevenv.exe!2f07932e()\tUnknown\r\n \tdevenv.exe!2f079c3b()\tUnknown\r\n \tdevenv.exe!2f07a60f()\tUnknown\r\n \tdevenv.exe!2f07a72f()\tUnknown\r\n \tkernel32.dll!75312e74()\tUnknown\r\n \tntdll.dll!77cf9511()\tUnknown\r\n \tntdll.dll!77cf94dc()\tUnknown\r\n \t[Resuming Async Method]\t\r\n \tmscorlib.dll!System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.InvokeMoveNext(object stateMachine)\tUnknown\r\n \tmscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)\tUnknown\r\n \tmscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)\tUnknown\r\n \tmscorlib.dll!System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()\tUnknown\r\n \tmscorlib.dll!System.Runtime.CompilerServices.AsyncMethodBuilderCore.OutputAsyncCausalityEvents.AnonymousMethod__1()\tUnknown\r\n \tmscorlib.dll!System.Runtime.CompilerServices.AsyncMethodBuilderCore.ContinuationWrapper.Invoke()\tUnknown\r\n \tMicrosoft.VisualStudio.Threading.dll!Microsoft.VisualStudio.Threading.JoinableTaskFactory.SingleExecuteProtector.TryExecute()\tUnknown\r\n \tMicrosoft.VisualStudio.Threading.dll!Microsoft.VisualStudio.Threading.JoinableTaskFactory.SingleExecuteProtector..cctor.AnonymousMethod__20_0(object state)\tUnknown\r\n \tWindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs)\tUnknown\r\n \tWindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler)\tUnknown\r\n \tWindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl()\tUnknown\r\n \tWindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(object state)\tUnknown\r\n \tmscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)\tUnknown\r\n \tmscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)\tUnknown\r\n \tmscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)\tUnknown\r\n \tWindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke()\tUnknown\r\n \tWindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue()\tUnknown\r\n \tWindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled)\tUnknown\r\n \tWindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled)\tUnknown\r\n \tWindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o)\tUnknown\r\n \tWindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs)\tUnknown\r\n \tWindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler)\tUnknown\r\n \tWindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs)\tUnknown\r\n \tWindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam)\tUnknown\r\n \t[Native to Managed Transition]\t\r\n \t[Frames below may be incorrect and/or missing, no symbols loaded for user32.dll]\t\r\n```\r\n\r\nlocals:\r\n{NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddFileToProjectAsync}.ppath = \"app.config\"\r\n"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/119026909","html_url":"https://github.com/NuGet/Home/issues/894#issuecomment-119026909","issue_url":"https://api.github.com/repos/NuGet/Home/issues/894","id":119026909,"user":{"login":"TimLovellSmith","id":2711795,"avatar_url":"https://avatars.githubusercontent.com/u/2711795?v=3","gravatar_id":"","url":"https://api.github.com/users/TimLovellSmith","html_url":"https://github.com/TimLovellSmith","followers_url":"https://api.github.com/users/TimLovellSmith/followers","following_url":"https://api.github.com/users/TimLovellSmith/following{/other_user}","gists_url":"https://api.github.com/users/TimLovellSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/TimLovellSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimLovellSmith/subscriptions","organizations_url":"https://api.github.com/users/TimLovellSmith/orgs","repos_url":"https://api.github.com/users/TimLovellSmith/repos","events_url":"https://api.github.com/users/TimLovellSmith/events{/privacy}","received_events_url":"https://api.github.com/users/TimLovellSmith/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T23:29:34Z","updated_at":"2015-07-06T23:29:34Z","body":"If I remove+delete the file app.config from my project ResourceModel.Tests, the problem won't repro. Also, nuget won't recreate the app.config file."}}