You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add assemblyReferences optional parameter to specify the references for the templates (while compiling):
For RazorEngine I used the following code to make it work cross platform:
let references =
if isMono then
// Workaround compiler errors in Razor-ViewEngine
let d = RazorEngine.Compilation.Resolver.UseCurrentAssembliesReferenceResolver()
let loadedList = d.GetReferences () |> Seq.cache
//// We replace the list and add required items manually as mcs doesn't like duplicates...
let getItem name =
loadedList |> Seq.find (fun l -> l.Contains name)
[ (getItem "FSharp.Core").Replace("4.3.0.0", "4.3.1.0") // (if isMono then "/usr/lib64/mono/gac/FSharp.Core/4.3.1.0__b03f5f7f11d50a3a/FSharp.Core.dll" else "FSharp.Core")
Path.GetFullPath "./lib/FSharp.Compiler.Service/FSharp.Compiler.Service.dll"
Path.GetFullPath "./build/net40/System.Web.Razor.dll"
Path.GetFullPath "./build/net40/RazorEngine.dll"
Path.GetFullPath "./lib/FSharp.Formatting/FSharp.Literate.dll"
Path.GetFullPath "./lib/FSharp.Formatting/FSharp.CodeFormat.dll"
Path.GetFullPath "./lib/FSharp.Formatting/FSharp.MetadataFormat.dll" ]
|> Some
else None
Currently I see no other good solution for making it work cross platform without delegating the problem to the user, if somebody can see another solution please open an issue on RazorEngine fork...
Besides that it has the additional advantage that now users can use their own types/code in custom templates by just adding a reference to their custom assembly.
Note this also fixes the problem mentioned at the end of #202.
The last commit fixes that ProcessDirectory doesn't process the directory recursively as indicated by the recursive inner function definition.
No I don't get the other one.
Weird. Please raise issue so that we don't forget. Maybe Tomas knows
something about that.
On Oct 7, 2014 1:05 PM, "matthid" [email protected] wrote:
I can actually, what is with this (and why do you not get this?):
Errors and Failures:
Test Failure : FSharp.Literate.Tests.Simple.Can split formatted document and formatted tool tips
Expected: String containing "test : int"
But was: <string.Empty>
at FSharp.Literate.Tests.Simple.Can split formatted document and formatted tool tips() in C:\Projects\FSharp.Formatting\tests\FSharp.Literate.Tests\Tests.fs:line 262
I have this since I worked on this project... That's why this slipped
through :(. Thanks for the screen! Will push a fixed version soon.
—
Reply to this email directly or view it on GitHub #207 (comment)
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See https://github.com/antaris/RazorEngine/blob/develop/generateDocs.fsx#L48-64 and https://github.com/antaris/RazorEngine/blob/develop/generateDocs.fsx#L98.
Currently I see no other good solution for making it work cross platform without delegating the problem to the user, if somebody can see another solution please open an issue on RazorEngine fork...
Besides that it has the additional advantage that now users can use their own types/code in custom templates by just adding a reference to their custom assembly.
Note this also fixes the problem mentioned at the end of #202.
The last commit fixes that ProcessDirectory doesn't process the directory recursively as indicated by the recursive inner function definition.