So I’m working in a solution with a library domain that is shared among all of the projects in the solution. I decided to create a test windows form app to experiment with using WCF MSMQ a little more than the few times I’ve used it in the past.
Created the windows form project the old fashioned way using Create New Project, Windows Forms. For some reason the .NET version chosen by VS was .NET 4 Client Profile…? Huh? Not sure what that represents, but I didn’t notice it until I tried using the mentioned library above. No matter what I tried, I was getting this error in the build:
The type or namespace name ‘***********’ could not be found (are you missing a using directive or an assembly reference?)
Even though the library was clearly in the same solution and that library was compiling successfully. Not to mention other projects in the solution had no trouble compiling using this library.
Here was the issue:
Again, I’ll have to read up on what the Client Profile framework is, but changing this to .NET Framework 4 fixed the problem.
