uwp

Visual Studio 2015: I can't debug and use breakpoints in Release mode

假装没事ソ 提交于 2019-12-11 04:47:38
问题 I have developed an UWP app that uses a lot of NuGet packages ( MvvmLight, SQLite, ... ) and other resources ( Syncfusion controls ). I encounter a bug with the Store app, which is already published for tests, that is not present when I build the app in " Debug " mode. So, I've tried to debug in " Release " mode, with the checked options " Compile with .NET Native tool chain " and " Optimize code ". The build ends successfully, but I encounter an exception with a Syncfusion control (

Raspberry Pi 3 running Windows 10 Core with custom program shows crossed-out x

梦想的初衷 提交于 2019-12-11 04:46:45
问题 I have a very simple project, in which I aim to be able to toggle an LED by means of a direct method call (through Azure IoT hub) on my Raspberry Pi 3, running Windows 10 IoT Core. In it's current state, the program I wrote shows only a white box with an x in it, not unlike a mail envelope, and the back end light-controlling code does not respond to direct method calls. However, when connected to a Visual Studio 2017 remote debugger, the code behind the UI seems to run perfectly fine (or so I

How to lock tablet screen rotation in UWP app?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 04:39:33
问题 I wanted my UWP app, running on windows 10, to support only Landscape orientations, but here is a one problem. First i founded this question: link This example from GitHub works fine then I try to set orientation with checkboxes, and when i set orientation like this: DisplayOrientations orientations = DisplayOrientations.Landscape; DisplayInformation.AutoRotationPreferences = orientations; it works too. Great. But here is an issue. If you'll try to press Start to suspend app and press it

Can two project.json files share the same codebase?

眉间皱痕 提交于 2019-12-11 04:36:36
问题 I have some codebase from which I want to build a .NET Core library and a UWP library. Initially, I wanted to build a single lib which would serve for both but I didn't find a way for this (in UWP case, the lib needs to reference UWP specific classes like StreamSocket). So I created a separate project file for UWP. However, looks like I can't create a separate project.json (I can't have core.json and uwp.json because project.json name is constant). And I don't want to create multiple copies

UWP SerialDevice.FromIdAsync return null

非 Y 不嫁゛ 提交于 2019-12-11 04:34:32
问题 I'm trying the Microsoft sample for Serial Port and it's working on Raspberry Pi2 but not on local machine , on,local machine return null. the DeviceCapability already added, that's why it's working on Pi2. any idea why it's not working on local machine local system: Win10 Ent. VS 2015.3 回答1: I found this answer :( Link System-internal or on-chassis serial ports may be enumerated by DeviceInformation.FindAllAsync(), but cannot be opened by SerialDevice.FromIdAsync() because they currently are

How to symbolicate crash report using .pdb file

不羁的心 提交于 2019-12-11 04:31:11
问题 I've a crash report. It's not symbolicated. I've .pdb file, source code and the package, is there any way to turn this stack trace to meaningful method names using .pdb file? Exception Stack: SharedLibrary!<BaseAddress>+0x3f7d77 MyApp!<BaseAddress>+0x52b4d7 MyApp!<BaseAddress>+0x59ed69 MyApp.API.GetFilter() MyApp!<BaseAddress>+0x66f79f System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() SharedLibrary!<BaseAddress>+0x368a33 SharedLibrary!<BaseAddress>+0x369031 SharedLibrary!

How to detect closed StreamSocket at client side

早过忘川 提交于 2019-12-11 04:26:09
问题 DataReader.LoadAsync does not detect closed sockets (with InputStreamOptions::Partial) I am sending data to server via TCP connection and read the response but after and everything is working here. But after 5-6 message my project is hand I didn't find where is error. Some time i found that connection is closed via host machine so How can i found that is StreamSocket is connected or not ============Code============= public async Task<bool> Connect(string host, string port) { try { socket =

Visual Studio 2017 Xamarin UWP break, unable to load “sqlite3”

只愿长相守 提交于 2019-12-11 04:25:40
问题 When I launch UWP project, it crashes and I'm getting errors like these. And this error occurs mostly when its on debugging mode. Soo.. first idea for fixing this was upgrading/downgrading nuggets, but that didn't help me, also I have these nuggets included for UWP: Microsoft.NETCore.UniversalWindowsPlatform SQLite.Net-PCL System.Data.SQLite Xamarin.Forms XLabs.Forms etc other(that dosent matter on this exception) I also looked other posts for solving this, like adding SQLite extension, but I

How SQLite.Net-PCL insert DateTime into SQLite

空扰寡人 提交于 2019-12-11 04:25:31
问题 This class will be created as a table by SQLite.Net-PCL class Purchase { [SQLite.Net.Attributes.PrimaryKey, SQLite.Net.Attributes.AutoIncrement] public int QId { get; set; } public DateTime PurchaseDate { get; set; } public int Qty { get; set; } } I need to insert this date into this tblPurchase in SQLite DB. strDate ="2016/08/10" strTime ="10:17:26" string[] strAr_Date = strDate.Split('/'); string strYear = strAr_Date[0].ToString(); string strMth = strAr_Date[1].ToString(); string strDay =

In UWP application, how to reproduce exception telling that synchronous UI is allowed on non-UI threads only

江枫思渺然 提交于 2019-12-11 04:25:19
问题 I can't figure out how threads of different types behave in UWP applications. First, in UWP it seems that UI thread is not a main thread, it's one of worker threads (I see this in the debugger when inserting breakpoints in event handlers and so on). My assumption is that CoreApplication.MainView.CoreWindow.Dispatcher.HasThreadAccess designates if the current thread a UI thread or not. From my understanding some actions should behave differently depending on the type of the current thread. In