Recognising Umbraco Partials with Rider
Answered
Hello!
When using Rider with Umbraco, it doesn't recognise the partials as Umbraco loads them from the ~/Views/Partials directory instead of ~/Views/Shared.
Creating a directory junction from Shared to Partials serves as a workaround for this issue, but having to do this for every project is not good, especially as it doesn't play nice with version control 😔
Is there a way I can tell Rider that it can find partial views in ~/Views/Partials instead?
Thank you! 😊
Please sign in to leave a comment.
Hello!
Is there any update on this please?
Thanks!
Hello!
Your issue looks very much like this one, isn't it? We are looking into it.
Have you tried to use the full path? Like the one below:
Tomasz K. I've tried this and it still doesn't work. It's a shame that it brings up random errors like that even in the 2021 version. Are there any plans for a fix?
Harryspyrou1986,
Sorry for that! Assuming that you've faced this known issue, I'm afraid we don't have any solid plans on fixing it in the near future.
It's still happening and is very annoying in Rider 2022.1.1. Umbraco 9.5.0 dotnet 5.0. Partials are in /Views/Partials and they're not being found. If IRC if you mess up your references in VS it's error page gives you a list of places it looked for the partial, and there are quite a few. You'd think you could at least look in Views/Partials for a PARTIAL VIEW?!
Hoping for a fix in the very near future.
Regards,
Craig
Julia Vaseva I don't think it's even Umbraco specific, it's .NET that works with partials. How hard would it be to give us a field and we can select where we want it to look for? You don't even have to fill in the partial view folder that Craig is talking about. You can give us a field and let us do it.
Hi Craig, @...!
Unfortunately, the issue has not been fixed yet. This is indeed not an Umbraco-specific case.
Please upvote the issue to be notified about its state.
We apologize for the inconvenience.
Tomasz K. Thanks, your advice works for me
(Rider version is 2022.2.2; Rider Build #RD-222.3962.23, built on August 20, 2022; Umbraco version 10.1.0)