[Mono-dev] Running under the Mono 2.0 Profile

Mirco Bauer meebey at meebey.net
Mon Nov 27 06:49:40 EST 2006


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------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061127/5d164238/attachment.bin 


More information about the Mono-devel-list mailing list