Linker error with conan/visual studio on Gitlab CI/CD

Hello everyone,

I am trying to create a CI on a windows shell (“pwsh”) runner.
I use conan for package-management and visual studio as a generator.

When trying to compile, I get the following error (see image).

  • spdlog.lib looks to be linked correctly. If I go in the conan folder on my remote machine, the spdlog.lib is present.

  • when I work around, I can see that the same problem appears for gtest or any other lib that is installed by conan

  • My CI is quite simple for now:

    • conan install the dep
    • launch msbuild
  • If I reproduce the exact same steps manually on the machine where the CI fails, it will work

Thank you for your help.