Shiny Templates issue #1435
Replies: 3 comments
-
This is something I will look into, but do you plan on mixing XAML/Viewmodels with blazor content? Generally, Shiny Framework is 95% prism with some extras built on top of it that is really meant for a XAML app. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. I intend to integrate Blazor pages with XAML native pages. This decision stems from the complexity of certain Blazor components and a monolithic Blazor page I already have, which would require significant time and resources to convert to native Maui XAML. 90% of the pages will be in XAML. My query pertains to whether Prism or Shiny framework is necessary for leveraging additional features such as background jobs and HTTP downloads, as Prism is a tool with which I have limited familiarity. Additionally, I’ve encountered a bug while using the Shiny templates. When clicking “create project” inside the imports file, there appears to be broken code “@endif”. Furthermore, in .NET 8, the shared folder is no longer included in the solution. As a result, in imports for .NET 8, I have to manually remove the usage of the Shared folder. |
Beta Was this translation helpful? Give feedback.
-
2.4.1 fixes the issues you've reported. Thank you. You don't need Shiny Framework to use the rest of Shiny. |
Beta Was this translation helpful? Give feedback.
-
Issue Description:
When utilizing the Shiny Lib Visual Studio Templates in a fresh Maui Blazor project with the Shiny Framework selected, an issue arises where Prism fails to create a new window. This occurs despite successful compilation, but upon running the application, an exception is thrown with the message:
Steps to Reproduce:
Create a new project in Visual Studio using Shiny Templates.
In the next tab "Additional Information" configure the project as in the image below.
Build the application.
Run the application.
Expected Behavior:
Prism should successfully create a new window as specified in the code without throwing an exception.
Actual Behavior:
An exception is thrown upon running the application, indicating that Prism failed to create a new window.
Environment:
.NET Version: 8
Shiny Lib Visual Studio Templates: Latest version [2.4.0]
Visual Studio: Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.9.4
Additional Information:
I have ensured that all dependencies and packages are up to date, including the latest version of the Shiny Lib Visual Studio Templates.
dotnet new --install Shiny.Templates
Solution Explorer overview:
Beta Was this translation helpful? Give feedback.
All reactions