Excel-DNA / Excel-DNA/ExcelDna
Refactor build tasks to run common task as a dependency
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 292
- Avg merge
- 20d 12h
- Merged PRs (30d)
- 1
Description
With the introduction of a custom task for cleaning the output on rebuild (`CleanExcelAddIn`) we've introduced a class `BuildTaskCommon` that figures out which files are going to be generated in the output.
Whilst this works fine today, it's not very efficient, as the output of this class is needed for both `CleanExcelAddIn` and `CreateExcelAddIn`, and gets executed twice when, really, we should only be executing this once.
My current thinking is that we should create a base `PrepareExcelAddIn` task that will output the files that are going to be generated in the output, and have the `CleanExcelAddIn` and `CreateExcelAddIn` tasks depend on `PrepareExcelAddIn`'s output.
As part of the work with #18 and #19 I'm going to introduce a task that updates the debug settings for the project being built, and that task also needs the features in `BuildTaskCommon` and therefore would benefit from `PrepareExcelAddIn` as well.
Contributor guide
Assessment
This issue has not been assessed yet.