bazel-contrib / bazel-contrib/rules_dotnet

Can't set AssemblyVersion etc attributes

Open
#423 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
209
Forks
98
Avg merge
3h 59m
Merged PRs (30d)
14

Description

I need to set AssemblyVersion on the libraries we are building. Actually, three attributes:

[assembly: AssemblyVersion("blah")]
[assembly: AssemblyFileVersion("blah")]
[assembly: AssemblyInformationalVersionAttribute("blah")]

In our existing msbuild, these are set in a .cs file and that's pulled into the assembly with /property:BuildVersionFile=above.cs

I understand the attributes can also be supplied directly to msbuild as attributes.

This is a new blocker for us... Can this be supported?

Contributor guide

Open the contributing guide

Research direction

Start by tracing how this repository passes MSBuild properties into the libraries it builds, focusing on the BuildVersionFile property and the three requested assembly attributes. Check the existing build and integration tests for assembly metadata handling. Done means users can supply AssemblyVersion, AssemblyFileVersion, and AssemblyInformationalVersion values through the supported build configuration and the resulting assemblies contain them.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.