title: Do Portable Class Libraries handle conditional statements / references?
body: <p>I have a class library that I am sharing between .Net Framework and Silverlight using two linked projects and the linked-files technique.</p>
  
  <p>I'd like to convert that to a single Portable Class Library, but I have one bit of code that is different between the two.  I currently use a conditional compiler statements to separate the implementations of this one file.</p>
  
  <pre><code>#if SILVERLIGHT
  ...
  #else
  ...
  #endif
  </code></pre>
  
  <p>Will this be honored in the PCL?</p>
  
  <p>Also, the part of code that is NOT silverlight makes reference to a third-party regular .Net class library.  The PCL still compiles, but I cannot use it in Silverlight because of this reference.  Is there any way to tell the PCL to only include it for the .Net usage?</p>