码迷,mamicode.com
首页 > 移动开发 > 详细

.netcoreapp 发布到 linux 的问题,vs靠不住

时间:2018-05-16 22:28:52      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:bash   tco   EAP   The   core   lis   dex   locate   .dll   

.netcore 2.0 发布后,小版本更新速度惊人

截止目前:2.1.200

 

最新一个新项目,vs发布到linux@debian9一直报错,反复发布n次依然失败。把本地2.1.100更新到最新2.1.200再次vs发布,依然失败。

root@omni:/data/xxx# dotnet WebHost.dll

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly ‘System.IO.FileSystem, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a‘. The located assembly‘s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Aborted

 

最后使用命令行:dotnet publish --f netcoreapp2.0 -r linux-x64

上传后运行正常。

 

可能原因:dotnet小版本更新太快,vs没更新到最新小版本。也算是坑一个,错误信息太不明显。

.netcoreapp 发布到 linux 的问题,vs靠不住

标签:bash   tco   EAP   The   core   lis   dex   locate   .dll   

原文地址:https://www.cnblogs.com/kellynic/p/9047975.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!