diff options
Diffstat (limited to 'mcs/class/System.XML/Mono.Xml.Xsl/ScriptCompilerInfo.cs')
-rw-r--r-- | mcs/class/System.XML/Mono.Xml.Xsl/ScriptCompilerInfo.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.Xsl/ScriptCompilerInfo.cs b/mcs/class/System.XML/Mono.Xml.Xsl/ScriptCompilerInfo.cs index 9458290a5a0..025550ea22c 100644 --- a/mcs/class/System.XML/Mono.Xml.Xsl/ScriptCompilerInfo.cs +++ b/mcs/class/System.XML/Mono.Xml.Xsl/ScriptCompilerInfo.cs @@ -190,11 +190,10 @@ public class Script{1} public VBCompilerInfo () { this.CompilerCommand = "mbas"; - this.DefaultCompilerOptions = "/t:library"; #if MS_NET this.CompilerCommand = "vbc.exe"; - this.DefaultCompilerOptions = "/t:library /r:System.dll /r:System.Xml.dll /r:Microsoft.VisualBasic.dll"; #endif + this.DefaultCompilerOptions = "/t:library /r:System.dll /r:System.XML.dll /r:Microsoft.VisualBasic.dll"; } public override CodeDomProvider CodeDomProvider { @@ -233,7 +232,7 @@ end namespace return source; return String.Format (CultureInfo.InvariantCulture, "#ExternalSource (\"{1}\", {0})\n{2}\n#end ExternalSource", - li.LineNumber, new FileInfo (file).Name, source); + li.LineNumber, file.Replace ("\\", "\\\\").Replace ("\"", "\\\""), source); } } |