title: PowerShell - creating a module from C#
body: <p>Okay, I have been fumbling with this project for quite a while.  I can't take credit for any of the code.  What I would like to do is be able to efficiently parse a PDF file and search for keyword(s) using PowerShell.  I found beefycode's Convertfrom-PDF cmdlet: <a href="http://www.beefycode.com/post/ConvertFrom-PDF-Cmdlet.aspx" rel="nofollow">http://www.beefycode.com/post/ConvertFrom-PDF-Cmdlet.aspx</a>
  That seems like what I need, of course it also seems to require a PDFParser class from here: <a href="http://www.codeproject.com/Articles/14170/Extract-Text-from-PDF-in-C-100-NET" rel="nofollow">http://www.codeproject.com/Articles/14170/Extract-Text-from-PDF-in-C-100-NET</a></p>
  
  <p>I have figured out how to compile the source files from these sites and create .dll files, and how to create a folder in my user-module location to put these .dlls in.  </p>
  
  <p>Now, i'm stuck on compiling the cmdlet that contains the Convertfrom-PDF command.  I'm getting this error.
  Add-Type : c:\Users\12345\AppData\Local\Temp\u0ofo-9-.0.cs(11) : Warning as Error: Field 'PowerShell.PDF.ConvertFromPDF._PDFFile' is never assigned 
  to, and will always have its default value null</p>
  
  <p>Does this make sense to Powershell?</p>
  
  <pre><code>[Cmdlet( VerbsData.ConvertFrom, "PDF" )]
  public class ConvertFromPDF : Cmdlet
  </code></pre>
  
  <p>Not only that, but i'm baffled out how to work with a source file with a .csproj extension without visual studio.  I ended up just opening up with notepad and saving it with a .cs extension.</p>
  
  <p>Can anyone help shed some light on my problems?  I probably should have started with something smaller, to begin learning how to create modules.</p>
  
  <p>Basically, i've got 2 classes, each needs to be compiled.  Then there's the assemblyinfo.cs file that needs to be compiled.  It's the .csproj source file that seems to wrap these all up into a nice little package...and that is the file I am unable to compile.</p>
  
  <p>thanks.</p>