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

Doesn't find my view model #3

Open
cbordeman opened this issue May 3, 2014 · 3 comments
Open

Doesn't find my view model #3

cbordeman opened this issue May 3, 2014 · 3 comments

Comments

@cbordeman
Copy link

My project targets Windows 8.1, not a universal app. The view is in a different assembly from the view model, so it would be great if the plugin would simply look for any type with the same name with ViewModel appended, no matter which assembly it appeared in, or perhaps use the same convention based logic Prism uses to find view models.

I'll look at the code closer and see if I can be more specific.

@cbordeman
Copy link
Author

OK I modified the code to handle views ending in Page or Flyout, as well as appending ViewModel without removing the view type (HubPage => HubPageViewModel). I'll fork and create a pull request.

@cbordeman cbordeman reopened this May 3, 2014
@hmemcpy
Copy link
Collaborator

hmemcpy commented May 3, 2014

Wow! Thanks so much for this!
I made this plugin sort of as a proof of concept for a friend. I always intended to continue developing it, making all those conventions configurable, but just didn't have the time to do it....

I would love to merge your changes! Just ping me when it's time.
Thanks again!

@cbordeman
Copy link
Author

Hey, thanks for creating the extension in the first place! Something like this really should be built into Visual Studio.

You're the expert on Resharper, so I was wondering how difficult would it be to make a more standalone Resharper extension that can be triggered by a keyboard shortcut (like F7) and immediately goes to the ViewModel or View or displays a list of possibilities if more than one result?

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

No branches or pull requests

2 participants