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

Intellisense for extension methods in markup files in Visual Studio 2022 #1797

Open
liviriniu opened this issue Mar 8, 2024 · 2 comments
Open

Comments

@liviriniu
Copy link

Currently I don't get any

image

In this example, GetDescription() is an Enum extension method and AsHTMLBoldText() a string extension method.

@daltinkurt
Copy link
Contributor

daltinkurt commented Mar 11, 2024

maybe you should add the namespaces to the top of the file. I'm not sure if it works or not.
Sample:

@viewModel MyApp.ViewModels.MyPageViewModel, MyApp
@masterPage Views/MyMasterPage.dotmaster
@import MyApp.Info // <-- this line
...

@liviriniu
Copy link
Author

liviriniu commented Mar 13, 2024

I tried @import variants including stuff like:

@import _ = MyApp.Code.EnumExtensions
@import static MyApp.Code.EnumExtensions

None succeeded unfortunately.

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

No branches or pull requests

3 participants