LNK1318:意外的PDB错误; RPC(23) [英] LNK1318: Unexpected PDB error; RPC (23)

查看:847
本文介绍了LNK1318:意外的PDB错误; RPC(23)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MSBuild随机为我们产生这些错误:
$


LINK:致命错误LNK1318:意外的PDB错误; RPC(23)'(0x000006BA)'

MSBuild randomly keep producing these errors for us:

LINK : fatal error LNK1318: Unexpected PDB error; RPC (23) '(0x000006BA)'

如果我们重新编译相同的代码,错误就会消失。这在我们的CI / CD设置中非常有问题,因为每隔一段时间我们就会得到一个在代码中没有任何问题的失败构建。 
$


尽管存在致命错误,MSBuild仍会生成二进制文件,但它不能运行。如果您尝试运行它,则会收到一条错误消息,指出"此应用无法在您的PC上运行"。

If we recompile the same code, the error goes away. This is extremely problematic in our CI/CD setup since every once in a while we get a failed build that doesn't have any issues in the code. 

MSBuild actually still produces a binary despite the fatal error, but it an't be run. If you try to run it you get an error message stating the "This app can not run on your PC".

这似乎是一个错误,还有补丁或解决方法吗?如果没有,那么是否有任何文件,所以我可以找出原因?

This seem to be a bug, so is there a patch or workaround? If not then is there any documentation on it so I can find out the cause?

推荐答案

你好talbot1,

Hi talbot1,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

项目是否可以在本地机器上构建?

Could the project build on the local machine?

如果是这样,似乎有什么东西关于pdb文件或调用该文件的错误。在备份项目后,请删除项目文件夹中的/ bin,/ obj文件夹以重新生成它们,然后重新启动Windows并重建它。

If so, it seems that there is something wrong about pdb file or calling the file. After back-up your project, please delete the /bin, /obj folders in your project folder to regenerate them, then restart your windows and rebuild it.

预计会有任何反馈。

最好的问候,

Dylan





这篇关于LNK1318:意外的PDB错误; RPC(23)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆