Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Generated cpp file is not included in project
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ahkow
Senior Member

33 Posts

Posted - Feb 14 2014 :  10:31:30 PM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
15984 Posts

Posted - Feb 18 2014 :  3:57:01 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2641 Posts

Posted - Apr 07 2014 :  3:30:30 PM  Show Profile  Reply with Quote
case=80291 is fixed in build 2031
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000