.netcore 2.0 發佈後,小版本更新速度驚人linux
截止目前:2.1.200bash
最新一個新項目,vs發佈到linux@debian9一直報錯,反覆發佈n次依然失敗。把本地2.1.100更新到最新2.1.200再次vs發佈,依然失敗。app
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.net
上傳後運行正常。命令行
可能緣由:dotnet小版本更新太快,vs沒更新到最新小版本。也算是坑一個,錯誤信息太不明顯。blog