今天我在新的电脑上安装Visual Studio 2015后,从Github上克隆了我的Windows通用应用程序项目。当项目加载后,我注意到所有页面和属性都被红色下划线标记,并且出现了许多错误,例如“CS0246 C# The type or namespace name '<name>' could not be found (are you missing a using directive or an assembly reference?)”、“CS0518 C# Predefined type 'System.Void' is not defined or imported”和“CS1545 C# Property, indexer, or event 'Application.Suspending' is not supported by the language; try directly calling accessor methods 'Application.add_Suspending(SuspendingEventHandler)' or 'Application.remove_Suspending(EventRegistrationToken)’”。我发现CS0012实际上提供了有关如何解决问题的信息:“You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.”但是查看我的project.json文件后,我发现…
由于该项目无法构建或运行,只会列出大量错误信息,请问如何解决这个问题?
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
}
由于该项目无法构建或运行,只会列出大量错误信息,请问如何解决这个问题?