Browse Source

added #if TARGET_DOTNET

svn path=/trunk/mcs/; revision=92329
Igor Zelmanovich 18 years ago
parent
commit
db7072bf23
1 changed files with 6 additions and 0 deletions
  1. 6 0
      mcs/class/System.Web/System.Web.Util/ICalls.cs

+ 6 - 0
mcs/class/System.Web/System.Web.Util/ICalls.cs

@@ -35,8 +35,14 @@ namespace System.Web.Util
 	{
 		private ICalls () {}
 
+#if TARGET_DOTNET
+		static public string GetMachineConfigPath () {
+			return System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile;
+		}
+#else
 		[MethodImplAttribute(MethodImplOptions.InternalCall)]
 		extern static public string GetMachineConfigPath ();
+#endif
 
 		[MethodImplAttribute(MethodImplOptions.InternalCall)]
 		extern static public string GetMachineInstallDirectory ();