How is it possible to setup Profile 259?
Right now my dev environment has VS 2012(Update 4), Xamarin Studio 5.5.2 & Windows Phone SDK 8 (in which I haven't activated a phone yet).
When I try to create a PCL project (to be used with a MVVMCross framework) I can select the iOS & Android frameworks but not the Windows Phone 7. The process of "adjusting" profile 259 is described in this article, which assumes the profile already exists in a physical folder.
In my situation there is only profile 78.
As always in life...insight comes after having spoken out the question!
Well I can't say that i found a real solution, but for my requirements..it works:
Create the PCL project with the following frameworks selected: iOS, Android, .NET4.5.
Add the reference to MVVMCross.
Change the target frameworks (in project-properties), adding Windows Phone 8.
Related
I upgraded my Windows Phone 8.1 Store App project to the new Universal Windows Platform following this guide. After some minor errors everything looks good so far except this error:
Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 16, Column 21, Reason: '12345.User.MyAppName' violates pattern constraint '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'. The attribute 'PhoneProductId' with value '12345.User.MyAppName' failed to parse.
Step 4 from the guide I used states:
For Windows Store only: You need to add a <mp:PhoneIdentity> child element to the <Package> element. Add a PhoneProductId attribute and a PhonePublisherId attribute. Set the PhoneProductId to have the same value as the Name attribute in the <Identity> element. Set the PhonePublishedId value to: 00000000-0000-0000-0000-000000000000.
This is exactly what I did, but my Name attribute of course doesn't match the pattern that is (now) expected. I also read here that PhoneProductId matches to the ProductId of the published Windows Phone 8 app, but either this is the same as I used above (not quite sure) or I can't find it (looking at my app's details on the Developer Dashboard on MSDN).
How can I fix this without losing reference of my upgraded solution to the app already published?
To make your Universal Windows App link to your already published Windows Phone 8.1 app, put your Windows Phone 8.1 ProductID and PublisherID that you can find in your AppxManifest.xml (or the Package.appxmanifest in Visual Studio), in the Universal App's corresponding PhoneProductId and PhonePublisherID in the element.
I'm developing a Windows Phone 8.1 app that also targets Android(Xamarin)
As ever I added my string resources(.resx) on a PCL and referenced them on my launcher project to use it on my views, this all works fine on WP 8.1 silverlight but on the WinRt when I configure the project to release and run it on a device, for some reason I always get a MissingManifestResourceException. I've tried every solution for this problem out there without any success.
Note that on the emulator everything works fine, when the solution configurator is set to Debug it also works on both device and emulator. The only combination here is device and Release.
The app source code is on Github.
I was able to create a simple project to replicate this issue, basically it is a WP 8.1 app and a PCL project with the embedded resources, Download Link
Anyone has any ideas?
EDIT: After making some more testing I tried running an old Windows 8.1 app that I've done with the same localisation model and the same issue appeared so it seams to be a tool issue and not a configuration issue, since the Windows 8.1 app is on the market and everything went fine back there.
Our team ran into a similar issue which was tracked down to the runtime and not the PCL, WinRT component, or application package. That is, the resources exist within the PCL assembly, within the application package resources.pri file, but just cannot be found at runtime.
There is an active Microsoft Connect report here:
https://connect.microsoft.com/VisualStudio/feedback/details/991028/issue-using-resx-files-on-winrt-apps-windows-phone-and-windows
Our workaround was for the WinRT component to inject into each generated Resources class of each referenced PCL our own derived ResourceManager which redirected the call to the WinRT ResourceLoader instead. I've written a blog post that describes that workaround:
http://blogs.msdn.com/b/philliphoff/archive/2014/11/19/missingmanifestresourceexception-when-using-portable-class-libraries-in-winrt.aspx
I got to the bottom of this today. While bundling the app package, resources in dependencies that are not for a language being used by the app are stripped out. To prevent this from happening, add the following assembly-level attribute to your application.
using System.Resources;
[assembly: NeutralResourcesLanguage("en")]
I had the same behaviour. Today I created a new PCL Library (with another name) and copied the resx file to this project. I modified all references and everything just works fine in my WinRt (Windows Store) App now!
There was the string 'resources' in the portable class library name. Perhaps this was the problem!
I am able to reproduce this issue launching DVD sample and unfortunately in my project. I have an WP Silverlight 8.1 project registering a Windows Runtime Component Background Task and both of them using a Portable Class Library sharing some common localized strings as resources (.resx), among other things. The exception is thrown from Background Task when calling any property to get strings on generated .Design.cs class (only Release + Device).
In order to fix this I tried, without success, to use directly ResourceManager and/or to add .resx files directly into the Background Task.
I ended-up porting needed strings to .resw files and use the new "WinRT preferred" way via Windows.ApplicationModel.Resources.ResourceLoader in the Background Task project.
Seems to me that ResourceManager is not compatible with Windows Runtime anymore in release.
This is not necessary an answer, but is better than nothing since I do not have 50 reputation points for a comment.
I'm trying to create a simple camera application according to the MSDN tutorial.
All I did was installing Visual Studio 2013 Update 3 and then created a new Visual C# \ Store-Apps \ Windows Phone-Apps \ Empty App Template and added the code to my MainPage.xaml.cs.
The first problem is, that it does not find the namespaces Microsoft.Xna.Framework.Media, System.IO.IsolatedStorage and Microsoft.Devices. According to the tutorial, I have to add the Xna DLL in the "Add references" .net Tab, but unfortunately, there is no .net tab. I only have the following categories:
-Assembly (All Assemblys are already references)
-Project
-Windows Phone 8.1 (only 5 DLLs, but different ones)
After a lot of searching, I found them in 'C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Tools\AppDeploy\MdilXapCompilev8.0\Framework', but there is no System.IO.IsolatedStorage DLL.
When I ommit this using directive, I end up getting an error because it does not know this.Dispatcher.
Am I missing something? Do I have to install anything else?
The problem is probably that the link you have provided concerns WP8.1 Silverlight and you might have chosen WP8.1 Runtime project. Those are different API's - XNA is not supported in RunTime, you also won't find Microsoft.Devices there.
If you want to create your Camera App for WP8.1 Silverlight encure that you have chosen (Windows Phone Silverlight) template. Otherwise, of course you can also write Camera App but with different API - you may take a look here,also you may find something useful here at blog.
My client wants the app to always use a white theme. I'm new to Windows Phone development but from what I see, the theme of the app is based on a setting in the operating system. Can this be overridden so that it always uses white? If so, how?
You can use Jeff Wilcox's 'Windows Phone Theme Manager' nuget package.
http://www.nuget.org/packages/PhoneThemeManager/
Just add a function call to the App constructor:
ThemeManager.ToLightTheme();
I'm jus so confused about application icon sizes that need to be used for WP. My app works on all the three, 7.1 , 7.8 and 8.0. I use Windows Phone 8 SDK.
This link gives the sizes need. My question is in the WMAppManifest.xml file, since my app supports all the three, for the App icon which one do we give? the 66x66 or the 99x99. Similarly for Tile which one do I need to give? Is the app icon same as app list icon.
When I create a new WP8 project, the ApplicationIcon is of size 100x100? when the size mentioned is 99x99.
Which is the default tile size that i need to give for the app to work in both all 3 versions?
If your app targets Phone 7.1 (which can be used on 7.1, 7.8 and 8) then all you need is are the normal icons (ApplicationIcon.png and Background.png). If you want to support the new tiles in 7.8 and 8 check out this blog from the Windows Phone dev team. Also an MSDN article and a handy helper.