tpetricek / Pollz

1 stars 3 forks source link

DotLiquid missing when building the project on a Mac #2

Open alfonsogarciacaro opened 8 years ago

alfonsogarciacaro commented 8 years ago

The project apparently builds, but the page is not shown in the browser and the following error can be seen in the terminal report:

Reloading app.fsx script failed.
Message: Evaluation failed
Error: /Users/alfonsogarciacaronunez/Documents/Github/Pollz/stdin(0,1): error FS0078: Unable to find the file 'DotLiquid.dll' in any of
 /Library/Frameworks/Mono.framework/Versions/4.2.1/lib/mono/4.5
 /Users/alfonsogarciacaronunez/Documents/Github/Pollz
 /Users/alfonsogarciacaronunez/Documents/Github/Pollz/packages/FAKE/tools/

The weird thing is PAKET is correctly downloading DotLiquid to the packages folder, but the script doesn't look for it there. If I manually copy DotLiquid.dll to packages/FAKE/tools/ everything works.

tpetricek commented 8 years ago

I was referencing the .NET 4.5 version of DotLiquid.dll so I tried referencing the .NET 4.0 version, but that does not seem to resolve the issue (I changed the reference to the following one):

#r "packages/DotLiquid/lib/NET40/DotLiquid.dll"

So, I'll need to do more figuring out. /cc @haf @adermar - Have you ever seen an error like this one?

haf commented 8 years ago

Yes, a few days ago...

Something transitively depends on that DLL before you reference it in the script. It can be anything, including static c'tors in modules which are run in no guaranteed order. Move the reference up a wee bit to solve, me thinks.