OK. I was going a little crazy today with a WPF project. I'm using VS2010 with .NET 4.0 and I added a simple reference to another project in my solution, added a member variable of one of the referenced types and tried to compile. Nothing. Well, something. It did not recognize the type at all.
I verified at the namespace using statement. Intellisense seemed to like it. In fact, Visual Studio is perfectly content to let me browse into the class via the Go To Definition function.
Some of you reading this already know what this is, but I thought I was going crazy.
The WPF project defaults to the Client Profile, while the other projects are targeting the full .NET 4.0. I had the warnings turned off (stupid), so I wasn't seeing the warning message about the client profile mismatch.
Does anyone else think it's stupid to have WPF projects default to Client Profile targeting, while the rest of the projects default to targeting the full .NET 4.0?
...Which leads me to my question. Is it possible to change this default, so this scenario doesn't happen again? I would like to always target one platform or the other.