Missing C# templates in Microsoft Visual Studio Community 2017, version 15.7.5

Recently installed Visual Studio Community 2017 with the following details:

Microsoft Visual Studio Community 2017 
Version 15.7.5
VisualStudio.15.Release/15.7.5+27703.2042
Microsoft .NET Framework
Version 4.7.03062 

I tried to run a previously well designed project by loading the project and failed. I noticed a number of errors such as these:

The UI elements can still be seen in the XAML view in the MainPage.xaml and the same elements in the MainPage.xaml.cs are getting to be unrecognized by red wiggly (does not exist in the current context). some fifty errors CS0103 error

Also the CS1061 error that the MainPage does not contain a definition for 'initialize Component' accepting first argument of type 'MainPage' could be found.

I could not fathom the reason and spent about 6 hours.

Then I resorted to recreate the app from scratch by creating a new C# project and noticed that the C# language related templates were missing. I am not sue if my errors are related to the missing templates!


I tried to reinstall Visual Studio from within the IDE, but I had really installed all the necessary items.


I believe the Visual Studio 15.7.5 I installed does not have the templates.

Blend 2017 has the templates but they cannot be used.

http://hodentekhelp.blogspot.com/2018/07/why-are-c-templates-missing-in-visual_31.html

Comments

Popular posts from this blog

UWP: Displaying formatted text in a TextBox Control

Handling AppManifest Validation error

UWP: XAML's ComboBox Control -Part 1