title: How can I execute a TagHelper by Environment in ASP.NET Core?
body: <p>I'm leaving <code>todo:</code> comments/notes/questions to for my UX designer and Product Owner in our Dev environment; I've created a <code>TodoTagHelper</code> that makes this really easy, e.g.: </p>
  
  <pre><code>&lt;todo&gt;need to make this a search field&lt;/todo&gt;  
  </code></pre>
  
  <p>They like it, I like it, but I don't want to miss one and have it show up in Production; therefore, I'd like to change the output based on the environment.  </p>
  
  <p>How can I access the Configuration from within the TagHelper so I can remove the output if I'm not in Dev?  My guess is to add it to the <code>services</code> collection in <code>Startup.ConfigureServices</code>, but I'm not sure what scope I should use... or even if it's already accessible somewhere else.</p>