You’ll have to maintain two different versions. You can’t compile one XAP that supports both versions at the same time.
The Mango APIs are only available when compiling with the 7.1 SDK. And as such, you can’t do in-line checking in the code.
But it’s rather pointless, as there’s almost no users left that haven’t upgraded to Mango, and all new phones ship with Mango.
Related Contents:
- Python’s many ways of string formatting — are the older ones (going to be) deprecated?
- How to hash a password
- Can I pass an array as arguments to a method with variable arguments in Java?
- How to install both Python 2.x and Python 3.x in Windows
- Calculating Distance between two Latitude and Longitude GeoCoordinates
- Is JDK “upward” or “backward” compatible?
- Enabling auto layout in iOS 6 while remaining backwards compatible with iOS 5
- Windows Phone 7 (WP7) Change a button’s background color on click
- Passing data from page to page
- Setting the User-Agent header for a WebClient request
- Getting Started with Windows Phone 7 [closed]
- Parsing HTML with c#.net [duplicate]
- Weak Linking – check if a class exists and use that class
- Developing cross platform mobile application [closed]
- How to trigger event when a variable’s value is changed?
- “UpdateSourceTrigger=PropertyChanged” equivalent for a Windows Phone 7 TextBox
- Local Sql database support for Windows phone 7 [closed]
- How to post data using HttpClient?
- How to access a specific item in a Listbox with DataTemplate?
- Windows Phone 7 close application
- How to handle lack of JavaScript Object.bind() method in IE 8
- How can I data bind a list of strings to a ListBox in WPF/WP7?
- std::vector, default construction, C++11 and breaking changes
- Converting image to base64
- Why is Python 3 not backwards compatible? [closed]
- Why does aggregate initialization not work anymore since C++20 if a constructor is explicitly defaulted or deleted?
- Display GIF in a WP7 application with Silverlight
- Close a WP7 application programmatically? [duplicate]
- Add custom header in HttpWebRequest
- Deserializing JSON array into strongly typed .NET object
- How well does jQuery support backward compatibility?
- How to create a SerializationBinder for the Binary Formatter that handles the moving of types from one assembly and namespace to another
- Use local images in Webbrowser control
- Static analysis tool to detect ABI breaks in C++ [closed]
- WebClient does not support concurrent I/O operations
- Passing a complex object to a page while navigating in a WP7 Silverlight application
- Conversion of BitmapImage to Byte array
- How to programmatically set selected Panorama item in WP7
- What URI protocols exist on Windows Phone 8?
- How to POST request using RestSharp
- Windows Phone 7 and native C++/CLI