Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Generated cpp file is not included in project

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
ahkow Posted - Feb 14 2014 : 10:31:30 PM
Using VS2012 and VA 10.8.2023.0

When I do a "Create class Foo" refactoring, then let VA creates the .h file, then later do a "Move Implementation to Source File", VA creates the .cpp file but does not include it in the project.

To reproduce:
1. Declare an object with a new class:

Foo f;

2. Move cursor to Foo, open context menu and select "Create class Foo".
3. Let VA create the Foo.h file.
4. Say Foo.h is like this:

class Foo
{
public:
	Foo()
	{
	}
};

5. Move cursor to Foo(), open context menu and select "Move Implementation to Source File".
6. Let VA creates Foo.cpp.
7. Problem: Foo.cpp is not included in the project. I need to "Show All Files" in Solution Explorer and include it myself.

This doesn't happen if Foo.h is created by myself.
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Apr 07 2014 : 3:30:30 PM
case=80291 is fixed in build 2031
feline Posted - Feb 18 2014 : 3:57:01 PM
I am seeing the same effect here. Thank you for the clear description.

case=80291

If you close and reload the IDE after creating the header file, and before creating the cpp file then the cpp file is correctly added to the solution. Not a very good work around unfortunately, but worth mentioning on the off chance it helps.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000