1

let us consider im having an application AAA. From my application im loaded an assembly named as BBB.When im in BBB path, i need to get the AAA Assembly name at run time. how to accomplish this? Thanks in advance

1 Answer 1

4

The call to:

Assembly.GetExecutingAssembly()

will return the assembly it's written in (the currently executing assembly). Or in your case, maybe you'll need:

Assembly.GetEntryAssembly()

to get the executable assembly (the assembly that the application was started with).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.