Code Monkey home page Code Monkey logo

Comments (4)

tjaskula avatar tjaskula commented on August 17, 2024

Yeah, I have the same error

from fsblog.

forki avatar forki commented on August 17, 2024
#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.

from fsblog.

tjaskula avatar tjaskula commented on August 17, 2024

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 assemblyFSharp.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 :0
at RazorEngine.Templating.TemplateService.CreateTemplateType (System.String razorTemplate, System.Type modelType) [0x00000] in :0
at RazorEngine.Templating.TemplateService.CreateTemplate (System.String razorTemplate, System.Type templateType, System.Object model) [0x00000] in :0
at RazorEngine.Templating.TemplateService.Parse (System.String razorTemplate, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag, System.String cacheName) [0x00000] in :0
at RazorEngine.Razor.Parse (System.String razorTemplate, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag, System.String cacheName) [0x00000] in :0
at FsBlogLib.Razor.ProcessFile (System.String source) [0x00000] in :0
Source written to: '/var/folders/8w/jh0v99196bs37zl_b_9s0kq40000gn/T/tmpe6fcb64.tmp.cs'.
at FsBlogLib.Razor.ProcessFile (System.String source) [0x00000] in :0
at FsBlogLib.Blog.TransformFile (System.String template, Boolean hasHeader, FsBlogLib.Razor razor, Microsoft.FSharp.Core.FSharpOption1 prefix, System.String current, System.String target) [0x00000] in <filename unknown>:0 at FsBlogLib.Blog.GeneratePostListing[Tuple3,IEnumerable1] (System.String layouts, System.String template, System.String blogIndex, FsBlogLib.Model model, IEnumerable1 posts, Microsoft.FSharp.Core.FSharpFunc2 urlFunc, Microsoft.FSharp.Core.FSharpFunc2 needsUpdate, Microsoft.FSharp.Core.FSharpFunc2 infoFunc, Microsoft.FSharp.Core.FSharpFunc2 getPosts) [0x00000] in :0
at [email protected] (Microsoft.FSharp.Core.Unit _arg15) [0x00000] in :0
at Fake.TargetHelper+targetFromTemplate@145[Microsoft.FSharp.Core.Unit].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00000] in :0
at Fake.TargetHelper.runTarget@317 (System.String targetName) [0x00000] in :0 '

from fsblog.

tjaskula avatar tjaskula commented on August 17, 2024

maybe this will help : http://stackoverflow.com/questions/4239645/does-the-razor-view-engine-work-for-mono

from fsblog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.