In my experience this sometimes happen when the templates does not compile
Does it work if you compile just-in-time?
@Matthieu
Don’t…git-bisect is the way to do it
@Don
Apparently not.
First I will try locate the problem. Right now I have no clue where to look, but when I have found the commit, I will get back to you
/Morten
BTW…a failing test off course would be super nice, but right now my main goal is just to locate the commit (as a first step)
/Morten
From: spar...@googlegroups.com [mailto:spar...@googlegroups.com] On Behalf Of Donn Felker
Sent: Thursday, November 05, 2009
6:56 PM
To: spar...@googlegroups.com
If anybody would like to investigate, this is the guilty commit:
commit a62a6aacde3c9238deebaabeb5730d3ce0af89d2
Author: Louis DeJardin <louis.d...@gmail.com>
Date: Fri Jun 26 18:15:14 2009 -0500
Early stages of Visual Basic compilation target
Literal, expression, and local variable implemented.
Now using system.codedom configuration for compiler options. Needed
to coerce Option Infer On in code, as the setting in the config
does not appear to have automatic effect.
I haven’t looked into the commit yet, but off course I will
/Morten
From: spar...@googlegroups.com [mailto:spar...@googlegroups.com] On Behalf Of Donn Felker
Sent: Thursday, November 05, 2009
6:56 PM
To: spar...@googlegroups.com
Hi,
Okay I have found the problem….a short term solution is to remove precompilation in your build script until the PrecompileInstaller is fixed, or another fix is published.
The behaviour can be replicated by removing the system.codedom config section from Spark.Web.Mvc.Tests
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
Background:
=========
The BatchCompiler now uses CodeDomProvider configured provider options (see config section above). Before the ‘guilty’ commit the providerOptions were defined inline in a dictionary.
Because the install util (from System.Configuration.dll) runs in a separate process/appdomain it does pick up a ‘v2.0’ CompilerVersion, and bang….
Need to look into the install utility tomorrow, and its config, because it is getting late.
Regards
Morten
From: spar...@googlegroups.com [mailto:spar...@googlegroups.com] On Behalf Of Donn Felker
Sent: Thursday, November 05, 2009
6:56 PM
To: spar...@googlegroups.com
Yes, inline in the BatchCompiler to restore the old behaviour, because always using system.codedom (when its not configured) is a breaking change.