string BuildOutputAssemblyName()
{
string configuredOutputAssembly = Parameters.OutputAssembly;
if (!string.IsNullOrEmpty(configuredOutputAssembly))
return TryToGetFullPath(configuredOutputAssembly);
string outputAssembly = CompileUnit.Modules[0].Name;
if (!HasDllOrExeExtension(outputAssembly))
{
if (CompilerOutputType.Library == Parameters.OutputType)
outputAssembly += ".dll";
else
outputAssembly += ".exe";
}
return TryToGetFullPath(outputAssembly);
}