"The project code model is not fully loaded. Please try again."

Aug 12, 2009 at 1:30 PM
Edited Aug 13, 2009 at 2:16 PM

Hello.

This message appear every time when I try to create a test project from the source project without "stdafx.h" (not obligatory as precompiled header).

How can I create test project in such case?

Coordinator
Aug 12, 2009 at 4:36 PM
Edited Aug 12, 2009 at 7:21 PM

Hello Anton, thank you for point out this problem.

 You see the problem occurs when the framework tries to modify the main (wmain) function for console project. I’ve investigated it earlier but still not able to find good explanation why the function body could not be retrieved by EnvDTE or EnvDTE80 methods. It happens in UtGenerator.cpp line 137

SUCCEEDED(spMainFunction->get_StartPoint(&spStartTextPoint)) &&

 My test case is:

  1. creating a console project and a new test project for it
  2. removing the test project and removing all insertion items from the main function cpp-file
  3. attempt to create a test project

 


 

TO SOLVE:

The simplest way is: close and reload the solution (In my case it usually helps)


Actually, yes, the message itself is quite unsuitable.