Merge pull request #2971 from BrzVlad/feature-cross-binprot
[mono.git] / mcs / class / Microsoft.Build.Tasks / Microsoft.Build.Tasks / AL.cs
index f7ff0a2f9bea47d9cfca2d827deacc401fc1aea1..9b94e3798c13b3330d3314b811577d5fbfbf1aff 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.Diagnostics;
@@ -60,7 +59,7 @@ namespace Microsoft.Build.Tasks {
                        if (EmbedResources != null) {
                                foreach (ITaskItem item in EmbedResources) {
                                        string logical_name = item.GetMetadata ("LogicalName");
-                                       if (logical_name.Length > 0)
+                                       if (!string.IsNullOrEmpty (logical_name))
                                                commandLine.AppendSwitchIfNotNull ("/embed:", string.Format ("{0},{1}", item.ItemSpec, logical_name));
                                        else
                                                commandLine.AppendSwitchIfNotNull ("/embed:", item.ItemSpec);
@@ -267,4 +266,3 @@ namespace Microsoft.Build.Tasks {
        }
 }
 
-#endif