Ensure the linker can eliminate the *RequestCreator code without extra instructions.
[mono.git] / mcs / class / Microsoft.Build.Tasks / Mono.XBuild.Tasks.GenerateResourceInternal / PoResourceWriter.cs
index fd547a62180332d81010e3a334afb1ec14e18ef8..b173eb1ef4048043cc1321037d5d97e50247d788 100644 (file)
@@ -3,7 +3,8 @@
 //
 // Author:
 //   Marek Sieradzki (marek.sieradzki@gmail.com)
-// FIXME: code from monoresgen, add authors
+//   Paolo Molaro (lupus@ximian.com)
+//   Gonzalo Paniagua Javier (gonzalo@ximian.com)
 //
 // (C) 2005 Marek Sieradzki
 //
@@ -26,6 +27,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
+#if NET_2_0
+
 using System;
 using System.IO;
 using System.Resources;
@@ -95,7 +98,7 @@ namespace Mono.XBuild.Tasks.GenerateResourceInternal {
                        
                        s.WriteLine ("msgid \"{0}\"", Escape (name));
                        s.WriteLine ("msgstr \"{0}\"", Escape (value));
-                       s.WriteLine ("");
+                       s.WriteLine (String.Empty);
                }
                
                void WriteHeader ()
@@ -128,4 +131,6 @@ namespace Mono.XBuild.Tasks.GenerateResourceInternal {
                {
                }
        }
-}
\ No newline at end of file
+}
+
+#endif
\ No newline at end of file