Namespace not defined in fsx file

Namespace not defined in fsx file

Using this code in an fsx file (VS2012 update2) I get an namespace not defined, but I can run the code without problems in the interactive:

#I @"C:\Users\hal\Dropbox\Development\GenPres\packages\RavenDB.Client.2.0.2375\lib\net40"
#r "Raven.Client.Lightweight.dll"
#r "Raven.Abstractions.dll"
#r "System.Data.Linq.dll"

open Raven.Client

The Raven.Client should be able to open, what's more, first it worked and then suddenly it stops working.

If you put the full path into the #r directive, you'll get full IntelliSense. The #I directive, while convenient, prevents IntelliSense from working properly though the code will run just fine. This is true for both loose scripts and those found in projects.

Copyright © 2007-2012 www.chuibin.com Chuibin Copyright