Arys
Arys

Reputation: 487

Visual Studio 2013 windows phone project templates doubts

I have updated my code to WP 8.1 and wanted to organise it better by using Class Libraries.

The doubt comes when I find there are 2 Class library project templates for Windows Phone:

  1. Class Library (Windows Phone)
  2. Class Library (Windows Phone Silverlight)

If i select template 1, i see the assemblies referenced by default are .NET for Windows Store Apps and Windows Phone 8.1

If i select template 2, i got asked the target version of the Windows Phone OS (8.0 or 8.1) and the assemblies references by default are .NET for Windows Phone and Windows Phone.

Do you know the differences between them? I have looked into the matter and seems it depends if you want to load the .NET runtime namespaces or not, am i correct? Are there any more differences?

Upvotes: 1

Views: 195

Answers (1)

Jogy
Jogy

Reputation: 2475

The class library type will depend on whether your main app will be a Windows Phone 8.1 Silverlight app, or Windows Phone 8.1 XAML app.

The advantage of WP8.1 XAML app is that it is converged with Windows 8.1 - you can even create an Universal App that shares almost all code and xaml between the Win8 and WP8.1 apps.

The advantage of WP8.1 Silverlight app is that it is more closer to the old WP8.0 app - less changes are required, and also it has access to some APIs not available to WP8.1 XAML apps.

Upvotes: 1

Related Questions