mail-archives/mono-bugs/2003-July/006463.html

99 строки
3.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 46609][Nor] New - AppDomain.BaseDirectory misses trailing directoryseparator on linux
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="006462.html">
<LINK REL="Next" HREF="006464.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 46609][Nor] New - AppDomain.BaseDirectory misses trailing directoryseparator on linux
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 46609][Nor] New - AppDomain.BaseDirectory misses trailing directoryseparator on linux">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>Sat, 19 Jul 2003 05:58:04 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="006462.html">[Mono-bugs] [Bug 46602][Maj] New - incorrect instance size (mono_class_layout_fields)
</A></li>
<LI> Next message: <A HREF="006464.html">[Mono-bugs] [Bug 46610][Wis] New - XmlDocument.Load inside BeginInvoke doesn't work
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6463">[ date ]</a>
<a href="thread.html#6463">[ thread ]</a>
<a href="subject.html#6463">[ subject ]</a>
<a href="author.html#6463">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="mailto:gert.driesen@pandora.be.">gert.driesen@pandora.be.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=46609">http://bugzilla.ximian.com/show_bug.cgi?id=46609</A>
--- shadow/46609 Sat Jul 19 05:58:04 2003
+++ shadow/46609.tmp.1029 Sat Jul 19 05:58:04 2003
@@ -0,0 +1,35 @@
+Bug#: 46609
+Product: Mono/Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Gentoo 1.4 R5
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:gert.driesen@pandora.be">gert.driesen@pandora.be</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: AppDomain.BaseDirectory misses trailing directoryseparator on linux
+
+On Windows (with both .NET and Mono), AppDomain.BaseDirectory returns the
+application base directory with a trailing backslash.
+
+However, on Linux the AppDomain.BaseDirectory returns the application base
+directory without a trailing slash (Path.DirectorySeparator).
+
+using System;
+using System.Reflection;
+
+namespace BaseDirectory {
+ public class Test {
+ public static void Main() {
+ Console.WriteLine
+(AppDomain.CurrentDomain.BaseDirectory);
+ }
+ }
+}
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="006462.html">[Mono-bugs] [Bug 46602][Maj] New - incorrect instance size (mono_class_layout_fields)
</A></li>
<LI> Next message: <A HREF="006464.html">[Mono-bugs] [Bug 46610][Wis] New - XmlDocument.Load inside BeginInvoke doesn't work
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6463">[ date ]</a>
<a href="thread.html#6463">[ thread ]</a>
<a href="subject.html#6463">[ subject ]</a>
<a href="author.html#6463">[ author ]</a>
</LI>
</UL>
</body></html>