-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Emit assembly attributes #85
Comments
SDK-style projects already provide that. Or you can use |
It's a UI app so we're not using SDK projects yet. Thanks for the example. I can see that it's possible, but it's more work than I'm willing to chew on right now. It feels like this should be something done once in this repo, and made easily available to all users via a simple property. |
Understood, but this project does not intend to be overly prescriptive as to how you use those values. You can fairly easily do what you want with the things I mentioned. It's a package reference plus a couple MSBuild items on you targets. |
Thanks Daniel, I'll take another look. |
We have a
CommonAssemblyInfo.cs
file that's included in all projects in the solution.I wanted to add assembly attributes based that use
GitInfo
properties, as described in the README.It seems this can't work in the case of
InternalsVisibleTo
because a shared file cannot import a unique namespace per consuming project.Would it make sense to have a property that caused GitInfo to emit assembly attributes into the
.g.cs
file? I could them remove them fromCommonAssemblyInfo.cs
.The text was updated successfully, but these errors were encountered: