Warn when an @
is optional in an attribute value
#9740
Labels
Milestone
@
is optional in an attribute value
#9740
See dotnet/aspire#1449 for context, but in general there is code like:
and the user changed it to:
This seemed to have no effect, but nobody is really sure what the rules are for whether the
@
is necessary in this context or not. It would be great if the compiler could warn when it expects a C# expression, and encounters a C# implicit expression.The text was updated successfully, but these errors were encountered: