msbuild - Service Fabric 2.1.150 在没有 AutoGenerateBindingRedirects 的情况下导致 MSBuild 警告

标签 msbuild azure-service-fabric

我刚刚更新到 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 开始发生,这是我应该担心的事情吗?

最佳答案

由于此新版本中 .sfproj 使用的一些 MSBuild 文件的逻辑发生了变化,因此在此场景中出现此警告。一旦下一个版本发布,它应该会解决这个问题,这样警告就不会再出现了。您的缓解措施很好,无需担心警告。

关于msbuild - Service Fabric 2.1.150 在没有 AutoGenerateBindingRedirects 的情况下导致 MSBuild 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38205190/

相关文章:

visual-studio-2008 - Hudson 可以为 msbuild 任务导出/设置/使用我的环境变量吗?

azure - 服务结构中出现错误 "The application URL is not set or is not an HTTP/HTTPS URL so the browser will not be opened to the application"

适用于 Service Fabric 的 Azure 应用程序见解

msbuild - 从文件内部强制使用 MSBuild 的工具版本?

c# - 编译 XNA 项目时无法执行请求的操作错误

c++ - 追踪哪个翻译单元内部编译器错误发生在

visual-studio - MSBuild 日志的默认位置是什么?

azure-service-fabric - 如何为每个节点部署相同服务类型的多个实例?

azure - 如何为 Service Fabric 配置 Let's Encrypt 证书?

azure - Service Fabric 中每个服务的应用程序