Comments (4)
Yeah, I have the same error
from fsblog.
#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.
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 :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[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 :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.
maybe this will help : http://stackoverflow.com/questions/4239645/does-the-razor-view-engine-work-for-mono
from fsblog.
Related Issues (20)
- (Error): Unexpected symbol ':' in definition HOT 5
- Add better documentation for code samples
- Add 'clean' command
- Running build.fsx on a fresh clone results in an error HOT 1
- Please add support for non-F# code snippet HOT 8
- http://fsprojects.github.io/FsBlog design is broken HOT 5
- TypeLoadException when generating from NuGet package HOT 7
- What's the process for sponsoring the development for FsBlog?
- Clone + fake build fails: Assembly reference 'bin/FsBlogLib/RazorEngine.dll' was not found HOT 1
- Build fails because of missing target
- Documentation says it's Windows only, but it works fine on Mono HOT 2
- Generated links for "preview" should be relative HOT 1
- Advertise RSS feed in <link rel="alternate"> HOT 1
- Wrong argument order for mono FAKE exe? HOT 3
- Raw clone then build doesn't work HOT 3
- Support globalization of pages/posts HOT 3
- Archive/tag pages to be reworked on http://fsprojects.github.io/FsBlog/
- Is this still supported? HOT 4
- Running "fake new fsx="post title" followed by "fake generate" fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsblog.