I faced a requirement today that I need to enable some BizTalk best practices and create a custom check-in policy for these practices while the developers are checking in code. While searching the internet I found the BizTalk Cop (which is a great tool) that does exactly that, but unfortunately this tool supports only Visual Studio 2010 and BizTalk 2010 and does not support BizTalk 2013 and visual studio 2012. So the challenge was how to enable this to work with Visual Studio 2012. Another challenge that I had was to create a default custom check-in policy and a rules set that is enabled by default on TFS that would only allow the developers to check-in their code if they enable this rule set.
The solution that I performed involved the following changes (updates)
<dependentAssembly> < assemblyIdentity name="FxCopCommon" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> < /dependentAssembly> < dependentAssembly> < assemblyIdentity name="FxCopSdk" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> < /dependentAssembly> < dependentAssembly> < assemblyIdentity name="Microsoft.Cci" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> < /dependentAssembly> < dependentAssembly> < assemblyIdentity name="Microsoft.VisualStudio.CodeAnalysis" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> < /dependentAssembly> < dependentAssembly> < assemblyIdentity name="Microsoft.VisualStudio.CodeAnalysis.Common" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> < /dependentAssembly> < dependentAssembly> < assemblyIdentity name="Microsoft.VisualStudio.CodeAnalysis.Interop" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> < /dependentAssembly>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> < dependentAssembly> < assemblyIdentity name="FxCopCommon" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> </dependentAssembly> < dependentAssembly> < assemblyIdentity name="FxCopSdk" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> </dependentAssembly> < dependentAssembly> < assemblyIdentity name="Microsoft.Cci" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> </dependentAssembly> < dependentAssembly> < assemblyIdentity name="Microsoft.VisualStudio.CodeAnalysis" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> </dependentAssembly> < dependentAssembly> < assemblyIdentity name="Microsoft.VisualStudio.CodeAnalysis.Common" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> </dependentAssembly> < dependentAssembly> < assemblyIdentity name="Microsoft.VisualStudio.CodeAnalysis.Interop" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> < bindingRedirect oldVersion="9.0.0.0" newVersion="11.0.0.0"/> </dependentAssembly> < /assemblyBinding>
Happy coding :)
Great story
Where BizTalkRules.ruleset file??
Where is BizTalkRules.ruleset file??
Sorry forgot the file. I have now updated the post.
thank you