How can I watch logs from windows phone 8.1. (for instance like for Android by using SDK, or for iOs by using xCode)
The Visual Studio Output Windows is handy if you are debugging your app but you cannot see/collect the logs in another moment.
I recommend the use of MetroLog, a lightweight logging system designed specifically for Windows Store and Windows Phone apps.
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 FileStreamingTarget());
ILogger log = LogManagerFactory.DefaultLogManager.GetLogger<MainPage>();
log.Trace("This is a trace message.");
You can find a tutorial explaining how to add it on your project at http://talkitbr.com/2015/06/11/adicionando-logs-em-universal-apps. Also there is an explanation regarding retrieving these logs.
Related
My use case, I have Windows 8.1 XAML app v1.0 in appx package. I'd like to deploy this version on my tablet, use it for a while and then test update of this app to version 1.1 which I have in another appx package.
Is this easily possible for tablet apps? I know that for Windows Phone there is Application Deployment Tool, but for Windows 8.1 there is nothing I know about.
Thanks
As long as your tablet is running Windows 8.1 you can side-load the app onto it.
Create the app package using Visual Studio. Then run the Powershell script on your tablet to install the package. (You will be required to have a developer license on the tablet). When you are ready to test the next version just follow the same steps.
https://msdn.microsoft.com/en-us/library/hh975356.aspx?f=255&MSPPError=-2147217396#Create
I am having windows phone 8 silverlight app. I need to publish it on Windows store. Can you please provide or explain step by step guide to publish this app in store.
Stackoverflow link discussed already. But after changing the values in files manually what need to do after tha?
I followed the steps mention here, but i am getting certification issue after submitting app.
This is a guide to publishing applications in Windows Store. Important -Silverligth app supported only Windows Phone and not supported Windows 8 and Windows 10. For supported Windows RT you need to make migration to universal app.
Windows App certification kit is very nice utility. Before publishing app use this app for analysis. When i run analysis of my XAP file using this utility, I found that i was using some default images that was main issue in certification failure. Now i am updating that. And will let you if this works or not.
I have developed few apps in windows store 8.1 and i want to port them to windows 10.
Previously when windows 8.1 has released, In Visual Studio when you open the windows store 8 app code, in the solution we had an option called target to windows store 8.1, then it takes care of everything.
Now how to Port Windows store 8.1 apps to Windows 10 using C# and xaml
Any help or any article on this please?
Thanks in advance
The best way to do this is to create a new Windows 10 project based on the universal template and then copy all the source files and assets to it. There's a detailed description on MSDN here:
https://msdn.microsoft.com/en-us/library/windows/apps/dn705768.aspx
and here:
https://msdn.microsoft.com/en-us/library/windows/apps/dn751495.aspx
0) Install Win10 RTM
OK? =)
(But, If you just want to bulid the UWP project, Win8.1 is also ok. But you can't use the xaml designer, inspector, etc.... I can't recomend this way)
1) Install VS2015 RTM and Win10SDK RTM.
By default, Win10SDK is NOT installed. You should select the Win10 SDK from installation option dialog.
1.5) Update NuGET 3.1.
You can see the Flag Icon on the top-right corner of VS2015 Window. Click it to install Nuget Update.
2) Migrate your solution and project.
You should modify your .csproj manually with this guide.
Migrate apps to the Universal Windows Platform (UWP)
After that, you can build your app with VS2015.
Note - if you got the thousands of compile error, try Installing following nuget package from nuget console.
Microsoft.NETCore.UniversalWindowsPlatform
3) Modifying your app to suit for UWP manner
Following pages helps you.
Move from Windows Runtime 8 to UWP
Porting Windows Runtime 8 XAML and UI to UWP
I am using Visual Studio 2013 Professional (with a Store developer account connected) and I have a Windows 8.1 Lenovo tablet for which I'd like to try developing Store apps.
I am stuck right now because when I connect my tablet to my laptop (which has Visual Studio) using the USB port, and open "Windows Phone Development Registration" tool, my Windows tablet device is not recognized by it.
Any help in letting me know what I am missing would be greatly apprciated.
Thanks.
Windows systems aren't locked in the same way as Windows Phones are. You will need a free developer license to run development & test packages on the system, but don't need to use an external tool to generate it.
You can install a developer license with PowerShell by using the "Show-WindowsDeveloperLicenseRegistration" cmdlet. If you create a package for testing in Visual Studio then the Add-AppDevPackage.ps1 script will request the developer license if the system doesn't already have one.
Visual Studio will also request a license for you if you run it on the local system or if you launch the app via the remote debugger.
Documentation links:
Run Windows Store apps on a remote machine from Visual Studio, Deploy Windows Store apps from Visual Studio and Get a developer license (Store apps)
It works a bit different with tablets than with phones. If you don't need debugging - you can simply copy the appx onto the tablet and install it there. If you want to debug - you need to install remote debugging tools on it and specify in VS that you want to debug on a remote machine (click the little drop down arrow on the button here:
This is what exactly is did:
Installed windows phone 8.0 SDK.
Installed windows phone 8.1 SDK(By first installing VS 2013 professional edition and later installing update R2).
After that 8.1 application xap deployment is failing
Unable to deploy xap on windows 8.1 phone using 8.1 deployment tool “Error-package failed updates, dependency or conflict validation”
The phone i am using is 8.1 updated
Can you please let me know if iam missing something?
Thanks in advance
Using Windows Phone Application Deployment (8.1), I just ran into same issue. I had tried to install an appx package which was built for Store in Release Mode.
I then realised I was trying to install an ARM build onto the emulator which needs an x86 build to run.
So instead I deployed the ARM Release Mode .appx to a physical device so I could test what I needed to test.
Hope this helps!
Not a real answer but an un-explained work around. I've recently started developing against windows phone. I am working on a Windows 8.1 machine that was previously a Windows 8 machine, previously using VS 2012 to develop against WP 8 and now using VS 2013 to develop for WP 8.1.
At intervals I start to receive the same error as reported by the question, both when deploying our WP 8.1 app to an emulator and when trying to run or debug our WP 8.1 unit tests. So far it's been resolved each time by restarting VS 2013 (and the emulator). Restarting the emulator alone has sometimes been sufficient but not always. I have not checked whether it works against a concrete device. More significantly I have no idea why deployment breaks or stopping/starting resolves it...
Our application and unit tests are WP 8.1 silver light projects and use SQLite.