Reputation: 230038
In debug, everything builds normally. When I try to compile in release mode, I get:
"The type or namespace name 'Castle' could not be found (are you missing a using directive or an assembly reference?)"
I obviously have the reference, or the project would not compile in debug either. So, what am I doing wrong?
Upvotes: 1
Views: 735
Reputation: 814
If you are using VS 2010 you have to change Target framework to .NET Framework 4, do not use .NET Framework 4 Client Profile
Upvotes: 0
Reputation: 233150
I had a similar problem recently (with some other assemblies). Restarting VS helped.
Upvotes: 2