I’m trying to use http://yuicompressor.codeplex.com/ which gives 2 dlls which I ref in my proj, but when I try to use it by
using Yahoo.Yui.Compressor
It gave error “The type or namespace name ‘Yahoo’ could not be found (are you missing a using directive or an assembly reference?”
What is wrong? Thanks
A couple sanity check things first — I’m assuming you’ve added a reference to the correct assembly, right? (your project -> references -> Add Reference, then browse to the assembly). You didn’t say which assembly you are referencing. If that’s ok, I might use a tool like Reflector to verify the namespace that exists in the referenced assembly.
If you’re still running into problems, I had a similar issue where it turned out that I needed to change the “Target Framework” to be “.NET Framework 4” instead of “.NET Framework 4 Client Profile”. (project properties -> application -> target framework)