title: RouteAttribute is missing
body: <p>I am using Microsoft ASP.NET Web API 2.2 in a web application.</p>
  
  <p>A controller looks like this:</p>
  
  <pre><code>public class EventsController: ApiController
  {
    [HttpGet]
    [Route("GetAllActivities")]
    public IEnumerable&lt;IActivity&gt; GetEvents()
    {
      /* stuff */
    }
  }
  </code></pre>
  
  <p><strong>Problem description</strong>
  We are trying to have the RouteAttribute class included in our project and we found that it is hard to do so. Sometimes, we think we got it, but when we remove the bin directory and try to build again, its not there and the word Route is colored red. Another symptom is that GlobalConfiguration.Configure and HttpConfiguration.MapHttpAttributeRoutes will be missing. We also fail to understand the difference it makes to wipe away the bin directory and build from scratch. It is even hard to understand how attribute based routing is not already a part of WebAPI 2.2, but an add-on. If we get it right, some packages are mandatory and some packages are not allowed to get this working. Is that true?</p>
  
  <p>This is what we have tried, in no special order:</p>
  
  <ul>
  <li>Install-Package AttributeRouting</li>
  <li>Install-Package AttributeRouting.WebApi</li>
  <li>Install-Package Microsoft.AspNet.WebApi.WebHost</li>
  <li>Update-Package -reinstall Microsoft.AspNet.WebApi.WebHost</li>
  <li>Update-Package -reinstall</li>
  <li>Uninstall-Package AttributeRouting</li>
  </ul>
  
  <p>I had all this working once, then a colleague could not find the RouteAttribute class when checking out the code from our repository, not ignoring a single file. Then I removed the bin directory and rebuilt my version and I regressed to not being able to find the RouteAttribute class.</p>
  
  <p>We ensured that we had the same version of visual studio by updating, but the problems remains.</p>
  
  <p>I am aware of MVC having route attributes as well and that they are not the same thing as webapi route attributes. I am also aware of webapi route attributes are split up in web hosted and self hosted kinds. I am trying to have a reference to Ssytem.Web.Http.WebHost in my reference list, because we are hosting this on an IIS.</p>
  
  <p>Unfortunately, they made that decision to keep the name of the classes the same for all those applications. If they were different, misunderstandings would not occur.</p>
  
  <p>Here is the list of references in the project, from the csproj file.</p>
  
  <pre><code>&lt;Reference Include="AttributeRouting, Version=3.5.6.0, Culture=neutral, PublicKeyToken=c10f85d521a011a9, processorArchitecture=MSIL"&gt;
      &lt;HintPath&gt;..\..\packages\AttributeRouting.Core.3.5.6\lib\net40\AttributeRouting.dll&lt;/HintPath&gt;
      &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  &lt;Reference Include="AttributeRouting.Web, Version=3.5.6.0, Culture=neutral, PublicKeyToken=c10f85d521a011a9, processorArchitecture=MSIL"&gt;
      &lt;HintPath&gt;..\..\packages\AttributeRouting.Core.Web.3.5.6\lib\net40\AttributeRouting.Web.dll&lt;/HintPath&gt;
      &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  &lt;Reference Include="AttributeRouting.Web.Http, Version=3.5.6.0, Culture=neutral, PublicKeyToken=c10f85d521a011a9, processorArchitecture=MSIL"&gt;
      &lt;HintPath&gt;..\..\packages\AttributeRouting.Core.Http.3.5.6\lib\net40\AttributeRouting.Web.Http.dll&lt;/HintPath&gt;
      &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  &lt;Reference Include="Microsoft.CSharp" /&gt;
  &lt;Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"&gt;
      &lt;HintPath&gt;..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll&lt;/HintPath&gt;
      &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  &lt;Reference Include="System.Net.Http" /&gt;
  &lt;Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"&gt;
      &lt;HintPath&gt;..\..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll&lt;/HintPath&gt;
      &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  &lt;Reference Include="System.Net.Http.WebRequest" /&gt;
  &lt;Reference Include="System.Web.DynamicData" /&gt;
  &lt;Reference Include="System.Web.Entity" /&gt;
  &lt;Reference Include="System.Web.ApplicationServices" /&gt;
  &lt;Reference Include="System.ComponentModel.DataAnnotations" /&gt;
  &lt;Reference Include="System" /&gt;
  &lt;Reference Include="System.Data" /&gt;
  &lt;Reference Include="System.Core" /&gt;
  &lt;Reference Include="System.Data.DataSetExtensions" /&gt;
  &lt;Reference Include="System.Web.Extensions" /&gt;
  &lt;Reference Include="System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"&gt;
      &lt;HintPath&gt;..\..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll&lt;/HintPath&gt;
      &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  &lt;Reference Include="System.Web.Http.WebHost, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"&gt;
      &lt;HintPath&gt;..\..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.3\lib\net45\System.Web.Http.WebHost.dll&lt;/HintPath&gt;
      &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  &lt;Reference Include="System.Xml.Linq" /&gt;
  &lt;Reference Include="System.Drawing" /&gt;
  &lt;Reference Include="System.Web" /&gt;
  &lt;Reference Include="System.Xml" /&gt;
  &lt;Reference Include="System.Configuration" /&gt;
  &lt;Reference Include="System.Web.Services" /&gt;
  &lt;Reference Include="System.EnterpriseServices" /&gt;
  &lt;Reference Include="WebActivator, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"&gt;
      &lt;HintPath&gt;..\..\packages\WebActivator.1.0.0.0\lib\WebActivator.dll&lt;/HintPath&gt;
      &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  </code></pre>