title: What is SetCompatibilityVersion inside of the startup class of asp.net Web API core project
body: <p>Using Visual Studio 2017, I just created a simple API project as shown below.
  And in the Startup.cs file I have this code. </p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services) {
  
      services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
  
  }
  </code></pre>
  
  <p>Can someone please throw some light as to what is means? Do we need to keep this code? </p>
  
  <p>I think MS should put some comments to indicate what such code does.</p>
  
  <p><a href="https://i.stack.imgur.com/6RMgc.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/6RMgc.jpg" alt="SetCompatibilityVersion"></a></p>