Просмотр исходного кода

fix the build

svn path=/trunk/mcs/; revision=137650
Gonzalo Paniagua Javier 16 лет назад
Родитель
Сommit
44cc7fceee
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs

+ 2 - 0
mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs

@@ -58,12 +58,14 @@ namespace System.Web.Hosting {
 		// computed
 		string raw_url;
 
+#if NET_2_0
 		static readonly string root_web_config_path;
 
 		static SimpleWorkerRequest ()
 		{
 			root_web_config_path = WebConfigurationManager.OpenWebConfiguration ("~").FilePath;
 		}
+#endif
 
 		//
 		// Constructor used when the target application domain