Declaring Windows Libraries or References

In Windows and Windows Phone, libraries can be provided as dll.

To be able to import dll in the specific code, declare it with the tag <specific><windowsphone><library> or <specific><windows><library> depending on the platform.

System Libraries

System libraries are dll already included in Visual Studio. They can be chosen among a defined list under the system attribute.

Example

<specific>
   <windowsphone>

      <library name="Interop" system="Microsoft.Phone.Interop" />

   </windowsphone>
</specific>

DLL Files

External third party libraries can be imported in the project. In that case, the name and the path to the dll are required.

Example

<specific>
   <windowsphone>

      <library name="Interop" system="Microsoft.Phone.Interop" />

   </windowsphone>
</specific>