Bug 311006 (MONO22674) - trying to build nant with mcs gives syntax error & unhandled exception
Summary: trying to build nant with mcs gives syntax error & unhandled exception
Status: RESOLVED MOVED
Alias: MONO22674
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-28 11:11 UTC by Jeroen Janssen
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 17:55:51 UTC


---- Reported by japj-bugzilla-ximian@darius.demon.nl 2002-03-28 04:11:12 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
Trying to build nant with mcs I get a syntax error & an unhandled exception

Steps to reproduce the problem:
1. try to build nant with mcs (under cygwin)
2. 
3. 

Actual Results:
bash-2.05a$ mcs ./src/*.cs
syntax error, expecting ABSTRACT CLASS DELEGATE ENUM EXTERN INTERFACE
INTERNAL NEW OVERRIDE PRIVATE PROTECTED PUBLIC READONLY SEALED STATIC
STRUCT UNSAFE VIRTUAL VOLATILE
./src\AssemblyInfo.cs (38,1), Token:257   : Parsing error
Mono.CSharp.yyParser.yyException: irrecoverable syntax error
   at Mono.CSharp.CSharpParser.yyparse(yyInput yyLex)
   at Mono.CSharp.CSharpParser.parse()

Unhandled Exception: System.ArgumentException: Assembly names may not begin
with whitespace, or contain the characters '/' or '\'.
   at System.AppDomain.nCreateDynamicAssembly(AssemblyName name, Evidence
identity, StackCrawlMark& stackMark, PermissionSet requiredPermissions,
PermissionSet optionalPermissions, PermissionSet refusedPermissions,
AssemblyBuilderAccess access)
   at System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name,
AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet
requiredPermissions, PermissionSet optionalPermissions, PermissionSet
refusedPermissions, StackCrawlMark& stackMark)
   at System.AppDomain.DefineDynamicAssembly(AssemblyName name,
AssemblyBuilderAccess access)
   at Mono.CSharp.CodeGen..ctor(String name, String output, Boolean
want_debugging_support)
   at Mono.CSharp.Driver.MainDriver(String[] args)
   at Mono.CSharp.Driver.Main(String[] args)
(null)
bash-2.05a$

Expected Results:
bash-2.05a$ csc /recurse:*.cs
Microsoft (R) Visual C# .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.0.3705
Copyright (C) Microsoft Corporation 2001. All rights reserved.

How often does this happen? 
Always

Additional Information:



---- Additional Comments From bryan@alphora.com 2002-03-28 12:45:37 MST ----

mcs has trouble with files that only have assembly level attributes.

*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO21018 ***


Unknown bug field "cf_version_details" encountered while moving bug
   <cf_version_details>mono/mcs 0.10</cf_version_details>
Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"