-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow @
as separator in #:package
#48542
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
Conversation
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.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs:820
- [nitpick] Consider renaming the local variable 'i' to a more descriptive name (e.g., 'separatorIndex') to enhance code clarity.
var i = separators != null ? directiveText.AsSpan().IndexOfAny(separators) : directiveText.IndexOf(' ', StringComparison.Ordinal);
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.
So are we planning to be tolerant of different separators here for the short term? Or maybe indefinitely? And are there other changes coming for the allowed/permitted separators for #:sdk
and #:property
?
Good questions. If we are doing We could also have a "breaking change" and say spaces are not allowed for packages (and sdk if we change that as well). I would actually prefer that as there would be just one common way to specify the same directives. (The downside might be you cannot choose one separator - space - for everything like you can today.) But curious what others think. |
I would prefer that only one separator is permitted for each directive kind. But, I also think being tolerant during the experimental phase is fine, to allow people to "offboard" from spaces as delimiters. |
Resolves #47990.