Win32 DLL到UWP-DLL

Win32 DLL到UWP-DLL,dll,uwp,visual-studio-2017,win-universal-app,Dll,Uwp,Visual Studio 2017,Win Universal App,我正在Windows 10上使用Visual Studio 2017。我尝试将Win32 DLL转换为UWP-DLL。然而,当我编译时,我得到了以下错误: 1>Build FAILED. 1> 1>error PRI175 : 0x80004005 - Processing Resources failed with error : Unbekannter Fehler 1>GENERATEPROJECTPRIFILE : error PRI261: 0xdef00523

我正在Windows 10上使用Visual Studio 2017。我尝试将Win32 DLL转换为UWP-DLL。然而,当我编译时,我得到了以下错误:

1>Build FAILED.
1>
1>error PRI175 : 0x80004005 - Processing Resources failed with error : Unbekannter Fehler
1>GENERATEPROJECTPRIFILE : error PRI261: 0xdef00523 - Named resource 'Files\CRenderer\..\..\..\Products\CRenderer\CRenderer\CompiledShaders\GS_GenerateNormals.cso' is outside project root! Only resource containers are allowed outside the project root.
1>    1 Warning(s)
1>    2 Error(s)
1>
1>Time Elapsed 00:00:00.78
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
*.hlsl着色器可正确编译,并存储在文件夹“CompiledShaders”中。在文件“layout.resfiles”中,路径指定为“crender……”\Products\crender\crender\CompiledShaders\GS_GenerateNormals.cso”(而不是简单的“CompiledShaders\GS_GenerateNormals.cso”)。 当我将“layout.resfiles”文件设置为只读时,VS写入:任务“GeneratePriConfigurationFiles”失败

为了将Win32 dll转换为UWP dll,我重新编译了链接的libs,然后使用以下项目属性编译了dll项目:
配置属性>常规>Windows应用商店应用程序支持>是
配置属性>c/c++>代码生成>运行时库>MD/MDd
卸载、插入这些标记并重新加载:

<Default Language> en-US </ Default Language>
<Minimum Visual Studio Version> 14.0 </ minimum Visual Studio version>
<AppContainerApplication> true </ AppContainerApplication>
<ApplicationType> Windows Store </ ApplicationType>
<Windows Target Platform Version> 10.0.15063.0 </ Windows Target Platform Version>
<WindowsTargetPlatformMinVersion> 10.0.14393.0 </ WindowsTargetPlatformMinVersion>
<Application Type Revision> 10.0 </ Application Type Revision>

你能分享更多关于如何将Win32 Dll转换为UWP Dll的细节吗?你好,Nico,谢谢你的关注。我编辑了这个问题,希望能有所帮助。你的意思是你已经解决了你的问题吗?不,仍然是错误“在项目根目录之外”。我只是试图更准确地解释我将win32 dll转换为UWP-dll的方法。您是否尝试查看本文,了解如何将win32 dll移植到UWP:?
Configuration Properties> c / c ++> Preprocessor -> Preprocessor Definitions> "WIN_UWP"
(In the code:) #ifndef WIN_UWP [Function(){…}] #endif)