-
We have an existing Prism app and we are trying to integrate Shiny in it. We are taking sample code from the Jobs sample. After adding the startup code and the calls to assembly: Shiny.ShinyApplication we start getting multiple errors:
It looks like Shiny is trying to override methods that we already override/use and it is trying to call some non-existing methods. How can this be solved or is there a guide how to integrate Shiny in an existing Prism app that already has code in some methods? UPDATE: I figured out that Shiny creates partial classes under References -> Analyzers -> Shiny.Generators. These already contain some of the overrides, e.g. OnCreated, which then call the methods reported as missing, e.g. ShinyOnCreated. The issues are:
I still cannot compile anything as the methods are missing, so even the old boilerplate does not work.. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
They do exist. You have to look at the nuget package. It targets monoandroid11+. You need to adjust your targets for them to be picked up
There are two examples. The first without codegen and the second for how to integrate with Prism. Please make sure you look here in the future before sending questions |
Beta Was this translation helpful? Give feedback.
-
Returning to the question about Prism: The sample at https://github.com/shinyorg/samples/tree/main/Integration-Prism uses a Prism app with a parameterless constructor. The class PrismApplication contains a second constructor with a parameter of type IPlatformInitializer (and even another one with two parameters). Is it possible to make Shiny's generated code call that specific constructor? |
Beta Was this translation helpful? Give feedback.
They do exist. You have to look at the nuget package. It targets monoandroid11+. You need to adjust your targets for them to be picked up
There are two examples. The first without codegen and the second for how to integrate with Prism. Please make sure you look here in the future before sending questions
https://github.com/shinyorg/samples/tree/main/Boilerplate-NoCodeGen
https://github.com/shinyorg/samples/tree/main/Integration-…