我尝试使用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
有错误信息项目系统遇到错误。
树中已存在标题为“”的项目,其排序顺序与要添加的项目相同。
_A诊断日志已写入以下位置:“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 )<---
答案 0 :(得分:0)
尝试检查您在项目中添加的所有新文件,您将在该文件下遇到此错误。
可能是重命名了某些文件的情况,但是您的csproj
文件指向了较旧的文件。然后,它面对冲突并引发此错误。
更正相同应该起作用。