[xbuild] Disable pre-2.0 csc hack to use /debug:portable (#4322)
[mono.git] / mcs / class / Microsoft.Build.Tasks / Microsoft.Build.Tasks / ManagedCompiler.cs
index 19eec8686542011b04d2515874b9a86450136161..9d6404ee3ebc7632fa4edb3ef7fd68b6319907dc 100644 (file)
@@ -58,11 +58,7 @@ namespace Microsoft.Build.Tasks {
                        if (Bag ["CodePage"] != null)
                                commandLine.AppendSwitchIfNotNull ("/codepage:", CodePage.ToString ());
 
-                       var dtype = DebugType;
-                       if (string.Equals (dtype, "full", StringComparison.OrdinalIgnoreCase) || string.Equals (dtype, "pdbonly", StringComparison.OrdinalIgnoreCase))
-                               dtype = "portable";
-
-                       commandLine.AppendSwitchIfNotNull ("/debug:", dtype);
+                       commandLine.AppendSwitchIfNotNull ("/debug:", DebugType);
 
                        if (Bag ["DelaySign"] != null)
                                if (DelaySign)