开发者

Getting Final Assembly via Reflection in Silverlight

开发者 https://www.devze.com 2023-02-19 12:30 出处:网络
I have this project structure/hierarchy: Core Project Framework Components UI Components I\'m using a reflective process within the \"Framework Components\" piece.I thought Assembly.GetExecutingAss

I have this project structure/hierarchy:

Core Project
    Framework Components
         UI Components

I'm using a reflective process within the "Framework Components" piece. I thought Assembly.GetExecutingAssembly() would return to me the UI Components framework, but because the current executing piece is in Fram开发者_JAVA百科ework Components, it's not, and the caller is the Core project. This is because the class in Framework Components is being called by a component in Core Project for this specific evaluation.

Is there a way to refer to the UI Components framework without explicitly referring to it (in a generic way)?

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号