Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Studio build error: claims member of class in other assembly doesn't exist
    primarykey
    data
    text
    <p>I have a website solution which contains a project with domain classes.</p> <p>I have added a public auto property (get; set;) to one of the domain classes. A page on the website references this property - it was added to the page using IntelliSense.</p> <p>The website project builds okay. But when I build the solution, I get the old 'Class does not contain a definition for Property' error. However, if I right click on the property in the aspx.cs file, it takes me right to the declaration in the domain class.</p> <p>The other website project in the solution can call this property of the class without errors.</p> <p>Actually using the website fails with the same exception.</p> <p>Seems like Visual Studio is having some kind of weird episode here.</p> <p>Any suggestions what might be going wrong?</p> <p>Thanks</p> <p>David</p> <p>Edit: Here are some further observations in a series of steps.</p> <ol> <li>Clean Solution (says 14 succeeded; there are 16 projects in the solution)</li> <li>Build Solution (says 16 succeeded)</li> <li>Rebuild Solution (fails as described)</li> <li>Build Solution (fails as described)</li> </ol> <p>At no point does the website actually work - it always gives the error.</p> <p>It does appear to precompile successfully.</p> <p>Edit 2: I have removed the project reference and re-added it, but the problem remains.</p> <p>Edit 3: I have added a new webiste project to the solution and copied all the files across from the existing website to the new website. The problem exists in the new website as well as the existing one.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload