uwp

Calling Process.GetProcesses() inside a .NET Standard library from a UWP app

那年仲夏 提交于 2019-12-13 04:09:07
问题 I have a .NET standard library which is below: using System; using System.Diagnostics; using System.Runtime.InteropServices; namespace process_library { public class ProcessHandler { public ProcessHandler() { } [MTAThread] public Process[] GetProcesses() { return Process.GetProcesses(); } } } I then have a Template10 project with all the .net core stuff updated to the latest version (required to get it to build) and referenced my library. This all works so far. Inside my main view-model I

Windows Desktop Extensions - which version should I reference?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 04:09:04
问题 Background: I'm having trouble getting my app's new version accepted by the Windows store. They say that it crashes on launch. The app runs fine even when installed from the appxbundle file on my computer. So I'm thinking maybe this has to do with the Desktop Extensions (for the UWP) that I've added. Perhaps I'm referencing the wrong version of that assembly. If the app is targeting version 16299 but min version is 14393 - which assembly of the desktop extensions should I include in the

Using Audio Graph, learn environment noise and filter in a UWP App

自古美人都是妖i 提交于 2019-12-13 03:57:38
问题 This is an extended question from here Using UWP monitor live audio and detect gun-fire/clap sound Thanks to Dernis I finally got the code working to monitor live audio and trigger events when decibel count is above a certain range. This works perfectly when we run it in office/closed/silent area. But when I take the app to open road, there will be traffic sound, wind sound, people talk sound and other noises and BLOW events are not identified correctly. I would like to implement something

UWP BackgroundTransfer (CreateDownload / GetCurrentDownloadsAsync) Exception

半城伤御伤魂 提交于 2019-12-13 03:57:01
问题 I am using BackgroundTransfer API for UWP and during my development I achieve much more than the limit (200) of transfer, until now this not become a problem because windows management cancel the transfers over the limit. But now, something occurs that I never can create a new download by BackgroundDownloader().CreateDownload() or call BackgroundDownloader.GetCurrentDownloadsAsync() because this exception always occur: WinRT information: Quota for maximum number of concurrent operations

How to solve error of “returned exit code 1” while building UWP xamarin based app in Visual Studio?

佐手、 提交于 2019-12-13 03:50:15
问题 I am facing following error while publishing my UWP Xamarin based app on Windows Store. Package acceptance validation error: This package wasn't built for submission to the Microsoft Store. Make sure you're uploading a Release build with the .NET Native tool chain enabled. To remove "Windows Store" error, I have made following changes in my project After this it start another error as following while building project: 1: Error: NUTC1056:Internal Compiler Error: 0x8000ffff. Error encountered

How can I open a .pdf file in the browser from a Xamarin UWP project?

百般思念 提交于 2019-12-13 03:49:46
问题 I have a Xamarin Project where I generate a .pdf file from scratch and save it in my local storage. This works perfectly fine and can find it and open it in the disk where I saved it. However, I need to open the .pdf file immediately after creation programmatically. I already tried different variations using Process and ProcessStartInfo but these just throw errors like "System.ComponentModel.Win32Exception: 'The system cannot find the file specified'" and "'System

Unable to add reference to third party dll in a UWP project

寵の児 提交于 2019-12-13 03:47:43
问题 Since a UWP app is a .NET Core app, a reference to a third party dll created in .NET 4.0 is not getting added in my UWP project in VS2017 . I'm getting the error shown below. A similar question has been answered here. But since that question is about 6 years old, and since then a lot has changed in the .NET Core world, I thought may be there are some better solutions to my problem than just rather complicated workarounds. Are there any simpler solutions to make a third party dll reference

Error: “This application can only run in the context of an app container.”

独自空忆成欢 提交于 2019-12-13 03:47:20
问题 I created a UWP app with desktop extensions and added the startup task as mentioned here. (I set Executable="AutoStartupTest.exe" .) I logged off and logged on and got the error in the title, and don't know how to fix it because though it makes sense - why is it not in a container? This should happen automatically, no? The link is talking about a UWP app. EDIT The extension snippet as requested here. <Extensions> <desktop:Extension Category="windows.startupTask" Executable="AutoStartupTest

C# UWP Passing Data From One ListView To A Second Listview on the Next Page in a Array

我的未来我决定 提交于 2019-12-13 03:42:13
问题 When a user clicks the item or items in the main page listview I need to take the data and pass it to a second array which will go to a checkout on the next page.I cant figure out how to pass data from 1 listview to another listview between pages. public struct DATA { public DATA(string distinguisher, double price, string description) { Distinguisher = distinguisher; Price = price; Description = description; } public string Distinguisher { get; } public double Price { get; } public string

What Certificate for signing an Ionic (Cordova) Windows 10 UWP application?

末鹿安然 提交于 2019-12-13 03:42:04
问题 I have an Ionic application, which is currently deployed to the Apple and Android stores. I Now wish to deploy to the Windows store. I have Visual Studio 2015 and have built running the Ionic CLI. I see a lot of created files, including a CordovaApp.Windows10_1.0.0.43_x86.appx For iOS , the signing is handled via the xcode / developers console, and for Android I created using the keytool which is part of the JDK . Now for Windows.. I have found this on certificates, and this on signing. I