Assembly folder?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ivan

    Assembly folder?

    How do I determine assembly folder? I know about
    Environment.Cur rentDirectory but it returns directory where process stared.
    I need directory where my DLL located (Code runs inside DLL)

    Thank you,
    Ivan

  • Stanimir Stoyanov

    #2
    Re: Assembly folder?

    Ivan,

    You can use Reflection to obtain the current assembly's information.

    string filePath =
    System.Reflecti on.Assembly.Get ExecutingAssemb ly().Location;
    string folderPath = System.IO.Path. GetDirectoryNam e(filePath);

    // Make use of folderPath here.
    --
    Stanimir Stoyanov
    메이저사이트 순위 먹튀검증이 완료된 토토사이트 커뮤니티 - 토토핫 입니다. 저희 토토핫에서는 베팅할때 필수로 점검해야 되는 안전 가이드를 제공하며 안전한 메이저 놀이터 목록과 메이저사이트 먹튀검증 꽁머니사이트를 추천드립니다.


    "Ivan" <ivan@mailgroup s.microsoft.com wrote in message
    news:E6B23068-7117-4B46-9AA8-6596FAC87B72@mi crosoft.com...
    How do I determine assembly folder? I know about
    Environment.Cur rentDirectory but it returns directory where process
    stared.
    I need directory where my DLL located (Code runs inside DLL)
    >
    Thank you,
    Ivan

    Comment

    Working...