[Mono-dev] Running under the Mono 2.0 Profile
Charlie Poole
charlie at nunit.com
Mon Nov 27 12:59:49 EST 2006
Hi Mirco,
Sure, this is what we use for the normal static situation where you always
want
a particular program to run under a given profile. But it doesn't work for a
more dynamic situation, such as a developer needing to test different
programs
under NUnit using different profiles.
For that purpose, we have menu items that say "Run under .Net 1.1, etc."
This
is implemented by using the COMPLUS_VERSION environment variable. For Mono,
we currently only say "Run under Mono" It would be nice if we could have
"Run under Mono 1.0 Profile" and "Run under Mono 2.0 Profile"
I probably should have explained all this in my note in the first place. :-(
Charlie
> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com
> [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf
> Of Mirco Bauer
> Sent: Monday, November 27, 2006 3:50 AM
> To: Charlie Poole
> Cc: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] Running under the Mono 2.0 Profile
>
> On Sun, 2006-11-26 at 11:59 -0800, Charlie Poole wrote:
> > Hi All,
> >
> > At the Mono meeting, we discussed the need for a way to run
> code under
> > the 2.0 profile for testing purposes, even if it was built with the
> > 1.0 profile.
> >
> > Has anything happened on this?
> >
> > Possible options:
> > 1) A switch on mono.exe
> > 2) Use of an environment variable
> > 3) ???
>
> There exists a way that I use for debian packaging, it's a
> manifest file for the application which tells the runtime to
> use the 2.0 profile, it looks like this:
> foo.exe.config
> <?xml version="1.0"?>
> <configuration>
> <startup>
> <supportedRuntime version="v2.0.50727" />
> </startup>
> </configuration>
>
> I use this to force the boo compiler for example to link the
> resulting assemblies against 2.0 instead of 1.0, I created
> boo2.exe.config and symlinked boo2.exe to boo.exe This way
> the normal packaging can stay 1.0, while 2.0 support is added
> using this "wrapper".
>
> This feature is supported by MS .NET and Mono.
>
> --
> Regards,
>
> Mirco 'meebey' Bauer
>
> PGP-Key:
> http://keyserver.noreply.org/pks/lookup?op=get&search=0xEEF946C8
>
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GIT d s-:+ a-- C++ UL++++$ P L++$>+++$ E- W+++$ N o? K- w++>!
> O---- M- V? PS
> PE+ Y- PGP++ t 5+ X++ R tv+ b+ DI? D+ G>++ e h! r->++ y?
> ------END GEEK CODE BLOCK------
>
More information about the Mono-devel-list
mailing list