4

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

树中已存在标题为“”的项目,其排序顺序与要添加的项目相同。

项目的参考是空的,有或没有警告标志。

我该如何解决这个问题?

来自 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有错误信息

项目系统遇到错误。

树中已存在标题为“”的项目,其排序顺序与要添加的项目相同。

_诊断日志已写入以下位置:“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 )<---
4

1 回答 1

0

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

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

纠正同样的事情应该有效。

于 2019-11-04T07:27:51.990 回答