Q: Does VS2015 Community Update 3 inform the compilation of Windows UWP applications for Win10 Build 10586 on Win7SP1?

I have a PC with Windows 7 SP1 (64 bit) that I used to create a Windows storage application. I used the Visual Studio 2015 Community Edition 2 update. This worked fine until I applied Visual Studio Update 3 and the latest version of the Windows SDK (14393).

When I target the previous version (10586), I get the following error when trying to compile a C # project:


Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ AppxPackage \ Microsoft.AppXPackage.Targets (2151.5): Error APPX0002: The GenerateAppxPackageRecipe task failed. 0x7F - Failed to load the MRM support library.


(I have a C ++ UWP project in the same solution and it compiles into a DLL without any problems.)

I tried to reinstall the VS2015 2 update, reinstall the VS2015 3 update, restore Visual Studio, restore the Windows SDK for 10586. None of this worked.

I know that the latest Windows 10 SDK does not support Windows 7 SP1; however, does this apply to all previous Windows 10 SDKs?

+6
source share
2 answers

Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ AppxPackage \ Microsoft.AppXPackage.Targets (2151.5): Error APPX0002: The GenerateAppxPackageRecipe task failed. 0x7F - Failed to load the MRM support library.

This is a known issue in the Windows 10 SDK (version 10.0.14393.33), which is included in Visual Studio 2015 with Update 3. And it has been fixed in QFE Build 10.0.14393.795 .

This unprotected update includes quality improvements:

  • A problem that developers could not create UWP applications on Windows 7 because the MRMSupport.dll file could not be loaded.
  • Fixed issue where MidlRT and MDMerge could not start in Windows 7
  • Fixed an issue where installing the SDK failed to install on Windows
  • We fixed an issue where deploying the old Store app to an 8.1 phone caused Visual Studio to crash.
  • Fixed an issue where application data was not saved in remote debugging sessions when applications became unregistered

See the Windows SDK and the emulator archive for more information.

To solve this problem, go to "Add or Remove Programs" and "Uninstall" Software Development Kit for Windows - Windows 10.0.14393.33 . Then reinstall the 10.0.14393.795 version from the Windows SDK archive and emulator. After that, you can create the UWP application without errors.

However, in Windows 7 with Visual Studio 2015, the official support for Windows Universal is Build Only . Many other Visual Studio features are degrading. Therefore, if you are developing Windows Universal Apps, Windows 10 is highly recommended. See this answer for more information.

+3
source

Finally, after several days of repair and reinstallation, I finally fixed it.

Step 1. Suppose you installed Visual Studio in the default folder, go to the following folder: C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ AppxPackage

Step 2: Rename Microsoft.AppxPackage.Targets to another. I added "-old" after the package.

Step 3: Clean up the solution.

Step 4: Make sure you are targeting Windows 10 Build 10586.

Step 5: Build a Solution.

The file with my target files is dated May 31, 2016, before I even installed Visual Studio 2015. Before I did these steps, I also deleted everything in the bin / Debug folder, but I'm not sure if this helped or not.

+5
source

All Articles