首页 > 其他分享 >Could not load file or assembly 'System.Drawing.Common, Version=5.0.0.0, Culture=neutral, Publi

Could not load file or assembly 'System.Drawing.Common, Version=5.0.0.0, Culture=neutral, Publi

时间:2022-12-21 12:12:12浏览次数:35  
标签:load 5.0 assembly 文件 0.0 System Common Drawing

今天做了头像的更新上传,功能调试的好好的,但是发布到线上就提示找不到文件,奇了怪了,发布目录的System.Drawing.Common.dll文件我也拷贝上去了,runtimes文件下的unix和win也有这个文件,尝试了更换应用池架构,有没有解决,最后才知道.net core的引用都放在了一个json文件里,这个文件我平时都没关注,发布的时候也只是更新dll文件,大意了

找到文件xxxxxx.deps.json,加入缺少的文件引用,或者直接替换这个文件到线上服务器就可以了

 

标签:load,5.0,assembly,文件,0.0,System,Common,Drawing
From: https://www.cnblogs.com/corechen/p/16995979.html

相关文章