Category: C#

C# Compiler Error – CS1759 cannot embed interop types from assembly

In this blog post, you’ll learn more about the C# Compiler Error – CS1759 and the related message description C# Compiler Error Code CS1759 C# Compiler Description for the Code :CS1759 Cannot embed interop types from assembly ‘{0}’ because it is missing either the ‘{1}’ attribute or the ‘{2}’ attribute.

How to Detect Windows Phone OS version using C#?

The Windows Phone SDK provides the Environment.OSVersion property which can be used to detect the version of the Operating System uses in Windows Phone (Windows Phone 8 / Windows Phone 7). Below is a code snippet that demonstrates how to detect the Windows Phone OS Version using C#. How to Detect Windows Phone OS version using C#?