Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 Rougamo 创建的 snupkg 会提示 pdb 和 dll 不匹配 #54

Closed
weilence opened this issue Jan 7, 2024 · 2 comments
Closed

使用 Rougamo 创建的 snupkg 会提示 pdb 和 dll 不匹配 #54

weilence opened this issue Jan 7, 2024 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@weilence
Copy link

weilence commented Jan 7, 2024

根据微软的文档配置生成的 snupkg,在上传到 nuget.org 后,会出现下面的错误提示
image

微软的文档: https://learn.microsoft.com/zh-cn/nuget/create-packages/symbol-packages-snupkg
snupkg对应的代码:https://github.com/weilence/Light/blob/main/src/Light.EntityFrameworkCore.Transactional/TransactionalAttribute.cs

因为出现了这个问题后,经过排查确认是 Rougamo 导致的,所以才把这个文件单独放一个 csproj
猜测可能跟 #36 有关系?

@inversionhourglass inversionhourglass added the enhancement New feature or request label Jan 8, 2024
@inversionhourglass
Copy link
Owner

嗯,是同类问题,这个问题短时间应该无法修复,目前计划中还有一个版本要先完成,目前打包只能采取不带symbol的

@inversionhourglass
Copy link
Owner

问题已确认并修复,按以下步骤:

  1. 更新Rougamo.Fody到3.0.0或以上版本
  2. 你的项目Light.EntityFrameworkCore.Transactional新增Fody的NuGet依赖

问题的主要原因是Mono.Cecil之前没有实现checksum的功能,详见 jbevain/cecil#610 ,之后在 jbevain/cecil#810 中修复。

上面的步骤中第二步是必须的,checksum部分需要直接引用Fody才能完成

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants