Closed 7sharp9 closed 4 years ago
Yeah, I have the same error
#I "packages/FAKE/tools/"
#r "packages/FAKE/tools/FakeLib.dll"
#r "bin/FsBlogLib/RazorEngine.dll"
#r "bin/FsBlogLib/FsBlogLib.dll"
#r "bin/FsBlogLib/FSharp.Configuration.dll"
I think you should try to #I "bin/FsBlogLib"
. Unfortunately there is a issue with this on mono.
Thanks, this fix this issue. However it brings me to another issue related to Razor. Maybe some issues running razor on Mono:
'1) System.Exception: Processing the file '/Users/tjaskula/Documents/GitHub/Blog/source/blog/index.cshtml' failed with exception:
RazorEngine.Templating.TemplateCompilationException: Unable to compile template. Assuming assembly reference FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' matches assembly
FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. You may need to supply runtime policy
Other compilation errors may have occurred. Check the Errors property for more information.
at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType (RazorEngine.Compilation.TypeContext context) [0x00000] in 1 prefix, System.String current, System.String target) [0x00000] in <filename unknown>:0 at FsBlogLib.Blog.GeneratePostListing[Tuple
3,IEnumerable1] (System.String layouts, System.String template, System.String blogIndex, FsBlogLib.Model model, IEnumerable
1 posts, Microsoft.FSharp.Core.FSharpFunc2 urlFunc, Microsoft.FSharp.Core.FSharpFunc
2 needsUpdate, Microsoft.FSharp.Core.FSharpFunc2 infoFunc, Microsoft.FSharp.Core.FSharpFunc
2 getPosts) [0x00000] in
maybe this will help : http://stackoverflow.com/questions/4239645/does-the-razor-view-engine-work-for-mono
Error message:
/Users/dave/code/FsBlog/fsblog.fsx(12,1): error FS0078: Unable to find the file 'SharpYaml.dll' in any of /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5 /Users/dave/code/FsBlog/packages/FAKE/tools/ /Users/dave/code/FsBlog /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.0/