title: Ghostscript installation issue on .net
body: <p>I followed a ton of SO guides in order to install Ghostscript in my MVC C# app but I cannot make the code below be recognized. It keeps saying &quot;GhostscriptRasterizer could not be found (are you missing a using directive or an assembly reference?)&quot;</p>
  <pre><code>public ActionResult PDFToImages(string pdfFilePath)
          {
              //...
  
              using (var rasterizer = new GhostscriptRasterizer())
              {
                  //...
              }
  
              //...
          }
  </code></pre>
  <p>I am using Visual Studio and here's what I've already tried:</p>
  <ul>
  <li>Get the .exe file from <a href="https://www.ghostscript.com/download.html" rel="nofollow noreferrer">https://www.ghostscript.com/download.html</a> and installed it. Then manually include gsdll32.dll in my project as &quot;content&quot; (menu: Add existing item);</li>
  <li>On Visual Studio went to &quot;Tools&gt;NuGet Package Manager&gt;Manage NuGet Packages for solution&quot; and then installed Ghostscript.NET by Josip Habjan.</li>
  <li>Also on NuGet Package Manager tried to install Ghostscript dlls by Matthieu - Get an error &quot;Failed to add reference to 'gsdll32'. Please make sure that the file is accessible, and that it is a valid assembly or COM component.&quot;</li>
  <li>On Package Manager Console did &quot;Install-Package Ghostscript -Version 9.2.0&quot; and got also the error above</li>
  </ul>