Today I cloned my windows universal app project from github onto a new machine running a new install of Visual Studio 2015.
After the project loaded, I noticed that all of my pages and properties were underlined red with many errors
CS0246 C# The type or namespace name "<name>" could not be found (are you missing a using directive or an assembly reference?)
as well as others such as
CS0518 C# Predefined type 'System.Void' is not defined or imported
CS0012 C# The type '' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
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)'
I noted that CS0012 actually gives information about what is needed to address the issue:
You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Looking in my project.json file, however, I could see
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
}
As a result the project will not build or run, just lists lots of errors, how can you fix this?