An MSB3841 error occurs when you try to retarget a Windows 8 Store app as a Windows 8.1 Store app in Visual Studio 2013 Preview

Symptoms

As a developer, when you retarget a Windows 8 Store app as a Windows 8.1 Store app in Microsoft Visual Studio 2013 Preview, you receive the following error message:

MSB3841: The SDK "extension_SDK_name" depends on the SDK "Microsoft.VCLibs, version 11.0", which is incompatible with projects targeting platform version "8.1".

Cause

This problem occurs because the Extension SDKs that depend on version 11.0 of the Visual C++ libraries are incompatible with Windows Store apps that are created for Windows 8.1. 

Resolution

To resolve this problem, obtain the Windows 8.1 version of the Extension SDK that is named in the error message from the SDK publisher.

If an updated Extension SDK is not available from the SDK publisher, use the following workaround to temporarily continue development on a local development environment.

Workaround

Note The Windows 8.1 Store app will not pass Windows app certification requirements until the updated Extension SDK is obtained and referenced.

To work around this issue temporarily and continue development on a local development environment, follow these steps:
  1. Locate the Extension SDK installation location, and update the SDKManifest.xml file to remove the dependency on Microsoft.VCLibs version 11.0. Extension SDKs can be located in one of three locations:
    • \ProgramFiles\Microsoft SDKs\TPI\vTPV\ExtensionSDKs
    • \Users\user_name\AppData\Local\MicrosoftSDKs\TPI\vTPV\ExtensionSDKs
    • HKEY_LOCAL_MACHINE\Software\Microsoft\MicrosoftSDKs\TPI\vTPV\ExtensionSDKs\SDK_Name\SDK_Version\@default = SDK_root
  2. Locate the desired SDKManifest.xml file in the root SDK folder, and edit the file as a text file to remove the following code from the FileList element:

    DependsOn="Microsoft.VCLibs, version=11.0" 


    Note Only remove this dependency if multiple dependencies are present. Some SDKs, such as the Bing Maps SDK, have a version for both the XAML and JavaScript implementations. Edit the manifests for the corresponding SDKs that you want to reference.
  3. Make sure that the Microsoft Windows 8 Development installation option is enabled when you install the Professional, Premium, or Ultimate editions of Visual Studio 2013 Preview. If you do not know whether this option was selected during installation, locate Visual Studio 2013 Preview in the Programs and Features item in Control Panel, and then click Change to update the program. This opens the Setup menu. Click Modify, click to select the Microsoft Windows 8 Development check box, and then click Update.

    Note For Windows Express 2013 Preview, the Microsoft Windows 8 Development option is not available. Therefore, you must install Visual C++Redistributable for Visual Studio 2012 on the computer and then build and run the app.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Properties

Article ID: 2861255 - Last Review: Jun 26, 2013 - Revision: 1

Microsoft Visual Studio 2013 Preview, Microsoft Visual Studio Express 2013 Preview for Windows Desktop, Microsoft Visual Studio Express 2013 Preview for Web, Microsoft Visual Studio Express 2013 Preview for Windows, Microsoft Visual Studio Premium 2013 Preview, Microsoft Visual Studio Professional 2013 Preview, Microsoft Visual Studio Test Professional 2013 Preview, Microsoft Visual Studio Ultimate 2013 Preview

Feedback