Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C#: Add assembly attributes to assemblies built with Bazel #16705

Merged
merged 4 commits into from
Jun 10, 2024

Conversation

tamasvajk
Copy link
Contributor

@tamasvajk tamasvajk commented Jun 7, 2024

This PR cleans up the build configuration for C# projects:

  • Removes the last AssemblyInfo.cs files and moves InternalsVisibleToAttributes to csproj files.
  • Removes the corresponding "Properties/*.cs" source declarations from Bazel build scripts.
  • Ensures that assembly description attributes are added to the output artefacts when they are built with Bazel.

@github-actions github-actions bot added the C# label Jun 7, 2024
@tamasvajk tamasvajk marked this pull request as ready for review June 7, 2024 13:53
@tamasvajk tamasvajk requested review from a team as code owners June 7, 2024 13:53
Copy link
Collaborator

@criemen criemen left a comment

Choose a reason for hiding this comment

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

LGTM, but I think someone from the C# team should also review this PR.

[assembly: AssemblyCompany("GitHub")]
[assembly: AssemblyCopyright("Copyright © 2024 GitHub")]

[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we record in the C# wiki that this requires updating when we upgrade .NET?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I'm doing it.

Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

Looks plausible to me!

@tamasvajk tamasvajk merged commit 06aa266 into github:main Jun 10, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants