[mono-config] use right type for result of strlen
[mono.git] / mcs / class / Microsoft.Build.Tasks / Microsoft.Build.Tasks / CreateCSharpManifestResourceName.cs
index 1a0f7f52ea0c132ecd832bf60dc3198e2b063257..5b4482d3fdcac013db690b3b20e75efeb915cd99 100644 (file)
@@ -25,7 +25,6 @@
 // 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;
@@ -41,7 +40,7 @@ namespace Microsoft.Build.Tasks {
 
                protected override bool IsSourceFile (string fileName)
                {
-                       return Path.GetExtension (fileName).ToLower () == ".cs";
+                       return string.Equals (Path.GetExtension (fileName), ".cs", StringComparison.OrdinalIgnoreCase);
                }
                
                protected override string CreateManifestName (string fileName,
@@ -200,4 +199,3 @@ namespace Microsoft.Build.Tasks {
        }
 }
 
-#endif