namespaces - C# project recognizes User Control from references project in designer, but not when compiled -


i know general question, but...

i have visual studio 2010 winforms c# project. added c# project external vendor same solution. referencing vendor's project in project.

this external project implements custom listview control want use.

i place control on main form, set properties - works fine: see listview on form..

but... when try build, tells me

error   37  type or namespace name 'customlistview' not exist in namespace 'customnamespace' (are missing assembly reference?) 

the customlistview class exist in namespace customnamespace in vendor's code. class public. can right click in initializecomponent, click "go implementation", , to

namespace customnamespace {     public partial class customlistview {         ....      } } 

has had happen them?

edit: found hint. have custom control in there, called splitbutton, inherits button. code control part of project , under main namespace. when add customlistview control, after reloading project, can't display form anymore: says can't find splitbutton class. when delete references customlistview, splitbutton works fine , form can displayed.

these controls have nothing in common whatsoever. possible external customlistview control somehow tampers namespace resolution?

as requested i'm posting comment answer:

try checking "target framework" under project properties->application tab. if it's set client profile try setting full framework (i.e .net framework 4)


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -