visual studio 2012 - The type or namespace could not be found -


i'm trying convert wix 3.5 custom actions project in visual studio 2008 wix 3.7 , visual studio 2012 , i'm getting following exception:

the type or namespace name 'mynamespace' not found (are missing using directive or assembly reference?)

the dll referenced , visual studio 2012 has no problem seeing namespace. under namespace pops in intellisense, when build i'm getting exception.

anyone have idea of what's going on here?

additional info:

the namespace i'm referencing .net 2.0 library , custom actions project .net 2.0 project.

edit:

after further investigation, i'm getting warning, i'm guessing root of problem:

the primary reference "mynamespace, version=8.5.1.20, culture=neutral, publickeytoken=f593502af6ee46ae, processorarchitecture=msil" not resolved because has indirect dependency on .net framework assembly "mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" has higher version "4.0.0.0" version "2.0.0.0" in current target framework.

why trying use mscorelib 4.0 when 2.0 project?

so turned out dll being reference, while compiled target .net 2.0 framework, being compiled 4.0 compiler. switching project compile 3.5 compiler solved problem.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -