Problem when using CLI in MFC Application

Hello, everyone.

this is the first time I came here. my problem is: I created a project with MFC Application project type. and now i want to add CLI support to this project. So I open the project properties dialog and select "Common Language Runtime support (/clr)" options, when compile, an error message appears like this: "Can't open file mscoree.lib". I use Microsoft Visual Studio 2005 Beta 2.

Why did it happen? how to deal with?

Best Regards,
Orochi

[468 byte] By [Orochi] at [2008-2-22]
# 1
What is the LIB path set to? Make sure it includes the 'lib' directory below the install point of the CLR SDK. I'm working from memory here but I believe that on a standard install it should be located at:

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib

JonathanCavesMSFT at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 2

The .NET Framework SDK is not installed with a custom setup.

anyhow, The pure CLR project can be created and compile correctly without .NET SDK. I've searched the installation path of .NET Framework, only found a file named "mscoree.tlb".

the SDK is required for extending CLR in MFC?

Orochi at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 3
Hi,

mscoree.dll is in the Windows\System32 directory. If it is not then nothing CLR related will work.

I think you have a setup that is otherwise corrupted. For that you can post a question here:
http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=26

Ronald Laeremans
Visual C++ team

RonaldLaeremans at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...