[Mono-list] Assembly.CodeBase

Pedro Santos psantos@oninetspeed.pt
Sun, 06 Jun 2004 08:24:19 +0100


--=-b+HpvIFH7/zjD4SgQjpv
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


Hello. If I call CodeBase in Mono/Linux, I get:
file:///path/to/assembly/assemly.dll

In Microsoft .NET/Windows I get:
file:///c:/path/to/assembly/assembly.dll

Doens't MS.NET code have an extra '/' afer 'file:' ? I need to isolate
the URL from the CodeBase, and this way I can't have a way that works
everywhere. Because Linux I have to remove `file://`, and in win
`file:///`.

Any workaround? I would not want to be checking in with operating system
I am running.

--=20
Pedro Santos <www.psantos.net>
"Si minor plus est ergo nihil sunt omnia..."

--=-b+HpvIFH7/zjD4SgQjpv
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAwsaj00b8YfrkjegRAlotAJ9x2/Za46CbQ07MP7DV3Ucq+LcDswCgjmXh
dTfumD3xqDmgltg7Be6D+Wk=
=z7wN
-----END PGP SIGNATURE-----

--=-b+HpvIFH7/zjD4SgQjpv--