title: error CS0234: The type or namespace name 'OAuth' does not exist in the namespace 'Microsoft.Owin.Security' (are you missing an assembly reference?)
body: <p>I am trying to build a project with cli:</p>
  
  <pre><code>msbuild.exe project.sln
  </code></pre>
  
  <p>I get errors of this type:</p>
  
  <pre><code>App_Start\NinjectConfig.cs(3,31): error CS0234: The type or namespace name 'OAuth' does not exist in the namespace 'Microsoft.Owin.Security' (are you missing an assembly reference?) [path_to_file\file.csproj]
  </code></pre>
  
  <p>I tried <code>nuget restor</code>
  Also I have in root directory of my project folder for packges in which you have <code>packages\Microsoft.Owin.Security.OAuth.3.0.1\lib\net45</code> with <code>Microsoft.Owin.Security.OAuth.dll</code> file.</p>
  
  <p>In <code>file.csproj</code> I have a reference:</p>
  
  <pre><code>&lt;Reference Include="Microsoft.Owin.Security.OAuth"&gt;
  &lt;HintPath&gt;..\..\packages\Microsoft.Owin.Security.OAuth.2.1.0\lib\net45\Microsoft.Owin.Security.OAuth.dll&lt;/HintPath&gt;
  </code></pre>
  
  <p></p>
  
  <p>I can see the differences in versions, but there are 2 questions:
  1) why visual studio is building this with no errors? How come it works with vs but not with cli? 
  2) Why is nuget installing wrong version? 
  3) How can I export from vs a config for nuget to install all packages?</p>
  
  <p>I am a newbie - so be gentle please.</p>