title: Calculate code metrics for VS2015 C++ project
body: <p>I'm using Visual Studio 2015 Update 2 and I'm trying to make use of its integrated "calculate code metrics" functionality on a simple C++ project. It fails with this error</p>
  
  <blockquote>
    <p>Message: The project target file 'C:\Users\Me\Documents\Visual Studio 2015\Projects\GuessTheNumber\Debug\GuessTheNumber.exe' contains no managed code.</p>
  </blockquote>
  
  <p>Here are the steps I took. I created a Visual C++ "Win32 Console Application", ticked "Empty project" and "Security Development Lifecycle (SDL) checks".</p>
  
  <p>Then, through the IDE, I added a new "main.cpp" file in the Sources folder.
  I wrote a simple program with just a main method, that compiles runs fine.</p>
  
  <p>If I try to calculate metrics on the solution or on the file, I get the error pasted above.</p>
  
  <p>What did I do wrong and how can I fix it? Thanks.</p>