The AspView compiler initiates a C# codedom compiler. The compiler version
(2.0, 3.5, 4.0) is based on app.settings.

e.g.:

<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="v4.0" />
<providerOption name="WarnAsError" value="false" />
</compiler>
</compilers>
</system.codedom>

should do the trick.

if you're using the autorecomile option - stick this in web.config.
if you also run VCompile to get precompiled views assembly, you'd need a
Vcompile.exe.config with that section to sit next to the vcompile program.



On Sat, Dec 4, 2010 at 5:50 PM, Eelco <[email protected]> wrote:

> How to go about upgrading a monorail .NET 3.5 application using
> AspView to 4.0? Just changing the target framework results in a slew
> of errors. AspView can't recompile the views. Results in errors like:
> "The type or namespace name 'Linq' does not exist in the namespace
> 'System' (are you missing an assembly reference?)"
>
> Any help would be greatly appreciated.
>
> Eelco
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To post to this group, send email to [email protected]
> .
> To unsubscribe from this group, send email to
> [email protected]<castle-project-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
>
>


-- 
Ken Egozi.
http://www.kenegozi.com/blog
http://www.delver.com
http://www.musicglue.com
http://www.castleproject.org
http://www.idcc.co.il - הכנס הקהילתי הראשון למפתחי דוטנט - בואו בהמוניכם

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to