The copying of the .mcb and .mct file when using the SaveAs command did not work. It used the wrong input for the File.Copy(string, string). The second string pointed to a directory rather than a destination file.
This made it so the .mcb and .mct file was not copied.
The issue also resulted in the issue stated in #289 which this closes.
@peterjamesnugent to confirm, the following actions are now queued:
- check `code-compliance`
- check `documentation-compliance`
- check `project-compliance`
- check `core`
- check `null-handling`
- check `serialisation`
- check `versioning`
- check `installer`
There are 3 requests in the queue ahead of you.
The copying of the
.mcb
and.mct
file when using theSaveAs
command did not work. It used the wrong input for theFile.Copy(string, string)
. The second string pointed to adirectory
rather than adestination file
.This made it so the
.mcb
and.mct
file was not copied. The issue also resulted in the issue stated in #289 which this closes.Issues addressed by this PR
Closes #289
Test files
Please use the test script below and run the execute workflow. Before testing https://burohappold.sharepoint.com/sites/BHoM/02_Current/Forms/AllItems.aspx?csf=1&web=1&e=bdWLDi&cid=c70586d3%2Df382%2D473f%2Dab89%2Db962fae9a4aa&RootFolder=%2Fsites%2FBHoM%2F02%5FCurrent%2F12%5FScripts%2F01%5FIssue%2FBHoM%2FMidasCivil%5FToolkit%2F%23289%2DSaveAsNotWorking&FolderCTID=0x0120008122C8891F89054B8ACED0196C70DFC4