all groups > visual studio .net setup > september 2004 >
You're in the

visual studio .net setup

group:

How can I add a cpp file to Visual Studio .Net that I do not want compiled in a build?


How can I add a cpp file to Visual Studio .Net that I do not want compiled in a build? edwardotis NO[at]SPAM gmail.com
9/25/2004 1:25:55 PM
visual studio .net setup: How can I add a .cpp to Visual Studio .Net that I do not want compiled
in a build?

I have a C++ project, and I want to have some unit test classes in the
project. However, I do not want them compiled in VS because I haven't
gotten cppunit configured for VS. Hence, I would only get errors when
I compile.I am using a makefile to compile the unit tests separately.

However, I would still like to use Intellisense in VS for editing the
unit test classes.

Is this even possible?

RE: How can I add a cpp file to Visual Studio .Net that I do not want Chua Wen Ching
9/26/2004 6:19:02 AM
Hi Ed,

In VS.NET 2003, click on the cpp file you want to disable from being built,
then inside the property window, you can see

Excluded from Build: change no to yes

Then you are done :)

Hope i solve your problems.

Regards,
Chua Wen Ching

[quoted text, click to view]
AddThis Social Bookmark Button