WPF "Preview isn't supported in View" in a Shared Project.
Now here is one I just can't figure out.
Why is it that when I create a Shared Project and I place a WPF inside the Shared Project I can't get a Preview of the WPF, but when I create a WPF inside of a C# Project the WPF will appear just fine? And now for the part that really confuses me, I can open the same solution/Shared Project inside of Visual Studio and I can see the preview of the WPF. Is this a bug or do I have some settings wrong?
As a work around, I created a WPF inside of the C# Project where it worked well, but Rider doesn't allow me to move the .xaml file to the Shared Project after I finish editing the WFP form.
Please don't tell me I have to do all my WPF work inside VS, I really fell in love with the Rider Interface and would love to be able to stay here; it really is a happy place aside from the minor frustrations.
Rider View
Visual Studio
Please sign in to leave a comment.
Hello,
Which framework do you use in this solution, .NET of .NET Core?
All the projects and solutions are based on .NETFramework v4.8 and the SharedProject is .NETCore v4.5.1
Hello,
So far, we could not reproduce the issue you're describing. Would you be able to provide a sample solution that we could use to investigate the problem on our side? You can upload it using JetBrains Upload Service. Please also tell us which version of Rider you are using to reproduce this behavior.
Thank you in advance.
Thank you, Ivan. I really appreciate you looking into this.
Here is the link to the project on GitHub
https://github.com/cabowker/Masterclass
The link leads to 404. Is it a private repo?
Oh so sorry, I thought I changed this yesterday, but apparently, it didn't take.
Just changed it to Public.
Thanks, I can open it now. I'll clone it and take a look. Which version of Rider are you using?
2023.1.1
Any ideas as to what the problem is? Is this a bug or maybe a new feature to come?
Apologies for keeping you without an update. We're actually still struggling to reproduce the problem on our side, since WPF preview works successfully for us in your solution. I'll let you know of the next steps soon, stay tuned.
Could you please clarify what Windows version you use and what is your processor architecture? Also, can you build this solution while the WPF preview is displayed as not supported?