Search code examples
c#uwpwindows-10win-universal-appdesktop-bridge

"resources.pri" file is missing or invalid when compiling sample of UWP with Desktop Extension


When compiling the sample UWP with Desktop Extension Tutorial - Part 3 in VS2019, I'm getting the following error. I Cleaned the project and did a re-build but still the same error. Also manually cleaned bin and obj folders as suggested here but same error again:

Error PRI252 0xdef00071 - File C:\UWP_FullTrust_3\UWP\bin\x86\Debug\resources.pri not found. File C:\UWP-FullTrust-master\UWP_FullTrust_3\Package\GENERATEPROJECTPRIFILE

Configuration Manager Settings in VS2019 for this Project:

enter image description here My system:

Windows 10 Pro - version 1809 - OS Build 17763.557

Solution

  • In the solution's configuration manager you need to check the "Build" option also for the UWP project. This will resolve your build error.