无法重新加载Visual Studio 2015中的Asp.Net Core项目
问题描述:
删除了一个bower软件包(morris)并尝试重新加载我的MVC Core应用程序时,出现错误,应用程序无法完全重新加载,所有我可以看到的都是DNX参考和Dependencies
。我试过恢复软件包,但没有帮助。无法重新加载Visual Studio 2015中的Asp.Net Core项目
我正在运行RC1。
工作室指引我VsProjectFault_9481d3e1-ac32-4ffe-bee5-00ea5d3c38b8.failure.txt
文件包含以下信息:
Recoverable
System.Exception: The following error occurred during discovery of project files on disk. Access to the path 'C:\Redacted\App\bower_components\morrisjs\spec\viz\exemplary' is denied..
at Microsoft.VisualStudio.Web.ProjectSystem.ProjectTree.SourceItemsInMemoryProject.<InitializeFromDiskAsync>d__54.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 Microsoft.VisualStudio.Web.ProjectSystem.ProjectTree.SourceItemsInMemoryProject.<Creator>d__52.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 Microsoft.VisualStudio.ProjectSystem.UnconfiguredProjectImpl.AutoLoadMethodStateMachine.<<StartExecution>b__6_0>d.MoveNext()
什么我需要做恢复应用程序?
所有文件仍然存在于文件系统中,只是未加载项目。
答
关闭Visual Studio并删除隐藏的.vs
文件夹使解决方案变得生动起来。
(如果只是关闭工作室单独是不够的,但我确实有打开它的其他情况下或许这已经足够了。)
你有什么亭子任务保存文件锁定? –
不,我不...... – NikolaiDante