# mscoree.lib not found when compiling C++/CLI project with CMake using Build Tools

**URL:** https://discourse.cmake.org/t/mscoree-lib-not-found-when-compiling-c-cli-project-with-cmake-using-build-tools/234
**Category:** Usage
**Created:** [November 19, 2019, 5:03pm UTC](https://discourse.cmake.org/t/mscoree-lib-not-found-when-compiling-c-cli-project-with-cmake-using-build-tools/234 "2019-11-19T17:03:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Kerstin\_Keller](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kerstin_keller/32/180_2.png) [@Kerstin\_Keller](https://discourse.cmake.org/u/Kerstin_Keller)
#### Post date: [November 19, 2019, 5:03pm UTC](https://discourse.cmake.org/t/mscoree-lib-not-found-when-compiling-c-cli-project-with-cmake-using-build-tools/234/1 "2019-11-19T17:03:32Z")

</div>

I am not quite sure if this issue is a CMake or a VS2019 Build Tools error:

I am trying to build a C++/CLI application using CMake and only the Visual Studio 2019 Build Tools installed.  
Pure C++ applications I can compiler just fine, but the build errors out on a C++/CLI project.  
I get the following linker error:

```auto
LINK : fatal error LNK1104: Datei "MSCOREE.lib" kann nicht ge▒ffnet werden.

```

The library is available on my computer, in “C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\Lib\um\x64”.  
I have installed all Build Tool componentss needed for C++/CLI builds.

This minimal example cmakes / compiles / links fine on a colleagues computer with Visual Studio installed, however on my System it does not link.  
[cpp\_cli.7z](https://discourse.cmake.org/uploads/bf37f7b873cda8d8d563382a6d812f4a/cpp_cli.7z)

Any hints on how I can debug this (what CMake variables regarding C++/CLI I might try out / control) would be highly appreciated.
