uwp

Cannot find type System.ApplicationException in module CommonLanguageRuntimeLibrary

做~自己de王妃 提交于 2020-01-02 12:16:03
问题 I ran a 3rd party Android library through CodenameOne's version of IKVM and successfully imported the output .dll as a reference to my UWP app in Visual Studio. Upon trying to compile the project I get a single build error: (from the Error List window) Cannot find type System.ApplicationException in module CommonLanguageRuntimeLibrary (from the Output window) Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(352,5): Xaml Internal Error error

Cannot find type System.ApplicationException in module CommonLanguageRuntimeLibrary

[亡魂溺海] 提交于 2020-01-02 12:15:34
问题 I ran a 3rd party Android library through CodenameOne's version of IKVM and successfully imported the output .dll as a reference to my UWP app in Visual Studio. Upon trying to compile the project I get a single build error: (from the Error List window) Cannot find type System.ApplicationException in module CommonLanguageRuntimeLibrary (from the Output window) Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(352,5): Xaml Internal Error error

Cannot find type System.ApplicationException in module CommonLanguageRuntimeLibrary

断了今生、忘了曾经 提交于 2020-01-02 12:15:16
问题 I ran a 3rd party Android library through CodenameOne's version of IKVM and successfully imported the output .dll as a reference to my UWP app in Visual Studio. Upon trying to compile the project I get a single build error: (from the Error List window) Cannot find type System.ApplicationException in module CommonLanguageRuntimeLibrary (from the Output window) Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(352,5): Xaml Internal Error error

Detect which APIs are present in UWP app

穿精又带淫゛_ 提交于 2020-01-02 09:42:33
问题 Understanding why it's not recommended to detect the device type to perform run-time functionality, best practices dictate detecting which APIs are present instead. This way, users running their tablet in desktop mode, for instance, will not experience undesired behavior. Also, since hardware is so dynamic, checking for user interactions like touch capability is not a good approach either. On our project, we have decided to identify the APIs we'll need for three different screen widths -

Testing UWP app with xUnit on VS2015

a 夏天 提交于 2020-01-02 07:16:08
问题 I have managed to create an xUnit project on VS2015 to unit-test UWP apps. There is a background to this question here on stackoverflow which gives some context to this question. I can compile and run the test, however when I reference a project to be tested, the following error comes up. ------ Run test started ------ Updating the layout... Checking whether required frameworks are installed... Registering the application to run from layout... Deployment complete (1857ms). Full package name:

Error using using RenderTargetBitmap in UWP

余生长醉 提交于 2020-01-02 04:52:23
问题 I'm trying to create a bitmap image, and have the following code: RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap(); await renderTargetBitmap.RenderAsync(uielement); IBuffer pixels = await renderTargetBitmap.GetPixelsAsync(); . . . var pixelArray = pixels.ToArray(); In order to get a ToArray() extension, I came across this question. So I added: using System.Runtime.InteropServices.WindowsRuntime; // For ToArray To my code. However, when I run, I get the following error:

Alternate color for listview item UWP

ぐ巨炮叔叔 提交于 2020-01-02 04:39:18
问题 I have a class to color alternate the background of item, but if I delete a item, the background color does not update. Is there a way to refresh the background color after deleting an item? The code for alterante color. class listview: public class AlternatingRowListView : ListView { protected override void PrepareContainerForItemOverride(DependencyObject element, object item) { base.PrepareContainerForItemOverride(element, item); var listViewItem = element as ListViewItem; if (listViewItem

How to ignor self signed certificates with System.Net.Http.HttpClient in Universal Windows App

拟墨画扇 提交于 2020-01-02 04:09:26
问题 I am creating a Portable Class Library which means I must use System.Net.Http.HttpClient to call my web APIs as far as I understand. The challenge is that for my Universal Windows App, I cannot figure out how to ignore the error that is returned due to the fact the fact the API server can have a self signed certificate. Any suggestions would be greatly appreciated. UPDATE: I cannot import any certificates as this will be an application that runs on various devices in various organizations and

How do I find the local IP address on a Win 10 UWP project

∥☆過路亽.° 提交于 2020-01-02 02:01:34
问题 I am currently trying to port an administrative console application over to a Win 10 UWP app. I am having trouble with using the System.Net.Dns from the following console code. How can I get the devices IP Here is the console app code that I am trying to port over. public static string GetIP4Address() { string IP4Address = String.Empty; foreach (IPAddress IPA in Dns.GetHostAddresses(Dns.GetHostName())) { if (IPA.AddressFamily == AddressFamily.InterNetwork) { IP4Address = IPA.ToString(); break

Windows SDK UWP App Error - DEP3321

ぐ巨炮叔叔 提交于 2020-01-02 01:57:05
问题 I have been battling DEP3321: To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.14393.0 or higher. You currently are running version 10.0.10586.839. Please update your OS, or change your deployment target to a device with the appropriate version. for the past few days. I have a UWP app which I cannot run on my machine. However, if I select one of the emulators, it runs fine. I have also set the minimum target value which ensures that