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

前端 未结 5 650
一向
一向 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条回答
  •  萌比男神i
    2021-02-05 14:54

    I have the same problem. Having a dll doesn't work, as I need to provide a native C++ wrapper for a .net object so it can fulfil a natice c++ interface - I can't use .net in a dll interface - this gives a compile error

    This worked as a static library in VS 2010 (with .net 4)

    Some of my executables and dlls which also have some code with /clr. They don't have an issue. I'm not trying to make a net Lbirary.

提交回复
热议问题