I want to have a class library that will run under WinRT and also Windows Phone 8. What do I need to do?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To do that, you need to build your class library as a Portable Class Library, which creates an assembly that will run on multiple platforms. (Otherwise, assemblies for WinRT and Windows Phone 8 are essentially non-interchangeable.)
Visual Studio 2012 includes a project type that will let you do this easily; there is also a downloadable toolset that will let do this on VS 2010.
The framework functionality available is limited to a subset of that which is available on all of the platforms you are supporting.
Full details are available from MSDN, here: http://msdn.microsoft.com/en-us/library/gg597391.aspx