[Mono-list] Re: Problem compiling simple app using Mono.
Partialdeclarations of `TestMono.Form1' have conflicting
accessibilitymodifiers
Stacey Levine
staceyl at MUSICFORASONG.COM
Fri Jun 16 10:23:18 EDT 2006
What version of Mono are you using? I get the same error when I use gmcs.
Thanks.
Stacey
-----Original Message-----
From: Jonathan S. Chambers [mailto:Jonathan.Chambers at ansys.com]
Sent: Friday, June 16, 2006 10:16 AM
To: Stacey Levine; "Andrés G. Aragoneses [ knocte ]"; Mono-list at lists.ximian.com
Subject: RE: [Mono-list] Re: Problem compiling simple app using Mono. Partialdeclarations of `TestMono.Form1' have conflicting accessibilitymodifiers
I believe you need to use gmcs, not mcs. Your sample compiles with gmcs for me.
gmcs -r:System.Windows.Forms -r:System.Data -r:System.Drawing /out:test.exe *.cs
- Jonathan
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of Stacey Levine
> Sent: Friday, June 16, 2006 9:56 AM
> To: "Andrés G. Aragoneses [ knocte ]"; Mono-list at lists.ximian.com
> Subject: RE: [Mono-list] Re: Problem compiling simple app using Mono.
> Partialdeclarations of `TestMono.Form1' have conflicting
> accessibilitymodifiers
>
> It does compile just fine in MS.
>
> Thanks.
>
> Stacey
>
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of "Andrés G. Aragoneses [ knocte ]"
> Sent: Friday, June 16, 2006 2:33 AM
> To: Mono-list at lists.ximian.com
> Subject: [Mono-list] Re: Problem compiling simple app using Mono. Partial
> declarations of `TestMono.Form1' have conflicting accessibility modifiers
>
> Stacey Levine escribió:
> > Hello everyone.
> >
> >
> >
> > I am testing out Mono for an application and am having problems with
> > compiling my application. I built a simple C# application that has one
> > form and I put the controls on the form that I am going to need. My
> > little test project is here : http://www.levineclan.net/testMono.zip
> >
> >
> >
> > I think I have the compile line figured out, and there is a batch file
> > in that directory structure which should do it, but when I try to
> > compile using mono - I get one error message that I have no idea how to
> > fix. The message is below. Anything you could do to help would be
> > greatly appreciated.
> >
> >
> >
> > "D:\Projects .NET\TestMono\TestMono>mcs /out:test.exe Program.cs
> > Form1.cs Form1.
> >
> > Designer.cs Form1.Designer.cs(3,19): error CS0262: Partial declarations
> > of `TestMono.Form1'
> >
> > have conflicting accessibility modifiers
> >
> > Compilation failed: 1 error(s), 0 warnings "
>
> Hello.
>
> Without seeing the code:
>
> - Partial classes must be declared with the same accessibility keyword
> (public, private, protected)...
> - Did you try to compile the program with the MS compiler?
>
> Regards,
>
> Andrés [ knocte ]
>
> --
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list