gpt4 book ai didi

visual-studio-2015 - Visual Studio 15 CTP 项目引用错误 : An item with the caption "" already exists

转载 作者:行者123 更新时间:2023-12-01 03:30:10 26 4
gpt4 key购买 nike

我尝试使用 Visual Studio 2014 CTP 4 进行开发,但对于我打开的任何项目,我总是在项目加载时遇到相同的错误:

An item with the caption "" already exists in the tree with the same sort order as the item being added.



项目的引用为空,有警告标志或没有警告标志。

我该如何解决这个问题?

来自 myget.org/F/aspnetvnext 的 K 包
> C:\Users\user>kvm upgrade
Determining latest version
KRE-CLR-x86.1.0.0-beta2-10679 already installed.
Adding C:\Users\user\.kre\packages\KRE-CLR-x86.1.0.0-beta2-10679\bin to process PATH
Adding C:\Users\user\.kre\packages\KRE-CLR-x86.1.0.0-beta2-10679\bin to user PATH
Updating alias 'default' to 'KRE-CLR-x86.1.0.0-beta2-10679'

https://github.com/aspnet/Logging/tree/2d54539a112e6d54c3d5de6dd825258c66787086 有错误信息

The project system has encountered an error.

An item with the caption "" already exists in the tree with the same sort order as the item being added.

_A diagnostic log has been written to the following location: "C:\Users\user\AppData\Local\Temp\VsProjectFault_28a9e6d4-ab42-441b-b4fe-124423dae4cb.failure.txt"._



和文件内容:

===================
09.11.2014 13:45:34
Recoverable
System.AggregateException: One or more errors occurred. ---> System.ArgumentException: An item with the caption "" already exists in the tree with the same sort order as the item being added.
at Microsoft.VisualStudio.ProjectSystem.Designers.ProjectTree.Add(UnattachedProjectTreeNode node)
at Microsoft.VisualStudio.ProjectSystem.Designers.ProjectTree.Add(IProjectTree subtree)
at Microsoft.VisualStudio.Web.ProjectSystem.ReferencesSubTreeProvider.<>c__DisplayClass10.<BuildReferencesTreeAsync>b__12()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Web.ProjectSystem.ReferencesSubTreeProvider.<>c__DisplayClass8.<<ReferencesChanged>b__9>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.VisualStudio.ProjectSystem.Utilities.Designers.ProjectTreeProviderBase.<>c__DisplayClass0.<<Initialize>b__2>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.ProjectSystem.Utilities.CommonProjectSystemTools.Rethrow(Exception ex)
at Microsoft.VisualStudio.ProjectSystem.ProjectErrorReporting.<>c__DisplayClass4.<SubmitErrorReport>b__6()
at Microsoft.VisualStudio.ProjectSystem.ExceptionFilter.<>c__DisplayClass0.<Guard>b__2()
at GuardMethodClass.GuardMethod(Func`1 , Func`2 , Func`2 )
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.ArgumentException: An item with the caption "" already exists in the tree with the same sort order as the item being added.
at Microsoft.VisualStudio.ProjectSystem.Designers.ProjectTree.Add(UnattachedProjectTreeNode node)
at Microsoft.VisualStudio.ProjectSystem.Designers.ProjectTree.Add(IProjectTree subtree)
at Microsoft.VisualStudio.Web.ProjectSystem.ReferencesSubTreeProvider.<>c__DisplayClass10.<BuildReferencesTreeAsync>b__12()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Web.ProjectSystem.ReferencesSubTreeProvider.<>c__DisplayClass8.<<ReferencesChanged>b__9>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.VisualStudio.ProjectSystem.Utilities.Designers.ProjectTreeProviderBase.<>c__DisplayClass0.<<Initialize>b__2>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.ProjectSystem.Utilities.CommonProjectSystemTools.Rethrow(Exception ex)
at Microsoft.VisualStudio.ProjectSystem.ProjectErrorReporting.<>c__DisplayClass4.<SubmitErrorReport>b__6()
at Microsoft.VisualStudio.ProjectSystem.ExceptionFilter.<>c__DisplayClass0.<Guard>b__2()
at GuardMethodClass.GuardMethod(Func`1 , Func`2 , Func`2 )<---

最佳答案

尝试检查您在项目中添加的所有新文件,在这些文件下您面临此错误。

可能是您重命名了某些文件,但是您的 csproj文件指向旧文件。然后,它面临冲突并抛出此错误。

纠正同样的应该有效。

关于visual-studio-2015 - Visual Studio 15 CTP 项目引用错误 : An item with the caption "" already exists,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26827641/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com