Jump to content

Create server plugin setting page


Recommended Posts

Posted

I forgot: IHasWebPages :D

Posted

So you are all set now?

  • 3 months later...
pmathbliss
Posted

If anyone else is still having troubles with this. I had to add the reference html into the project.

 

If you are using the Roku plugin as a template.

https://github.com/MediaBrowser/roku-bif/blob/master/RokuMetadata/RokuMetadata.csproj

  <ItemGroup>
    <None Remove="Configuration\configPage.html" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="Configuration\configPage.html" />
  </ItemGroup>

Unload your plugin project,

Add these elements, pointing to the location of the settings page.

Reload the project

Build.

 

When you add the html page to visual studio, it doesnt automatically add the reference, so it wont be in your build.

Posted (edited)

Are you setting the HTML page as an embedded resource?

Edited by chef
Posted

Correct, yes it needs to be manually marked as an embedded resource.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...