简体   繁体   English

如何在VS2012中将dll更改为发布模式?

[英]How to change dll into release mode in VS2012?

I am developing a windows 8 application. 我正在开发Windows 8应用程序。 Inorder to load pdf in my application I am using MuPDF library which is downloaded from github. 为了在我的应用程序中加载pdf,我正在使用从github下载的MuPDF库。 I have added MuPDFWinRT.vcxproj in my solution and this project reference is added in my aaplication. 我在解决方案中添加了MuPDFWinRT.vcxproj,并且在我的应用中添加了该项目参考。 My application renders pdf successfully. 我的应用程序成功渲染了pdf。 As part of uploading application to windows store, tested with Windows App Certification Kit . 作为将应用程序上载到Windows应用商店的一部分,已通过Windows App Certification Kit进行了测试。

The test failed and i got the following error " The binary MuPDFWinRT.dll is built in debug mode ." 测试失败,并且出现以下错误“ 二进制MuPDFWinRT.dll是在调试模式下构建的 。” I have given Release mode in configuarationmanager but still getting the error. 我在configuarationmanager中给出了Release模式,但是仍然出现错误。 I have also tried to update Windows App Certification Kit but that also failed. 我也曾尝试更新Windows App认证工具包,但这也失败了。

Can we install Windows App Certification Kit 3.1 on Windows 8? 我们可以在Windows 8上安装Windows App Certification Kit 3.1吗? Please help.. 请帮忙..

The DLL you downloaded was created in debug mode. 您下载的DLL是在调试模式下创建的。

Sounds like you will need to find and download this MuPDF library again, this time making sure it's compiled in release mode. 听起来您将需要再次找到并下载此MuPDF库,这次确保它已在发布模式下编译。 only the author of the DLL can make sure that... 只有DLL的作者才能确保...

If you downloaded it from GitHub, i am sure you get two set of binaries , one for debug mode and other for release mode . 如果您是从GitHub下载的,我确定您会获得two set of binaries ,一组用于debug mode ,另一组用于release mode You have used Debug mode binaries, refer Release mode binaries instead. 您已经使用了调试模式二进制文件,而请参考发布模式二进制文件。

Relative path is like this: ~\\MuPDF.WinRT-master\\MuPDF.WinRT-master\\Binaries\\v0.5\\Win8_v0.5\\Win8\\Win32\\Release . 相对路径是这样的: ~\\MuPDF.WinRT-master\\MuPDF.WinRT-master\\Binaries\\v0.5\\Win8_v0.5\\Win8\\Win32\\Release


In case you have added .vcxproj directly to your solution, you need to build that project with Configuration set to Release mode. 如果您将.vcxproj直接添加到解决方案中,则需要在Configuration设置为Release mode的情况下构建该项目。

Open Configuration Manager from Build Menu (Build -> Configuration Manager) and change Configuration for your project to Release mode. 从“构建”菜单(“构建”->“配置管理器”)打开Configuration Manager,然后将项目的“配置”更改为“ Release模式。

But i would suggest to change Configuration for your solution from Debug to Release mode and build solution in release mode so that release mode binaries emit for all your projects. 但是我建议您将解决方案的配置从“ Debug更改为“ Release模式,并在发布模式下构建解决方案,以便为您的所有项目发出发布模式的二进制文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM