Visual Studio 2010 C++/CLI in Static Library Mode: could not find assembly 'mscorlib.dll'

前端 未结 5 584
一向
一向 2021-02-05 14:49

I am working on a C++/CLI project with VS 2012 in Dynamic Library (.dll) and x64 mode.

If I switch the mode to Static Library, I get the error below.

Er

5条回答
  •  既然无缘
    2021-02-05 14:57

    I solved it by removing dependency in old and not updated mixed lib, which was also configured only in Debug configuration, and as result, it started to get the same error as yours after I changed some code.

    It was not simple to find it, because error is not clear, and the dependency was set up via "Additional Dependencies" in project settings.

提交回复
热议问题