-
Notifications
You must be signed in to change notification settings - Fork 654
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
Unique namespace generation for GitVersionInformation class #3619
Unique namespace generation for GitVersionInformation class #3619
Conversation
{1}{2} | ||
{4}[global::System.Runtime.CompilerServices.CompilerGenerated] | ||
{4}[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] | ||
{4}static class GitVersionInformation | ||
{4}{{ | ||
{0} | ||
}} | ||
{4}}}{3} |
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.
This part here is the most clunky, I would much prefer a cleaner way of handling the indent/non-indent and brackets needed for the csharp namespace.
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.
Yeah, this is not very elegant. Pull requests to improve it are welcome.
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.
I think this is a nice addition that may resolve a few bugs reported over the years, but I think the proposed name is a bit too long, unwieldy, and imprecise. How do you feel about UseProjectNamespace
?
Thank you @Applesauce314 for your contribution! |
Description
adds a configuration option
to allow the creation of the
GitVersionInformation
class in a namespace related to the project it is in.this allows different projects to have the class in different namespaces so if internalsvisibleto attribute is used there is not class name collision (CS0436), eliminating the need to suppress the issue.
Related Issue
issue #3606
Issue #448
Motivation and Context
Elimination of CS0436
How Has This Been Tested?
wrote unit tests to cover added code
Checklist: