VS2016 发布项目提示 CS0006 C# Metadata file 'xxxxxxx.dll' could not be found

生成的时候没有问题,发布项目的时候提示

CS0006 C# Metadata file 'xxxxxxx.dll' could not be found

解决方案,找到 xxxxxxx.dll 这个项目,属性。将程序集名称 修改为 和 xxxxxxx.dll项目的csproj中

Project -> PropertyGroup -> AssemblyName 修改为一样,然后clean,最后生成就OK了。