/// <summary> /// Handles building the platform components /// </summary> /// <param name="project"></param> /// <param name="service"></param> /// <param name="components"></param> /// <param name="guid"></param> /// <returns></returns> private string[] BuildPlatform(IProject project, Platforms service, Guid guid) { RegisteredPlatform platform; try { if (service.TryGetPlatform(guid, out platform)) { log.Info(Resources.log_build_interfaces); var status = new OperationStatus(); return platform.Generate(project, status, BuildType.BuildAll) ?? new string[0]; } } catch (InvalidOperationException ex) { // thrown by VFS when connection string is invalid // This occurs when deploying the dll to the database. if (ex.Source != "Sage.Platform.VirtualFileSystem" && ex.Source != "System.Data") throw; } return new string[0]; }