Rafael,

 

Paul is actually using an old version of NAnt. More recent versions support al2 
out of the box.

 

Gert

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Teixeira
Sent: donderdag 25 september 2008 19:02
To: mono-devel-list
Subject: [Mono-dev] Fwd: Not sure where the problem is here (building nclass 
1.09)

 

Forgot to copy the list. Sorry

---------- Forwarded message ----------
From: Rafael Teixeira <[EMAIL PROTECTED]>
Date: Thu, Sep 25, 2008 at 1:48 PM
Subject: Re: [Mono-dev] Not sure where the problem is here (building nclass 
1.09)
To: [EMAIL PROTECTED]

nant is calling /usr/lib/mono/1.0/al.exe it should be calling 
/usr/lib/mono/2.0/al.exe

to effect that please change the nant.exe.config

from

                       <task name="al">
                            <attribute name="exename">al</attribute>
                            <attribute name="useruntimeengine">true</attribute>
                        </task>

to 

                       <task name="al">
                            <attribute name="exename">al2</attribute>
                            <attribute name="useruntimeengine">true</attribute>
                        </task>

in both Mono-2.0 sections

:)

 

On Thu, Sep 25, 2008 at 1:39 PM, Rafael Teixeira <[EMAIL PROTECTED]> wrote:

Oops, you are telling nant to use 2.0, but it is still calling the compiler 
without telling to look into the 2.0 corlib. Some changes about that area 
happened in the compiler and nant may need to be adjusted.

 

On Thu, Sep 25, 2008 at 1:37 PM, Rafael Teixeira <[EMAIL PROTECTED]> wrote:

you need to force nant to use the 2.0 profile. it is using 1.0 that doesn't 
have this attribute.

:)

2008/9/25 Paul <[EMAIL PROTECTED]>

Hi,

I'm building nclass against Mono2.0RC1 on my Fedora rawhide box and have
hit a problem

           Buildfile:
file:///home/paul/rpmbuild/BUILD/NClass_v1.09_src/src/Translations/Translations.build
           Target framework: Mono 2.0 Profile
           Target(s) specified: compile

           compile:

                 [csc] Compiling 2 files to
'/home/paul/rpmbuild/BUILD/NClass_v1.09_src/bin/NClass.Translations.dll'.
                          [resgen] Read in 292 resources from
'/home/paul/rpmbuild/BUILD/NClass_v1.09_src/src/Translations/Strings.es.resx'
                          [resgen] Writing resource file...  Done.
                          [resgen] Read in 294 resources from
'/home/paul/rpmbuild/BUILD/NClass_v1.09_src/src/Translations/Strings.hu.resx'
                          [resgen] Writing resource file...  Done.
                          [resgen] Read in 261 resources from
'/home/paul/rpmbuild/BUILD/NClass_v1.09_src/src/Translations/Strings.pt-BR.resx'
                          [resgen] Writing resource file...  Done.
                          [resgen] Read in 293 resources from
'/home/paul/rpmbuild/BUILD/NClass_v1.09_src/src/Translations/Strings.resx'
                          [resgen] Writing resource file...  Done.
                          [resgen] Read in 293 resources from
'/home/paul/rpmbuild/BUILD/NClass_v1.09_src/src/Translations/Strings.ru.resx'
                          [resgen] Writing resource file...  Done.
                              [al] Compiling 1 files to
'/home/paul/rpmbuild/BUILD/NClass_v1.09_src/bin/es/NClass.Translations.resources.dll'.
                              [al] ** (/usr/lib/mono/1.0/al.exe:25819):
WARNING **: Missing method .ctor in
assembly 
/home/paul/rpmbuild/BUILD/NClass_v1.09_src/bin/NClass.Translations.dll, type 
System.Runtime.CompilerServices.RuntimeCompatibilityAttribute
                              [al] ** (/usr/lib/mono/1.0/al.exe:25819):
WARNING **: The class
System.Runtime.CompilerServices.RuntimeCompatibilityAttribute could not
be loaded, used in NClass.Translations
                              [al] ** (/usr/lib/mono/1.0/al.exe:25819):
WARNING **: Can't find custom attr constructor
image: /home/paul/rpmbuild/BUILD/NClass_v1.09_src/bin/NClass.Translations.dll 
mtoken: 0x0a000023
                              [al] Unhandled Exception:
System.TypeLoadException: Could not load type
'System.Runtime.CompilerServices.RuntimeCompatibilityAttribute' from
assembly 'NClass.Translations'.
                              [al]   at (wrapper managed-to-native)
System.MonoCustomAttrs:GetCustomAttributesInternal
(System.Reflection.ICustomAttributeProvider,System.Type,bool)
                              [al]   at
System.MonoCustomAttrs.GetCustomAttributesBase (ICustomAttributeProvider
obj, System.Type attributeType) [0x00000]
                              [al]   at
System.MonoCustomAttrs.GetCustomAttributes (ICustomAttributeProvider
obj, System.Type attributeType, Boolean inherit) [0x00000]
                              [al]   at
System.MonoCustomAttrs.GetCustomAttributes (ICustomAttributeProvider
obj, Boolean inherit) [0x00000]
                              [al]   at
System.Reflection.Assembly.GetCustomAttributes (Boolean inherit)
[0x00000]
                              [al]   at
Mono.AssemblyLinker.AssemblyLinker.DoIt () [0x00000]
                              [al]   at
Mono.AssemblyLinker.AssemblyLinker.DynMain (System.String[] args)
[0x00000]
                              [al]   at
Mono.AssemblyLinker.AssemblyLinker.Main (System.String[] args)
[0x00000]

           BUILD FAILED - 0 non-fatal error(s), 12 warning(s)

           External Program Failed: /usr/lib/mono/1.0/al.exe (return
code was 1)

Is this a mono problem or something up elsewhere? The first error
certainly looks to be from one of the libraries.

TTFN

Paul

--
Sie können mich aufreizen und wirklich heiß machen!

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list




-- 
Rafael "Monoman" Teixeira
---------------------------------------
"I myself am made entirely of flaws, stitched together with good intentions."
Augusten Burroughs




-- 
Rafael "Monoman" Teixeira
---------------------------------------
"I myself am made entirely of flaws, stitched together with good intentions."
Augusten Burroughs




-- 
Rafael "Monoman" Teixeira
---------------------------------------
"I myself am made entirely of flaws, stitched together with good intentions."
Augusten Burroughs




-- 
Rafael "Monoman" Teixeira
---------------------------------------
"I myself am made entirely of flaws, stitched together with good intentions."
Augusten Burroughs

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to