BizTalk 引用.Net Assembly的一些問題

來源:互聯網
上載者:User

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  的大力協助

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.