Search code examples
c++-clivisual-c++-2008-express

Can I program C++/CLI using Visual Studio Express 2008?


Are any of the Visual Studio Express editions able to work with C++/CLI code? Currently when I go to "Add File" in either the C# 2008 or C++ 2008 versions I do not see the option for creating C++/CLI.


Solution

  • When you create a new project in Visual C++ Express, any of the "CLR" project types is a C++/CLI application (e.g. uses the /clr compilation switch to include the .NET runtime). Pick either a Console or Windows Forms project type to get up and running quickly.

    You can also enable CLR support for an existing C++ project by flipping the option under Project Properties > Configuration Properties > General > Common Language Runtime support.