ripper234
ripper234

Reputation: 230038

Missing reference to Castle.ActiveRecord when compiling in Release

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

Answers (3)

emirkljucanin
emirkljucanin

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

Dwayne
Dwayne

Reputation: 11

I had to restart my computer in order to fix this.

Upvotes: 1

Mark Seemann
Mark Seemann

Reputation: 233150

I had a similar problem recently (with some other assemblies). Restarting VS helped.

Upvotes: 2

Related Questions