-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
Each unit gets a unique assemblyInfo file, on top of the ones for entrypoints that also gets the git info embedded.
There was a problem hiding this 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")] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
This PR cleans up the build configuration for C# projects:
AssemblyInfo.cs
files and movesInternalsVisibleToAttributes
to csproj files."Properties/*.cs"
source declarations from Bazel build scripts.