I have a C++ assignment and it specifies that I may not use .NET technology in my project. What is .NET and how do I know if my Visual C++ project uses .NET or not?
I am using Visual Studio 2008.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
.NET is a Microsoft development framework. Its Common Language Runtime (CLR) is the basis for languages like C#, and it includes a lot of prewritten code libraries for simplifying common tasks.
Long story short, if you’re coding in C++, you aren’t going to be using any .NET functionality unless you accidentally set up a managed/CLR project, or you’re specifically trying to use it.
Therefore, as others said, make sure you create the right kind of project. For a school assignment, you will probably want to create something like a Win32 Console Application. Just make sure that you don’t create a CLR project (managed project).
To doublecheck, do this:
When your project is open, right click on your project name on the left (in Solution Explorer) and go to properties. Under Configuration Properties->General, you will see the “Common Language Runtime Support” feature at the bottom. Make sure it says “No Common Language Runtime Support,” which will ensure the /clr compiler flag is not set.
I just checked that in Visual Studio 2010, so it might be very slightly different in 2008 (they rearranged some of the project menus around a bit), but I’m sure you get the idea.