title: How to get rid of msbuild warning MSB3644
body: <p>When building a web project on a machine that doesn't have the SDK installed, you get this warning:</p>
  
  <blockquote>
    <p>warning MSB3644: The reference assemblies for framework
    ".NETFramework,Version=v4.0" were not found. To resolve this, install
    the SDK or Targeting Pack for this framework version or retarget your
    application to a version of the framework for which you have the SDK
    or Targeting Pack installed. Note that assemblies will be resolved
    from the Global Assembly Cache (GAC) and will be used in place of
    reference assemblies. Therefore your assembly may not be correctly
    targeted for the framework you intend.</p>
  </blockquote>
  
  <p>Obviously, one way to get rid of the warning is to install the SDK. However, in this case, I'm simply looking to suppress this warning (which is mostly harmless) from the build output without changing the state of the machine in any other way.</p>
  
  <p>I tried passing /p:NoWarn=3644 to msbuild (based on other posts like <a href="https://stackoverflow.com/questions/4318790/how-can-i-suppress-all-compiler-and-code-analysis-warnings-from-msbuild-at-the-c">how can i suppress all compiler and code analysis warnings from msbuild at the command line?</a>), but that had no effects.</p>