3
votes

Microsoft just released Windows App 8.1 with combination of Windows 8.1 and Windows Phone 8.1, so you can create a universal app. However, it gives me a trouble to add Microsoft.Phone 8.1 assembly to project reference.

Here is what I did (in Visual Studio 2013, with Rc2 installed) 1> Create New project from Visual C#->Store Apps -> Windows Phone Apps. 2> Added Microsoft.Phone from this location: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1

3> Now, do a build, I see the following Error: "Cannot find type System.SystemException in module mscorilib.dll"

Anyone has the similar experience? any solutions?

Thanks

1
When creating an universal app, you're using the WinRT API. I don't think you're supposed to reference a Silverlight assembly.Kevin Gosse
that is how I thought in the first place. In the default project, it added the Windows Phone 8.1 SDK as a reference, however when I tried to using Microsoft.Phone.Notification, it is not available for me to use... So that is why I added reference. So I may have missed something really simple...user3621101
The notification system is different on WinRT: msdn.microsoft.com/en-us/library/windows/apps/…Kevin Gosse
Hmmm, that could be the case, although I have not see any document about it. I will certain give it a try once I get around and report back what I found.user3621101
KooKiz is correct. Windows Phone 8.1 has been changed completely, well, sort of. So for push message, you can treat it as Windows Store App... Which makes sense... So thanks.user3621101

1 Answers

1
votes

There has been a few API changes as part of programming model in windows phone 8.1 apps. have a look at this link. It will solve your problem.

http://blogs.msdn.com/b/paraswadehra/archive/2014/08/21/how-to-send-email-from-your-windows-phone-8-1-app.aspx