samhowes / rules_msbuild

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

publish targets don't include runfiles #164

Closed samhowes closed 2 years ago

samhowes commented 2 years ago

Publish targets output into a Tree Artifact (directory) instead of explicitly listing files. Therefore any runfiles that bazel would output would be output to publish.runfiles where they should be output to publish/net5.0/console.dll.runfiles, assuming that the end user wants to package up the publish directory.

  1. We could have the builder manually create the runfiles by enumerating and copying them
    1. The assumption is that we'd want to do a full copy of the runfiles since the publish executable would need to be functional on its own. It is possible there are usecases where this is not desireable
  2. We could have bazel generate the runfiles to publish.runfiles and then add an extra action that merges somehow