-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Update Razor compiler to use global:: more liberally #18757
Copy link
Copy link
Closed
dotnet/razor-compiler
#34Labels
Priority:1Work that is critical for the release, but we could probably ship withoutWork that is critical for the release, but we could probably ship withoutaffected-fewThis issue impacts only small number of customersThis issue impacts only small number of customersbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.severity-majorThis label is used by an internal toolThis label is used by an internal tool
Milestone
Metadata
Metadata
Assignees
Labels
Priority:1Work that is critical for the release, but we could probably ship withoutWork that is critical for the release, but we could probably ship withoutaffected-fewThis issue impacts only small number of customersThis issue impacts only small number of customersbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.severity-majorThis label is used by an internal toolThis label is used by an internal tool
Type
Fields
Give feedbackNo fields configured for issues without a type.
Issue: In a Razor Component any variables named "Microsoft" reproduce the error (variable type on the error message changes accordingly):
Question: Is this an issue or by design?
Project details and files: This is a Razor Class Library project.
.csproj
LoginFormUserComponent.razor
Comments:
I started getting this random error and found out that apparently I cannot write "Microsoft" as a variable name in a Razor component.
I was unable to find the search keywords for anything similar to this.
I initially thought that there was a reference issue on my project when I realized the commented parameter was the issue. I then tried using a native variable type to see if the issue persisted - and it did.
It's not really an issue I need fixing per say - just wondering why this happens.
Thanks in advance!