[Mono-bugs] [Bug 434931] New: XSP always compiles App_Code files with langversion of " ISO-2"
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Oct 13 16:38:49 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=434931
User hansen.mike at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434931#c59
Summary: XSP always compiles App_Code files with langversion of
"ISO-2"
Product: Mono: Class Libraries
Version: 2.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: hansen.mike at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Community User
Description of Problem:
XSP will add the /langversion:ISO-2 switch to gmcs when compiling code files in
the App_Code folder even if the project is set to use the "Default" (C# 3.0)
langversion.
Steps to reproduce the problem:
1. Create a simple ASP.NET web site with Mono 2.0
2. Add an App_Code folder and a file in it that uses C# 3.0 keywords or syntax
3. Server the application with XSP and visit the site
Actual Results:
Compilation error with the gmcs command showing a "/langversion:ISO-2" as a
switch.
Expected Results:
No errors
How often does this happen?
Always
Additional Information:
This occurs because of line #59 in
System/System.CodeDom.Compiler/CompilerCollection.cs (compiler.ProviderOptions
["CompilerVersion"] = "2.0";). The System.Web.Compilation.AppCodeCompiler uses
the CodeDom without passing any language version information to the provider.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list