"resources.pri" 使用桌面扩展编译 UWP 示例时文件丢失或无效

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

编译示例时 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 但同样的错误:

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

此项目VS2019中的配置管理器设置

我的系统:

Windows 10 Pro - version 1809 - OS Build 17763.557

在解决方案的配置管理器中,您还需要为 UWP 项目选中 "Build" 选项。这将解决您的构建错误。