locked
Could Not able to Import task

    Question

  • I am developing an app in VB for personal use and for that I need to compose an SMS through the same App .

    I am getting an error in the line

    Imports Microsoft.tasks

    It is saying that Namespace it is not defined.


    Also please check out this http://1drv.ms/1E99miA Vishwa Raj ( Computer Hobbyist) Content Creator at Microsoft Community Center Web Developer at Sanity Softwares Pvt. Ltd Beginners in Windows Phone App Development.

    Sunday, April 05, 2015 2:38 PM

Answers

  • Hi qwertyasvishwa,

    >>It is saying that Namespace it is not defined.

    You need to notice two things:

    (1) The project type:
    If you are developing WP8/Wp8.1 Silverlight app, you need to use Windows Phone Silverlight template in Visual Studio
    If you are developing WP8.1 RT app, you need to use Windows Phone template in Visual Studio

    (2) Different API:

    For Windows Phone 8 / 8.1 Silverlight app, we need to use SmsComposeTask Class
    For Windows Phone 8.1 RT app, we need to use ChatMessage class

    Please refer to this thread and check my reply: https://social.msdn.microsoft.com/Forums/en-US/fb610a2a-4144-4f62-9a18-7327ad732d77/how-do-i-compose-sms-through-vb-in-windows-phone?forum=wpdevelop


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, April 06, 2015 9:25 AM
    Moderator