Cannot Open File ‘MSCOREE.lib’

When I’m trying to compile the C++/CLI project in Visual Studio 2013, I got an error saying

cannot open file ‘MSCOREE.lib’

This post said MSCOREE.lib is removed from Visual studio 2008, but I’m not sure it’s also working for Visual Studio 2013.

After searching a while, I found this file is located at C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib. Adding this path to Additional Library Directories property value will solve this problem.

Open Project Properties, Linker, General Page and select Additional Library Directories configuration property

Open Project Properties, Linker, General Page and select Additional Library Directories configuration property