title: Visual Studio 2010 C++/CLI in Static Library Mode: could not find assembly 'mscorlib.dll'
body: <p>I am working on a C++/CLI project with VS 2012 in Dynamic Library (.dll) and x64 mode. </p>
  
  <p>If I switch the mode to Static Library, I get the error below.</p>
  
  <p><strong>Error 1   error C1107: could not find assembly 'mscorlib.dll': please specify the assembly search path using /AI or by setting the LIBPATH environment variable   C:\Depot\Main\Current\Sln\ALibraryProject\Stdafx.cpp    1   1   ALibraryProject</strong></p>
  
  <p>I tried removing the reference to the mscorlib.dll then adding it again from:</p>
  
  <p>Project > Properties > General > Common Properties</p>
  
  <p>But that didn't help. As I know that VS handles the reference to the .NET assemblies, I don't want to add a disk file reference to it as it seems illogical! Did anybody face this before?</p>