简体   繁体   English

Biztalk Map 目标架构导入多个架构

[英]Biztalk Map Destination Schema Imports Multiple Schemas

I have a target schema that imports 2 more scehmas.我有一个目标架构,可以再导入 2 个架构。 When the schema files are in the same project as the map then I have no problem.当架构文件与 map 在同一个项目中时,我没有问题。 However, if the schemas are in a separate Schemas project (as per good practice) then on building the map I get the error:但是,如果架构位于单独的架构项目中(根据良好做法),那么在构建 map 时会出现错误:

*Cannot load source/destination schema: xxx.BS.CardPayments.Schemas.Projx.Service1_tempuri_org. *无法加载源/目标架构:xxx.BS.CardPayments.Schemas.Projx.Service1_tempuri_org。 Either the file/type does not exist, or if a project dependency exists, the dependent project is not built.*文件/类型不存在,或者如果存在项目依赖项,则不构建依赖项目。*

I have tried copying schemas dll to GAC before building map but this didn't help.在构建 map 之前,我曾尝试将架构 dll 复制到 GAC,但这没有帮助。

Any suggestions gratefully received!任何建议都感激不尽!

Thanks*emphasized text*谢谢*强调文字*

Rob

Rob, When your schemas are in the same project as your map, the map will reference them by file name. Rob,当您的模式与 map 位于同一项目中时,map 将通过文件名引用它们。 If you move the map to another project and try to open it, the BizTalk map editor won't find those files anymore.如果将 map 移动到另一个项目并尝试打开它,BizTalk map 编辑器将找不到这些文件。 You can see this clearly if you open the map using notepad or an XML editor (search for the Location attribute near the top of the file).如果您使用记事本或 XML 编辑器(搜索文件顶部附近的 Location 属性)打开 map,您可以清楚地看到这一点。

The solution is to reference the schemas using their fully qualified .NET type name - ie namespace + type name.解决方案是使用完全限定的 .NET 类型名称来引用模式 - 即命名空间 + 类型名称。 You can get these values from the properties window when the schema file is selected in Solution Explorer.在解决方案资源管理器中选择架构文件时,您可以从属性 window 获取这些值。

Hope it's clear, let me know if you require any clarification.希望很清楚,如果您需要任何澄清,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM