title: Suppress build warnings for generated code behind of Web Site Visual Studio project
body: <p>Is there a way to suppress specific build warnings for generated code behind of <a href="http://msdn.microsoft.com/en-us/library/dd547590(v=vs.110).aspx" rel="nofollow">Web Site Visual Studio project</a>?</p>
  
  <p>Because the project is a <code>Web Site</code> type project (has no project file) it is not possible to globally suppress the warnings for it under <code>Properties</code> -> <code>Build</code> -> <code>Suppress Warnings</code>.</p>
  
  <p>And since the ASPX file is being dynamically generated/compiled, using <code>#pragma warning disable</code> is not possible at all.</p>
  
  <hr>
  
  <p>Working solution following lurker's help:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;system.codedom&gt;
      &lt;compilers&gt;
        &lt;compiler language="c#;cs;csharp"
            extension=".cs"
            type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
            warningLevel="4"
            compilerOptions="/nowarn:108,109"&gt;
          &lt;providerOption name="CompilerVersion" value="v4.0"/&gt;
          &lt;providerOption name="WarnAsError" value="false"/&gt;
        &lt;/compiler&gt;
      &lt;/compilers&gt;
    &lt;/system.codedom&gt;
  &lt;/configuration&gt;
  </code></pre>