windows-10

Deploying to Windows Phone 10 fails on Visual Studio

你离开我真会死。 提交于 2019-12-03 09:28:24
So many things happened that I don't know where to start. Seriously, shouldn't this be simpler? Edit: Someone here knows how can I contact Microsoft to tell this? Or even, can someone tell them about this problem? I have the last Windows 10 desktop and also have Windows Phone 10.0.10512.1000. I installed Visual Studio 2015 with tools for Universal Apps development (and also 8.1). I have a Lumia 730. So I connected my phone with my USB cable. Everything fine, the phone gets recognized and I can navigate through the folders. Then I started Visual Studio 2015 and created a blank universal app.

Universal Windows project - HttpClient exception

孤街浪徒 提交于 2019-12-03 09:18:45
I'm trying to implement REST client in Universal Windows project (in Windows 10 universal app) using HttpClient, but the following line: var response = _client.GetAsync(address).Result; throws an AggregateException with the following message: Access denied. A network capability is required to access this network resource More surprisingly, the request isn't event sent to server. How can I solve this problem? Double click on the Package.appxmanifest file in your project. Click on the "Capabilities" tab. Add the Private Networks capability to your project. 来源: https://stackoverflow.com/questions

Programmatically Change Windows 10 Lock Screen Background (on Desktop)

一世执手 提交于 2019-12-03 08:53:55
How can I programmatically change/set the lock screen background image (using VB.NET, C# or Visual C++)? I am using Win 10 Pro and have Visual Studio 2017 Pro. I've had a look online but most solutions don't seem to work. For example: Both Change Win 10 Lockscreen Image Mutiple Times C# WPF and Change Windows Lock Screen background image in C# provide sample code but the imports System.Windows.Media.Imaging , Windows.Storage , Windows.Storage.Streams , Windows.System.UserProfile cannot be found when I paste the code. Do I need to add specific references? Lock screen personalization sample

Adding BasedOn Style on App.xaml is crashing on App() { InitializeComponent(); }

妖精的绣舞 提交于 2019-12-03 08:53:49
Adapting an project to Template10 , I go into inherited styles in App.xaml are crashing. It looks like Template10 , doesn´t support inherited or extended styles. I was trying to extend SubTitleStyle from TitleStyle but I get an COM exceptions on GetXamlType in XamlTypeInfo.g.cs My App.xaml.cs sealed partial class App : BootStrapper { public App() { InitializeComponent(); } public override async Task OnStartAsync(StartKind startKind, IActivatedEventArgs args) { NavigationService.Navigate(typeof(ShellView)) await Task.CompletedTask; } } My App.xaml <Style x:Key="TitleStyle" TargetType="TextBlock

PHP 7.0 cURL not working - WAMP on Windows 10 64 bit [duplicate]

久未见 提交于 2019-12-03 08:51:30
This question already has answers here : PHP - SSL certificate error: unable to get local issuer certificate (14 answers) cURL is not working when I run curl on my WAMP server. Anyone know how to activate this for php 7.0+? I have tried to uncomment extension=php_curl.dll in php.ini Here is my error message: cURL Error #:SSL certificate problem: unable to get local issuer certificate Edvard Åkerberg Download ca-bundle.crt from https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt Put the file in c:\wamp64\ Change php.ini to the following curl.cainfo="C

Getting all files in UWP app folder

六眼飞鱼酱① 提交于 2019-12-03 08:40:33
问题 For UWP, it is easy to get all files in the app local folder as: IReadOnlyList<StorageFile> files = await ApplicationData.Current.LocalFolder.GetFilesAsync(); You can now iterate on the files list and even get further info on individual files. I would like a similar all-file-getter for an app folder, for instance, consider the /Assets folder where app *.png files are stored. Single file with a known name is no problem; I can refer to it quite easily as: StorageFile

Logger for Windows 10 UWP app

时光怂恿深爱的人放手 提交于 2019-12-03 08:29:42
问题 I couldn't found any loggers for windows 10 universal app, i have tried out log4net, Microsoft enterprise library, Nlog but none of them are supported in windows 10 Universal platform. Can anyone suggest me good logger for the windows 10 UWP? 回答1: Have you tried MetroLog? You can install it using NuGet: Install-Package MetroLog Here's an quick example: using MetroLog; using MetroLog.Targets; LogManagerFactory.DefaultConfiguration.AddTarget(LogLevel.Trace, LogLevel.Fatal, new

How to generate a new .pfx file after being lost from source control?

大憨熊 提交于 2019-12-03 08:26:21
问题 I'm using GitHub to host an open-source Windows 10 app I'm developing. I accidentally gitignored my app's PFX file, so when I deleted my local copy and re-cloned the repo, I was left without a MyApp_TemporaryKey.pfx file. Now Visual Studio is complaining about this, and I'm unable to build the solution. How do I regenerate this file so I can run the app again? Thanks for helping. 回答1: Typically, missing .pfx file will only raise several Warnings in Visual Studio and it won't affect the

Deploy UWP App Project In VS2015

好久不见. 提交于 2019-12-03 08:19:38
问题 In visual studio 2015 I created an UWP (Universal Windows Platform) app, and try to debug and run it in Windows 10 Mobile 5" emulator. But it shows me this error : the project app1 needs to be deployed before it can be started. verify the project is selected to be deployed the solution configuration manager, or deploy it explicitly by clinking one of the deploy commands in the build menu. What is deploy? And how I can deploy my project !? Thanks ! Here is the error image: 回答1: Right click on

How to get the “Application Name” from hWnd for Windows 10 Store Apps (e.g. Edge)

老子叫甜甜 提交于 2019-12-03 08:11:08
I'm trying to get an understandable "Process Name" for Windows 10 apps. Currently, all of them use ApplicationFrameHost , so I thought I could use either the ModelId or the PackageName , but it seems Windows 10 Store Apps (I tried with Mail , Store and Edge ) won't work with the Package query API Using kernel32.dll , GetApplicationUserModelId returns APPMODEL_ERROR_NO_APPLICATION and GetPackageId returns APPMODEL_ERROR_NO_PACKAGE . How can I get an identifier for a Windows 10 Store App, so that I can uniquely identify, say, Edge but also any other Windows 10 Store Apps? Update I'm getting the