Posts

Showing posts from July, 2018

Microsoft Windows Simulator is not working!

Image
The Simulator for testing apps is not working. It can be launched but you cannot exit. You may exit the development environment by closing Visual Studio but the simulator hangs around. Apps open in the simulator does not work, or work sporadically. Here are details of OS and the Visual Studio versions in which this was noted: Here is the abandoned Simulator: I will be upgrading to the next version of Visual Studio Community 2017 shown here:

Handling AppManifest Validation error

This error may show up if one chooses an image file that does not comply with the enumeration. Here is the description of the error: Severity Code Description Project File Line Suppression State Error  Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 26, Column 25, Reason: '' violates enumeration constraint of 'badge badgeAndTileText'. The attribute 'Notification' with value '' failed to parse. XXXXXX C:\Users\Owner\source\repos\xxxxxx\bin\ARM\Debug\AppxManifest.xml   I chose a resource for Badge in the Assets and Visual Studio spawned this error. The only way to get out of this was to comment out (or better remove) the following line in the AppManifest .xml Make sure you save the file after the removal as every time you Build, the AppManifest.xml gets recreated.

UWP: You can find the type of device you are deploying your UWP Project

Image
You can find this information using the Windows.System as shown here: Device_000 We can find the device to which the UWP is deployed using the above information. Here is a Blank UWP Project's MainPage.xaml. Device_0 I have a button and a text box. Button's click event finds the device information and writes to the text box using the click event shown here: Device_00 When deployed to the machine (Windows 10 Pro Desktop), the response is as shown. Device4.jpg When deployed to an emulator: The display shows the device info: You can get the DeviceFamilyVersion as well. The code is inside the image. On the emulator this is displayed.