Visual Studio 2010 library referencing issue using Client Profile

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:

image

Again, I’ll have to read up on what the Client Profile framework is, but changing this to .NET Framework 4 fixed the problem.

Advertisement
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s