Skip to content

Conversation

@sin-ack
Copy link
Contributor

@sin-ack sin-ack commented Mar 14, 2025

MSBuild maps the file names as "{project name}.{dotted path}" where the project name is the same as the final generated assembly name and the dotted path is the project-relative path to the embedded resource with slashes changed to periods. Without this, the resource only gets embedded with its basename in the manifest which breaks expectations compared to MSBuild.

Fixes #474.

Drafted since the I haven't received a response on the issue yet. If the solution is acceptable, I will undraft the PR.

@sin-ack sin-ack force-pushed the embedded-resource-names branch 2 times, most recently from f685992 to 8141c89 Compare March 14, 2025 17:10
MSBuild maps the file names as "{project name}.{dotted path}" where
the project name is the same as the final generated assembly name and
the dotted path is the project-relative path to the embedded resource
with slashes changed to periods. Without this, the resource only gets
embedded with its basename in the manifest which breaks expectations
compared to MSBuild.
@sin-ack sin-ack force-pushed the embedded-resource-names branch from 8141c89 to 7ae2a8c Compare March 17, 2025 12:49
@sin-ack
Copy link
Contributor Author

sin-ack commented Mar 17, 2025

Updated to match what MSBuild does. Undrafting PR as the issue seems to be approved.

@sin-ack sin-ack marked this pull request as ready for review March 17, 2025 12:50
@sin-ack sin-ack requested a review from purkhusid as a code owner March 17, 2025 12:50
@sin-ack sin-ack force-pushed the embedded-resource-names branch from 7ae2a8c to d28ddb9 Compare March 17, 2025 12:51
Copy link
Collaborator

@purkhusid purkhusid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for the contribution!

@purkhusid purkhusid merged commit 809ae9a into bazel-contrib:master Mar 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pass embedded resource names the same way as MSBuild

2 participants