BizTalk 引用.Net Assembly的一些问题

1.在Orchestration  的 Expression中打点不能拉出 Assembly中定义的属性

自己写一个.net assembler serializable,按照一般的做法,定义private field,然后用public的property包装一下,希望是在orchestration里读写public的property操作,
但是在expression中打点拉不到property,只能拉到public的field

public string m_methodname;

public string Methodname
{
     set
     {
          m_methodname = value;
      }
}

也就说只能拉到m_methodname,不能拉到 Methodname属性,解决方法:在属性里加入get

public string Methodname
{
    set
    {
        m_methodname = value;
    }
    private get     //这里用private修饰也可以
    {
        return m_methodname;
    }
}

发现即使加入了private的get,在orchestration中也可以拉到,当然了,不能用于传出值了

看来orchestration中验证的是property的完整性

 

2.BizTalk 引用.Net Assembly不能自动更新的问题

assembly 重新编译后,在biztalk  项目里并没有自动更新,要自己删除引用,重新添加才能起作用

解决方法: 选择引用的assembly,查看属性,把Copy local属性从ture改成false,然后再从false改成true,来回改就好了

Changing the Copy Local property refreshes the reference. Theoretically, you should be able to set the Copy Local property to False, as that is the setting that ensures that the contents of the EAISchemas project are available to the EAIOrchestrations project. There is an issue with Visual Studio 2005, however, that makes this inadvisable. For more information, see the Knowledge Base article 313512, "BUG: "Could not copy temporary files to the output directory" error message when you build a solution that contains multiple projects" available at http://go.microsoft.com/fwlink/?LinkId=62208.

 

 

PS:非常感谢chnking  的大力帮助

转载于:https://www.cnblogs.com/upzone/archive/2007/07/03/803929.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值