Posts

Showing posts from August, 2018

C# template fails to load in Visual Studio 15.7.5

Image
Visual Studio's combo program Blend 2017 seems to have the C# templates missing in Visual Studio Community 2017, Version 15.7.5. Here is a New Project window open in Blend 2017. There are C# Windows Universal Project templates. It allows you create a new project, a UWP, C# Blank Project as shown but with errors. For the above these (default) were chosen. The design area of XAML displays System.Exception but the project builds alright. It fails to deploy and this is the error message: The package deployment operation is blocked by the "Allow deployment operations in special profiles" policy.    at Microsoft.VisualStudio.DesignTools.UwpDesignerHost.UwpHostPlatform.<>c__DisplayClass31_0. b__0()    at System.Threading.Tasks.Task.InnerInvoke()    at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.Throw...

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

Image
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 re...