Select the product you need help with
Lines of code may be missing if you compile a solution that has a complex project structure in Visual Studio 2008Article ID: 945425 - View products that this article applies to. SYMPTOMSLines of code may be missing if you compile a solution that has a complex project structure in Microsoft Visual Studio 2008. The solution may incorrectly compile to Microsoft intermediate language (MSIL) code that omits certain method calls in the compiled .dll file. This problem occurs when there are method calls to classes, and these classes participate in an inheritance hierarchy that uses generic constraints. Notes
CAUSEThis problem occurs when the Visual Studio 2008 solution has the following structure:
Note To view a diagram of this structure, see the "More Information" section. Additionally, the Visual Studio 2008 solution must use generic constraints as follows:
RESOLUTIONTo resolve this problem, modify the reference to Project A that is in Project 2. To do this, make the reference a project reference instead of a file reference. Note Because this bug applies only to a very specific scenario, it is unlikely that you will experience this problem. MORE INFORMATIONThis issue occurs when the Visual Studio 2008 solution has the structure that is mentioned in the "Cause" section and that is illustrated in the following diagram: Collapse this image ![]() PropertiesArticle ID: 945425 - Last Review: December 7, 2007 - Revision: 1.1 APPLIES TO
|



Back to the top








