public override void SyncOut (XcodeSyncContext context) { var target = context.ProjectDir.Combine (targetRelative); var dir = target.ParentDirectory; if (!Directory.Exists (dir)) Directory.CreateDirectory (dir); if (File.Exists (target)) File.Delete (target); File.Copy (source, target); context.UpdateSyncTime (targetRelative); }
public override void SyncOut (XcodeSyncContext context) { FilePath target = context.ProjectDir.Combine (targetRelative); var dir = target.ParentDirectory; if (!Directory.Exists (dir)) Directory.CreateDirectory (dir); if (File.Exists (target)) File.Delete (target); var result = Mono.Unix.Native.Syscall.link (source, target); Mono.Unix.UnixMarshal.ThrowExceptionForLastErrorIf (result); context.UpdateSyncTime (targetRelative); }
public override void SyncOut(XcodeSyncContext context) { var target = context.ProjectDir.Combine(targetRelative); var dir = target.ParentDirectory; if (!Directory.Exists(dir)) { Directory.CreateDirectory(dir); } if (File.Exists(target)) { File.Delete(target); } File.Copy(source, target); context.UpdateSyncTime(targetRelative); }
public override void SyncOut(XcodeSyncContext context) { FilePath target = context.ProjectDir.Combine(targetRelative); var dir = target.ParentDirectory; if (!Directory.Exists(dir)) { Directory.CreateDirectory(dir); } if (File.Exists(target)) { File.Delete(target); } try { var result = Mono.Unix.Native.Syscall.link(source, target); Mono.Unix.UnixMarshal.ThrowExceptionForLastErrorIf(result); } catch { File.Copy(source, target); } context.UpdateSyncTime(targetRelative); }
public override void SyncOut (XcodeSyncContext context) { Type.GenerateObjcType (context.ProjectDir); context.UpdateSyncTime (Type.ObjCName + ".h"); context.UpdateSyncTime (Type.ObjCName + ".m"); }
public override void SyncOut(XcodeSyncContext context) { Type.GenerateObjcType(context.ProjectDir, Frameworks); context.UpdateSyncTime(Type.ObjCName + ".h"); context.UpdateSyncTime(Type.ObjCName + ".m"); }