title: How to execute different actions based on the framework? (ASP.NET 5)
body: <p>Suppose that you have to migrate a C# application from the .NET framework to the new .NET Core, because you want to have some of it new capabilities.</p>
  
  <p>You have your code base and you want to get fully working parts at a time, since it will be a lot of work migrating all at once. The main idea is to be <em>fully core</em> in a future. </p>
  
  <p>My question is: </p>
  
  <ul>
  <li>Is there a way to check for functionality that is present in one framework but not in the other? Or to execute different actions based on the framework?</li>
  </ul>