我刚刚更新到Azure Service Fabric 2.1.150 SDK并注意到在编译我的Manifest(.sfproj
)项目时我开始收到构建警告:
C:\Program File (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5):
warning MSB3276: Found conflicts between different versions of the same dependent
assembly.
Please set the "AutoGenerateBindingRedirects" property to true in the project file.
For more information, see http://go.microsoft.com/fwlink/?inkId=294190.
我可以轻松地按照说明进行操作,并通过编辑.sfproj
来阻止警告显示:
<PropertyGroup Label="Globals">
<ProjectGuid>12dbad9d-346c-xxxx-xxxx-04ab65fb4cac</ProjectGuid>
<ProjectVersion>1.1</ProjectVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
问题:为什么会在2.1.150中开始这样做,我应该担心什么?
答案 0 :(得分:2)
由于此新版本中.sfproj使用的某些MSBuild文件中的逻辑发生了更改,因此在此方案中显示此警告。一旦下一个版本发布,它应该解决这个问题,这样警告就不会再出现了。你的缓解是好的,没有什么可担心的警告。