You need to give the location too. You can do this using -I "c:\entlibdir" (the -I switch means include directory), or -r "c:\entlibdir\Microsoft.Practices.EnterpriseLibrary.Common.dll". You can use a relative path too, this should be from the directory of the project.

You can also write "#r "c:\entlibdir\Microsoft.Practices.EnterpriseLibrary.Common.dll"" directly in your code.

There can be a problem that intelisense doesn't pick up the reference so VS.NET can give intelisense errors, even when it will compile. I think the later method is most reliable for ensuring this doesn't happen.

By on 5/29/2006 10:55 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper