Note that there are some explanatory texts on larger screens.

plurals
  1. POThe type or namespace name could not be found
    text
    copied!<p>I have a <code>C#</code> solution with several projects in <code>Visual Studio 2010</code>. One is a test project (I'll call it "<em>PrjTest</em>"), the other is a <code>Windows Forms Application</code> project (I'll call it "<em>PrjForm</em>"). There is also a third project referenced by PrjForm, which it is able to reference and use successfully.</p> <p><em>PrjForm</em> references <em>PrjTest</em>, and <em>PrjForm</em> has a class with a <code>using</code> statement:</p> <pre><code>using PrjTest; </code></pre> <ol> <li>Reference has been correctly added</li> <li><code>using</code> statement is correctly in place</li> <li>Spelling is correct</li> <li>PrjTest builds successfully</li> <li>PrjForm almost builds, but breaks on the <code>using PrjTest;</code> line with the error:</li> </ol> <p><strong><em>The type or namespace name 'PrjTest' could not be found (are you missing a using directive or an assembly reference?)</em></strong></p> <p>I've tried the following to resolve this:</p> <ol> <li>Removed Resharper (since Resharper had no trouble recognizing the referenced project, I thought it might be worth a shot) </li> <li>Removed and re-added the reference and using statement</li> <li>Recreated PrjForm from scratch</li> <li>PrjForm currently resides inside the PrjTest folder, I tried moving it to an outside folder</li> <li>Loaded the solution on a different computer with a fresh copy of <code>VS 2010</code></li> </ol> <p>I have done my homework and spent far too long looking for an answer online, none of the solutions has helped yet.</p> <p>What else could I try?</p>
 

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