{"action":"created","issue":{"url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/357","labels_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/357/comments","events_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/357/events","html_url":"https://github.com/tpetricek/FSharp.Formatting/issues/357","id":117942999,"number":357,"title":"Unit tests fail on building","user":{"login":"7sharp9","id":588746,"avatar_url":"https://avatars.githubusercontent.com/u/588746?v=3","gravatar_id":"","url":"https://api.github.com/users/7sharp9","html_url":"https://github.com/7sharp9","followers_url":"https://api.github.com/users/7sharp9/followers","following_url":"https://api.github.com/users/7sharp9/following{/other_user}","gists_url":"https://api.github.com/users/7sharp9/gists{/gist_id}","starred_url":"https://api.github.com/users/7sharp9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7sharp9/subscriptions","organizations_url":"https://api.github.com/users/7sharp9/orgs","repos_url":"https://api.github.com/users/7sharp9/repos","events_url":"https://api.github.com/users/7sharp9/events{/privacy}","received_events_url":"https://api.github.com/users/7sharp9/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-20T00:56:53Z","updated_at":"2015-11-21T17:14:57Z","closed_at":"2015-11-21T17:14:57Z","body":"```\r\nErrors and Failures:\r\n1) Test Error : FSharp.Literate.Tests.Simple.Can process fsx file using the template included in NuGet package\r\n   System.Exception : Generating HTML failed.\r\n  at FSharp.Literate.RazorRender.handleCompile[a] (System.String source, Microsoft.FSharp.Core.FSharpFunc`2 f) <0x116b09e8 + 0x005d7> in <filename unknown>:0\r\n  at FSharp.Literate.RazorRender.ProcessFileModel[b] (System.Type modelType, System.Object model, Microsoft.FSharp.Core.FSharpOption`1 properties) <0x116b0880 + 0x00073> in <filename unknown>:0\r\n  at FSharp.Literate.Templating.generateFile (Microsoft.FSharp.Core.FSharpOption`1 references, System.String contentTag, IEnumerable`1 parameters, Microsoft.FSharp.Core.FSharpOption`1 templateOpt, System.String output, IEnumerable`1 layoutRoots) <0x116a1740 + 0x00187> in <filename unknown>:0\r\n  at FSharp.Literate.Templating.processFile (Microsoft.FSharp.Core.FSharpOption`1 references, FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) <0x116a0ef0 + 0x003ab> in <filename unknown>:0\r\n  at FSharp.Literate.Literate.ProcessScriptFile (System.String input, Microsoft.FSharp.Core.FSharpOption`1 templateFile, Microsoft.FSharp.Core.FSharpOption`1 output, Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpOption`1 formatAgent, Microsoft.FSharp.Core.FSharpOption`1 prefix, Microsoft.FSharp.Core.FSharpOption`1 compilerOptions, Microsoft.FSharp.Core.FSharpOption`1 lineNumbers, Microsoft.FSharp.Core.FSharpOption`1 references, Microsoft.FSharp.Core.FSharpOption`1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption`1 replacements, Microsoft.FSharp.Core.FSharpOption`1 includeSource, Microsoft.FSharp.Core.FSharpOption`1 layoutRoots, Microsoft.FSharp.Core.FSharpOption`1 generateAnchors, Microsoft.FSharp.Core.FSharpOption`1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption`1 customizeDocument) <0x116a09d8 + 0x000d7> in <filename unknown>:0\r\n  at FSharp.Literate.Tests.Simple.Can process fsx file using the template included in NuGet package () <0x116a03a0 + 0x0022b> in <filename unknown>:0\r\n  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)\r\n  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x2feb058 + 0x00093> in <filename unknown>:0\r\n\r\n2) Test Error : FSharp.Literate.Tests.Simple.Can process md file using the template included in NuGet package\r\n   System.Exception : Generating HTML failed.\r\n  at FSharp.Literate.RazorRender.handleCompile[a] (System.String source, Microsoft.FSharp.Core.FSharpFunc`2 f) <0x116b09e8 + 0x005d7> in <filename unknown>:0\r\n  at FSharp.Literate.RazorRender.ProcessFileModel[b] (System.Type modelType, System.Object model, Microsoft.FSharp.Core.FSharpOption`1 properties) <0x116b0880 + 0x00073> in <filename unknown>:0\r\n  at FSharp.Literate.Templating.generateFile (Microsoft.FSharp.Core.FSharpOption`1 references, System.String contentTag, IEnumerable`1 parameters, Microsoft.FSharp.Core.FSharpOption`1 templateOpt, System.String output, IEnumerable`1 layoutRoots) <0x116a1740 + 0x00187> in <filename unknown>:0\r\n  at FSharp.Literate.Templating.processFile (Microsoft.FSharp.Core.FSharpOption`1 references, FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) <0x116a0ef0 + 0x003ab> in <filename unknown>:0\r\n  at FSharp.Literate.Literate.ProcessMarkdown (System.String input, Microsoft.FSharp.Core.FSharpOption`1 templateFile, Microsoft.FSharp.Core.FSharpOption`1 output, Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpOption`1 formatAgent, Microsoft.FSharp.Core.FSharpOption`1 prefix, Microsoft.FSharp.Core.FSharpOption`1 compilerOptions, Microsoft.FSharp.Core.FSharpOption`1 lineNumbers, Microsoft.FSharp.Core.FSharpOption`1 references, Microsoft.FSharp.Core.FSharpOption`1 replacements, Microsoft.FSharp.Core.FSharpOption`1 includeSource, Microsoft.FSharp.Core.FSharpOption`1 layoutRoots, Microsoft.FSharp.Core.FSharpOption`1 generateAnchors, Microsoft.FSharp.Core.FSharpOption`1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption`1 customizeDocument) <0x116edee8 + 0x000d7> in <filename unknown>:0\r\n  at FSharp.Literate.Tests.Simple.Can process md file using the template included in NuGet package () <0x116edb50 + 0x00213> in <filename unknown>:0\r\n  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)\r\n  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x2feb058 + 0x00093> in <filename unknown>:0\r\n\r\n3) Test Error : FSharp.Literate.Tests.Simple.Code and HTML is formatted with a tooltip in F# Script file using Razor template\r\n   System.Exception : Generating HTML failed.\r\n  at FSharp.Literate.RazorRender.handleCompile[a] (System.String source, Microsoft.FSharp.Core.FSharpFunc`2 f) <0x116b09e8 + 0x005d7> in <filename unknown>:0\r\n  at FSharp.Literate.RazorRender.ProcessFileModel[b] (System.Type modelType, System.Object model, Microsoft.FSharp.Core.FSharpOption`1 properties) <0x116b0880 + 0x00073> in <filename unknown>:0\r\n  at FSharp.Literate.Templating.generateFile (Microsoft.FSharp.Core.FSharpOption`1 references, System.String contentTag, IEnumerable`1 parameters, Microsoft.FSharp.Core.FSharpOption`1 templateOpt, System.String output, IEnumerable`1 layoutRoots) <0x116a1740 + 0x00187> in <filename unknown>:0\r\n  at FSharp.Literate.Templating.processFile (Microsoft.FSharp.Core.FSharpOption`1 references, FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) <0x116a0ef0 + 0x003ab> in <filename unknown>:0\r\n  at FSharp.Literate.Literate.ProcessScriptFile (System.String input, Microsoft.FSharp.Core.FSharpOption`1 templateFile, Microsoft.FSharp.Core.FSharpOption`1 output, Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpOption`1 formatAgent, Microsoft.FSharp.Core.FSharpOption`1 prefix, Microsoft.FSharp.Core.FSharpOption`1 compilerOptions, Microsoft.FSharp.Core.FSharpOption`1 lineNumbers, Microsoft.FSharp.Core.FSharpOption`1 references, Microsoft.FSharp.Core.FSharpOption`1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption`1 replacements, Microsoft.FSharp.Core.FSharpOption`1 includeSource, Microsoft.FSharp.Core.FSharpOption`1 layoutRoots, Microsoft.FSharp.Core.FSharpOption`1 generateAnchors, Microsoft.FSharp.Core.FSharpOption`1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption`1 customizeDocument) <0x116a09d8 + 0x000d7> in <filename unknown>:0\r\n  at FSharp.Literate.Tests.Simple.Code and HTML is formatted with a tooltip in F# Script file using Razor template () <0x116f0fd8 + 0x001d3> in <filename unknown>:0\r\n  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)\r\n  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x2feb058 + 0x00093> in <filename unknown>:0\r\n\r\n\r\nRunning build failed.\r\nError:\r\nFake.UnitTestCommon+FailedTestsException: NUnit test failed (3).\r\n  at Fake.NUnitSequential.NUnit (Microsoft.FSharp.Core.FSharpFunc`2 setParams, IEnumerable`1 assemblies) <0x8562990 + 0x00337> in <filename unknown>:0\r\n  at FSI_0001.Build+clo@178-18.Invoke (Microsoft.FSharp.Core.Unit unitVar0) <0x8562898 + 0x000d3> in <filename unknown>:0\r\n  at Fake.TargetHelper+targetFromTemplate@195[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) <0x8556ee0 + 0x00020> in <filename unknown>:0\r\n  at Fake.TargetHelper.runSingleTarget (Fake.TargetTemplate`1 target) <0x84cd1a0 + 0x000bd> in <filename unknown>:0\r\n```"},"comment":{"url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/comments/158662874","html_url":"https://github.com/tpetricek/FSharp.Formatting/issues/357#issuecomment-158662874","issue_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/357","id":158662874,"user":{"login":"matthid","id":1866463,"avatar_url":"https://avatars.githubusercontent.com/u/1866463?v=3","gravatar_id":"","url":"https://api.github.com/users/matthid","html_url":"https://github.com/matthid","followers_url":"https://api.github.com/users/matthid/followers","following_url":"https://api.github.com/users/matthid/following{/other_user}","gists_url":"https://api.github.com/users/matthid/gists{/gist_id}","starred_url":"https://api.github.com/users/matthid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthid/subscriptions","organizations_url":"https://api.github.com/users/matthid/orgs","repos_url":"https://api.github.com/users/matthid/repos","events_url":"https://api.github.com/users/matthid/events{/privacy}","received_events_url":"https://api.github.com/users/matthid/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T17:14:57Z","updated_at":"2015-11-21T17:14:57Z","body":"@7sharp9 regarding https://github.com/tpetricek/FSharp.Formatting/issues/328#issuecomment-155397261 and https://github.com/tpetricek/FSharp.Formatting/issues/357\r\nIts really hard how this all sticks together, because we have multiple compilations going on. This is the explanation:\r\n\r\nRazorEngine will compile the templates to C# code and reference all currently loaded assemblies.\r\nFAKE switched to latest FCS. I'm not completely sure where the reference to 4.0 is coming from, this is the the version mono loads for some reason? This leads to problems as FCS is build against 12 and therefore the C# compiler is complaining...\r\nFor now I added assembly redirects but I would really like to know where the 4.0 reference comes from (I couldn't find it anywhere with dotpeek...). As far as I can see mono should actually load the 12.0.0.0 assembly.\r\n\r\nFixed with https://github.com/tpetricek/FSharp.Formatting/pull/358"}}