A Windows Runtime Component project fails to compile if an FBX graphics file compiled with “Mesh Content Pipeline” is added to the project. The failure is caused by MakePri.exe as follows.This error appears to only happen in the Windows Runtime Component project, because the same thing works fine in the “Direct3D App” project template provided with Visual Studio.Following is the output from the build:1>------ Rebuild All started: Project: WindowsRuntimeComponent1, Configuration: Debug Win32 ------1> arrow.fbx1> pch.cpp1> Class1.cpp1> Creating library C:\Users\Brett\Desktop\Visual Studio 3D Starter Kit\C++\Debug\WindowsRuntimeComponent1\WindowsRuntimeComponent1.lib and object C:\Users\Brett\Desktop\Visual Studio 3D Starter Kit\C++\Debug\WindowsRuntimeComponent1\WindowsRuntimeComponent1.exp1> WindowsRuntimeComponent1.vcxproj -> C:\Users\Brett\Desktop\Visual Studio 3D Starter Kit\C++\Debug\WindowsRuntimeComponent1\WindowsRuntimeComponent1.dll1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(520,9): error MSB6006: "MakePri.exe" exited with code -1073740940.========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========This can be worked around by doing the following:1) Add the FBX file2) Compiling (this fails with the above error)3) Get the output from the MeshContentTask (the .cmo and .cso file) and copy them to the project folder and add as a resource (under the file’s properties set “Content” to “Yes”)4) Delete the original FBX fileBy doing this the compiled FBX file is added as a resource and the project builds successfully.
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results