Skip to content

Add MSBuild Tasks assembly to Aspire.Hosting #1825

@eerhardt

Description

@eerhardt

#1726 added an MSBuild Task because it needed to do some special XML processing.

Since there wasn't already a Tasks assembly, we used a RoslynCodeTaskFactory in order to get unblocked.

However, there is a perf penalty for using RoslynCodeTaskFactory. The task needs to be compiled the first time. On my machine, the first time this task is run takes about 700ms, where when the target runs subsequently it takes more like 70ms.

We should create a Tasks assembly and put this Task in it, so we don't need to compile it more than once.

Metadata

Metadata

Assignees

Labels

area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationperfIssues pertaining to Perf

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions