title: How to access custom folder inside bin folder in project C#
body: <p>Currently I got the full path for a folder inside my project. This is not sustainable in the long run. I need something like this </p>
  
  <p><code>var path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);</code></p>
  
  <p>but instead of accessing the <code>bin/Debug</code> folder I want to access <code>bin/tessdata</code> folder (<code>tessdata</code> is the custom folder).</p>
  
  <p>I have looked at some other posts but all of them end up in the <code>bin/Debug</code> folder.</p>
  
  <p>This is how it should've worked from the very beginning 
  <code>var ocr = new TesseractEngine("./tessdata", "eng", Tesseract.EngineMode.TesseractAndCube);</code> but I can't access the folder through <code>./tessdata</code>.</p>
  
  <p>Does anyone have a solution to either of these two? Thanks!</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Sorry, I have misunderstood the situation. I am actually trying to reach the <code>tessdata</code> folder inside the <code>bin/debug</code> folder inside another layer. The code is being run in that project but I didn't get that the the path went to the running project (the winform or webAPi projects). Basically  <code>Project\LicensePlate.Core\bin\Debug\tessdata</code>.</p>
  
  <p>I apologize for the inconvenience, but still hope for some help if possible!</p>