Visual Studio 2017 Cordova App 项目系统遇到错误
Visual Studio 2017 Cordova App The project system has encountered an error
我有一个 HTML5/JavaScript Cordova 应用程序,当我启动它时出现此消息错误(有时只有一次,有时两次)。
.txt
文件中的文本如下:
6/25/2018 3:13:54 PM
Recoverable
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.Common.MSBuildEventHandler.d__8.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.VS.Implementation.Build.VsOutputWindowLogger.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
6/25/2018 3:13:54 PM
Recoverable
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.Common.MSBuildEventHandler.d__8.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.VS.Implementation.Build.VsOutputWindowLogger.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
6/25/2018 3:13:54 PM
Recoverable
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.Common.MSBuildEventHandler.d__8.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.VS.Implementation.Build.VsOutputWindowLogger.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
6/25/2018 3:13:54 PM
Recoverable
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.Common.MSBuildEventHandler.d__8.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.VS.Implementation.Build.VsOutputWindowLogger.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
我用的是Visual Studio2017专业版15.7.4
单击“确定”一两次后,一切恢复正常,如何删除此消息?
首先检查 Android Home、Java Home 和 npm 的所有参考资料。然后尝试在记事本中更改 .jsproj 文件,如
这个
<PropertyGroup>
<TypeScriptCompileOnSaveEnabled>false</TypeScriptCompileOnSaveEnabled></PropertyGroup>
至
<PropertyGroup>
<TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
<TypeScriptCompileOnSaveEnabled>false</TypeScriptCompileOnSaveEnabled</PropertyGroup>
如果没有成功,请尝试修复您的 vs 安装。
我有一个 HTML5/JavaScript Cordova 应用程序,当我启动它时出现此消息错误(有时只有一次,有时两次)。
.txt
文件中的文本如下:
6/25/2018 3:13:54 PM Recoverable System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.Common.MSBuildEventHandler.d__8.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.VS.Implementation.Build.VsOutputWindowLogger.d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
6/25/2018 3:13:54 PM Recoverable System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.Common.MSBuildEventHandler.d__8.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.VS.Implementation.Build.VsOutputWindowLogger.d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
6/25/2018 3:13:54 PM Recoverable System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.Common.MSBuildEventHandler.d__8.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.VS.Implementation.Build.VsOutputWindowLogger.d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
6/25/2018 3:13:54 PM Recoverable System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.Common.MSBuildEventHandler.d__8.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.VS.Implementation.Build.VsOutputWindowLogger.d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
我用的是Visual Studio2017专业版15.7.4
单击“确定”一两次后,一切恢复正常,如何删除此消息?
首先检查 Android Home、Java Home 和 npm 的所有参考资料。然后尝试在记事本中更改 .jsproj 文件,如
这个
<PropertyGroup>
<TypeScriptCompileOnSaveEnabled>false</TypeScriptCompileOnSaveEnabled></PropertyGroup>
至
<PropertyGroup>
<TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
<TypeScriptCompileOnSaveEnabled>false</TypeScriptCompileOnSaveEnabled</PropertyGroup>
如果没有成功,请尝试修复您的 vs 安装。