samhowes / rules_msbuild

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

External rules don't have a way to execute a published msbuild_binary #186

Closed samhowes closed 2 years ago

samhowes commented 2 years ago

The only output of msbuild_binary.publish is a directory of files, and the DefaultInfo does not have executable set, because bazel will try to create a runfiles_manifest, which conflicts with the directory action. This means that external rules don't have a way to execute the published binary in an action.

This can be solved by:

  1. adding a launcher attribute to DotnetPublishInfo and making that provider public.
  2. reorganizing the output directory format for publish