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

2007-04-10 Marek Habersack <[email protected]>

	* AppResourceFilesCollection.cs: watch App_LocalResources for
	changes.

svn path=/trunk/mcs/; revision=75569
Marek Habersack 19 лет назад
Родитель
Сommit
72a86061b2

+ 3 - 1
mcs/class/System.Web/System.Web.Compilation/AppResourceFilesCollection.cs

@@ -119,8 +119,10 @@ namespace System.Web.Compilation
 
 			string resourcePath;
 			resourcePath = Path.Combine (parserDir, "App_LocalResources");
-			if (Directory.Exists (resourcePath))
+			if (Directory.Exists (resourcePath)) {
 				sourceDir = resourcePath;
+				HttpApplicationFactory.WatchLocationForRestart (sourceDir, "*");
+			}
 		}
 		
 		public void Collect ()

+ 5 - 0
mcs/class/System.Web/System.Web.Compilation/ChangeLog

@@ -1,3 +1,8 @@
+2007-04-10  Marek Habersack  <[email protected]>
+
+	* AppResourceFilesCollection.cs: watch App_LocalResources for
+	changes.
+
 2007-04-06  Marek Habersack  <[email protected]>
 
 	* BaseCompiler.cs: display the source of the file in which the