Oops... don't leave script source out of compilation in same cases

0.9.0.1-postfixes
UbitUmarov 2018-02-11 18:27:42 +00:00
parent e685d8dcef
commit 96aecf80ef
1 changed files with 5 additions and 2 deletions

View File

@ -369,14 +369,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
{ {
case enumCompileType.cs: case enumCompileType.cs:
compileScript = CreateCSCompilerScript( compileScript = CreateCSCompilerScript(
compileScript, source,
m_scriptEngine.ScriptClassName, m_scriptEngine.ScriptClassName,
m_scriptEngine.ScriptBaseClassName, m_scriptEngine.ScriptBaseClassName,
m_scriptEngine.ScriptBaseClassParameters); m_scriptEngine.ScriptBaseClassParameters);
break; break;
case enumCompileType.vb: case enumCompileType.vb:
compileScript = CreateVBCompilerScript( compileScript = CreateVBCompilerScript(
compileScript, m_scriptEngine.ScriptClassName, m_scriptEngine.ScriptBaseClassName); source, m_scriptEngine.ScriptClassName, m_scriptEngine.ScriptBaseClassName);
break; break;
} }
} }
@ -549,6 +549,9 @@ namespace SecondLife
parameters.TreatWarningsAsErrors = false; parameters.TreatWarningsAsErrors = false;
parameters.GenerateInMemory = false; parameters.GenerateInMemory = false;
parameters.TempFiles = new TempFileCollection(Path.Combine(ScriptEnginesPath,
m_scriptEngine.World.RegionInfo.RegionID.ToString()), CompileWithDebugInformation);
CompilerResults results; CompilerResults results;
CodeDomProvider provider; CodeDomProvider provider;