title: C# compile functions based upon version of dll's used.
body: <p>I got lots of smaller projects, who each depend on various external dll's.
  Vendors bug-fix those dll's resulting in a range of my programs to be updated as wel,or not, as fixes not always work for other programs. And while i do know of some ways to tackle this. ea keep dll's in a lib folder or use Nuget. But still then maintaining of generic wrapper code can be a hassle.</p>
  
  <p>So I wonder are there some way in visual studio so we could write wrappers like this:</p>
  
  <pre><code>[Rongten.dll = 1.5+]   // 1.5 and above versions
  Public string[] ExtendedInfo()
  { return this.api.ExtendedInfo }
  
  [Rongten.dll = 1.2]  //only a specific version
  Public string[] ExtendedInfo()
  {String[] t = new string[1];
   t = "not available";
    return t;
  }
   [Rongten.dll = 1.1-]  //below a specific version
  Public string  ExtendedInfo()
  { 
   t = "not available";
    return t;
  }
  </code></pre>
  
  <p>So some square bracket method [ to allow a dll version]  or something like that, maybe by an addon. </p>