The Wayback Machine - https://web.archive.org/web/20211113181823/https://github.com/dotnet/aspnetcore/issues/38358
Skip to content
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

Vsual Studio 2022 (17.0.0) . In blazor web assembly component Rename operation do not work #38358

Open
vsfeedback opened this issue Nov 13, 2021 · 1 comment

Comments

Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
@vsfeedback
Copy link

@vsfeedback vsfeedback commented Nov 13, 2021

This issue has been moved from a ticket on Developer Community.


Hi,

Vsual Studio 2022 (17.0.0) . In blazor web assembly component Rename operation do not work

Thnak you


Original Comments

Feedback Bot on 11/10/2021, 00:00 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 11/10/2021, 07:26 PM:

Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem?view=vs-2019#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.


Original Solutions

(no solutions)

@mkArtakMSFT
Copy link
Contributor

@mkArtakMSFT mkArtakMSFT commented Nov 13, 2021

From @NTaylorMullen:

this is compiler because the rename operation is taking place on the directive's C#. User is doing @inject HttpClient HttpClient and trying to rename HttpClient -> HttpClient2. The compiler generates "fake" directive ocntent for the HttpClient2 resulting in the rename not actually working. Meaning, in the design time generated C# output what's actually happening is something like

object HttpClient = default;

And the Razor source mapping is pointing to that random variable instead of the actual injected property.

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment