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