This project is read-only.

BizTalk Schema analysis is not happening

Mar 13, 2013 at 2:12 PM
I need to analyse the BizTalk Schemas against to my custom rule. But the schemas are not getting identified by BizCop. even the default schema rule is also not working against the Bad Schema.
Oct 24, 2015 at 2:08 PM
Edited Feb 29, 2016 at 5:22 PM
I also do not get any code analysis results for schemas. Has anyone else experienced this problem and found a way around it?
Feb 22, 2016 at 5:46 PM
Edited Feb 22, 2016 at 5:47 PM
Found the problem. For testable maps and schemas, I needed to add a reference to the Microsoft.BizTalk.TestTools.dll and add the following or statements to the code:
        protected static bool IsMap(TypeNode type)
            return IsChildOfType<TransformBase>(type) || IsChildOfType<TestableMapBase>(type);
        private static bool IsSchema(TypeNode type, SchemaTypeEnum expectedSchemaType)
            bool isSchemaType = IsChildOfType<SchemaBase>(type) || IsChildOfType<TestableSchemaBase>(type);
Feb 29, 2016 at 3:40 PM
To get BizTalkCop to work for schemas and maps using a ruleset defined for the BizTalk project from Visual Studio 2010 onwards you need to ensure the "Supress results from generated code (managed only)" is unchecked.