public static (string executable, string debugSymbols) GetDestinationPaths(MonoUtilityFile muf) { if (muf == null) { throw new ArgumentNullException(nameof(muf)); } string destDir = UtilitiesDestinationDir; string targetFileName; if (!String.IsNullOrEmpty(muf.TargetName)) { targetFileName = muf.TargetName; } else { targetFileName = Path.GetFileName(muf.SourcePath); } string destFilePath = Path.Combine(destDir, targetFileName); if (String.IsNullOrEmpty(muf.DebugSymbolsPath)) { return(destFilePath, null); } return(destFilePath, Path.Combine(destDir, Utilities.GetDebugSymbolsPath(targetFileName))); }
public static (string executable, string debugSymbols) GetDestinationPaths(MonoUtilityFile muf) { string destDir = UtilitiesDestinationDir; string targetFileName; if (!String.IsNullOrEmpty(muf.TargetName)) { targetFileName = muf.TargetName !; } else { targetFileName = Path.GetFileName(muf.SourcePath); } string destFilePath = Path.Combine(destDir, targetFileName); if (String.IsNullOrEmpty(muf.DebugSymbolsPath)) { return(destFilePath, String.Empty); } return(destFilePath, Path.Combine(destDir, Utilities.GetDebugSymbolsPath(targetFileName))); }