samhowes / rules_msbuild

Build .csproj files with Bazel
Apache License 2.0
6 stars 3 forks source link

Re-evaluate caching with custom cache plugin #137

Closed samhowes closed 3 years ago

samhowes commented 3 years ago

The built-in MSBuild caches leave something to be desired:

Perhaps a custom cache plugin can replace the default caching mechanism. Doing this would require serialization of build results. Currently, that is done by MSBuild via the ITranslator, which is internal only.

Doing this would require:

  1. a custom fork of MSBuild repository
  2. vendoring ITranslator and using a bit of reflection
  3. custom serialization