c# - The type or namespace name 'ComponentModel' does not exist in the namespace after adding an assembly reference -


i have strange problem that's proving difficult diagnose. after adding assembly reference contains namespace matrix.system windows service project, i'm getting error when compiling service:

the type or namespace name 'componentmodel' not exist in namespace 'matrix.system' type or namespace name 'serviceprocess' not exist in namespace 'matrix.system'

the errors generated in service though:

private system.componentmodel.icontainer components = null; private system.serviceprocess.serviceinstaller serviceinstaller1; 

and in service setup project i'm getting this:

unable find dependency 'ionic.zlib' (signature='edbe51ad942a3f5c' version='1.9.1.5') of assembly 'apache.nms.activemq.dll'

the nms assembly in setup project , working fine until added matrix.system assembly

you can "root" namespace this:

using global::system.componentmodel; 

(then rid of fully-qualified references in code.)

or if really want use fully-qualified namespaces:

private global::system.componentmodel.icontainer components = null; private global::system.serviceprocess.serviceinstaller serviceinstaller; 

this looks unrelated other dependency issue though.

my guess in same class you've got:

using matrix; 

otherwise wouldn't expect problem in first place.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -