{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/1119","labels_url":"https://api.github.com/repos/NuGet/Home/issues/1119/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/1119/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/1119/events","html_url":"https://github.com/NuGet/Home/issues/1119","id":99200524,"number":1119,"title":"Upgraded to VS2015 and latest NuGet 3.1 now I cannot upgrade, uninstall or install packages.","user":{"login":"Jaans","id":3510981,"avatar_url":"https://avatars.githubusercontent.com/u/3510981?v=3","gravatar_id":"","url":"https://api.github.com/users/Jaans","html_url":"https://github.com/Jaans","followers_url":"https://api.github.com/users/Jaans/followers","following_url":"https://api.github.com/users/Jaans/following{/other_user}","gists_url":"https://api.github.com/users/Jaans/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaans/subscriptions","organizations_url":"https://api.github.com/users/Jaans/orgs","repos_url":"https://api.github.com/users/Jaans/repos","events_url":"https://api.github.com/users/Jaans/events{/privacy}","received_events_url":"https://api.github.com/users/Jaans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T13:03:16Z","updated_at":"2015-08-05T17:00:43Z","closed_at":null,"body":"This is utterly frustrating. I cannot even uninstall a package and begin anew.\r\n\r\nWhen I try to uninstall, I get the following *BS* error. There is no such file (app.config) that it is complaining about (not on disk, not in project, not in source control, never was, it's a class library project!):\r\n\r\nWhat's going on?\r\n\r\n----------------------------------------------------------------------------------------\r\n\r\nAttempting to gather dependencies information for package 'NLog.4.0.1' with respect to project 'Reporting', targeting '.NETFramework,Version=v4.6'\r\nResolving actions to uninstall package 'NLog.4.0.1'\r\nResolved actions to uninstall package 'NLog.4.0.1'\r\nRemoved package 'NLog.4.0.1' from 'packages.config'\r\nRemoved reference 'NLog.dll' from project 'Reporting'\r\nSuccessfully uninstalled 'NLog.4.0.1' from Reporting\r\nInstall failed. Rolling back...\r\nFor adding package 'NLog.4.0.1' to project 'Reporting' that targets 'net46'.\r\nFor adding package 'NLog.4.0.1' to project 'Reporting' that targets 'net46'.\r\nPackage 'NLog.4.0.1' already exists in folder 'D:\\####\\####\\packages'\r\nAdded reference 'NLog' to project 'Reporting'.\r\nAdded package 'NLog.4.0.1' to 'packages.config'\r\nSystem.Runtime.InteropServices.COMException (0x80004005): Cannot add the file 'app.config'. There is already a linked file in this folder with the same name.\r\n   at EnvDTE.ProjectItems.AddFromFileCopy(String FilePath)\r\n   at NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddFileToContainer(String fullPath, String folderPath, ProjectItems container)\r\n   at NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.<AddFileToProjectAsync>d__31.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.<>c__DisplayClass26_0.<<AddFile>b__0>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()\r\n   at NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddFile(String path, Stream stream)\r\n   at NuGet.PackageManagement.VisualStudio.BindingRedirectManager.Save(XDocument document)\r\n   at NuGet.PackageManagement.VisualStudio.BindingRedirectManager.AddBindingRedirects(IEnumerable`1 bindingRedirects)\r\n   at NuGet.PackageManagement.VisualStudio.RuntimeHelpers.<AddBindingRedirectsAsync>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NuGet.PackageManagement.VisualStudio.RuntimeHelpers.<AddBindingRedirectsAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NuGet.PackageManagement.VisualStudio.RuntimeHelpers.<AddBindingRedirectsAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NuGet.PackageManagement.VisualStudio.RuntimeHelpers.<AddBindingRedirectsAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NuGet.PackageManagement.VisualStudio.RuntimeHelpers.<AddBindingRedirectsAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NuGet.PackageManagement.VisualStudio.RuntimeHelpers.<AddBindingRedirectsAsync>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.<<AddBindingRedirects>b__55_0>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()\r\n   at NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddBindingRedirects()\r\n   at NuGet.ProjectManagement.MSBuildNuGetProject.PostProcessAsync(INuGetProjectContext nuGetProjectContext, CancellationToken token)\r\n   at NuGet.PackageManagement.NuGetPackageManager.<ExecuteNuGetProjectActionsAsync>d__42.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at NuGet.PackageManagement.NuGetPackageManager.<ExecuteNuGetProjectActionsAsync>d__42.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NuGet.PackageManagement.UI.UIActionEngine.<ExecuteActionsAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NuGet.PackageManagement.UI.UIActionEngine.<PerformActionAsync>d__3.MoveNext()\r\n========== Finished ==========\r\n"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/128070488","html_url":"https://github.com/NuGet/Home/issues/1119#issuecomment-128070488","issue_url":"https://api.github.com/repos/NuGet/Home/issues/1119","id":128070488,"user":{"login":"yishaigalatzer","id":1238711,"avatar_url":"https://avatars.githubusercontent.com/u/1238711?v=3","gravatar_id":"","url":"https://api.github.com/users/yishaigalatzer","html_url":"https://github.com/yishaigalatzer","followers_url":"https://api.github.com/users/yishaigalatzer/followers","following_url":"https://api.github.com/users/yishaigalatzer/following{/other_user}","gists_url":"https://api.github.com/users/yishaigalatzer/gists{/gist_id}","starred_url":"https://api.github.com/users/yishaigalatzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yishaigalatzer/subscriptions","organizations_url":"https://api.github.com/users/yishaigalatzer/orgs","repos_url":"https://api.github.com/users/yishaigalatzer/repos","events_url":"https://api.github.com/users/yishaigalatzer/events{/privacy}","received_events_url":"https://api.github.com/users/yishaigalatzer/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T17:00:43Z","updated_at":"2015-08-05T17:00:43Z","body":"I have seen a report for this where there was a linked app.config inside the project - something like\r\n\r\n```\r\n  <ItemGroup>\r\n    <None Include=\"..\\..\\XXX\\App.config\">\r\n      <Link>XXX.exe.config</Link>\r\n      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r\n    </None>\r\n  </ItemGroup>\r\n```\r\n\r\nDo you have anything like that in your project?\r\n\r\nIf not are you able to share a repro project?"}}