Error: "Can't find the type or name space name"
This problem occurs in a Visual Studio 2010 solution containing three projects: PRJTEST (test item), PRJFORM (Windows window application project), and another item referenced by PRJFORM. Although the USING statement has been properly referenced and used, PRJFORM still appears "no type or named space name 'prjtest'" error in referenced PRJTEST.
The solution is as follows:
Solution:
Just as found in a related issue, this error comes from the client configuration file that does not match. By default, the PRJFORM configuration is ".NET Framework 4 client configuration file". Change this settings to ".NET Framework 4" to successfully build the project.
The above is the detailed content of Why Does My Visual Studio 2010 Project Show 'The Type or Namespace Name Could Not Be Found' Error Despite Correct Referencing?. For more information, please follow other related articles on the PHP Chinese website!