Building TV Plugin (3 Viewers)

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,566
    2,938
    Nuenen
    Home Country
    Netherlands Netherlands
    I think you are making it more complicated than it needs to be.
    Cloning the repo and openining the TvLibrary.sln in vs2015/vs2019 compiles just fine here.
    And again, you probably don't need to compile the tvservice for you to develop a plugin for it
     

    vapourEyes

    Portal Pro
    July 31, 2013
    144
    43
    Home Country
    United Kingdom United Kingdom

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,566
    2,938
    Nuenen
    Home Country
    Netherlands Netherlands
    That is indeed the correct one.
    Also tried running the batchfiles and I too got the 'BuildReport\msxsl' is not recognized so at my end it's also a bit different from the build server from Mediaportal. But that hasn't stopped me from developing/debugging plugins
     

    vapourEyes

    Portal Pro
    July 31, 2013
    144
    43
    Home Country
    United Kingdom United Kingdom
    1583674223619.png


    I get this same result no matter how much git cloning, resetting branches, adding project references and trying to mess with the assembly references.
    Weird that I get this.

    I deleted the project folder, then git clone.
    Open mediaportal.sln, which fails for assembly references - even on nuget package restore.
    1583674547798.png


    Open the .sln file for tvlibrary which built to success.
    Open tvplugin and get the assembly reference issues.
    1583674707580.png
     
    Last edited:

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,566
    2,938
    Nuenen
    Home Country
    Netherlands Netherlands
    aha, now we're getting somewhere.
    I see that indeed it is not 100% correctly configured. the tvplugin debug references the release version of the common stuff.
    Best bet is to try build MediaPortal.sln in debug and in release mode and then try to build the tvplugin
     

    vapourEyes

    Portal Pro
    July 31, 2013
    144
    43
    Home Country
    United Kingdom United Kingdom
    1583681126462.png


    I think this could be the last problem to resolve.
    LastFMLibrary within mediaportal
     

    vapourEyes

    Portal Pro
    July 31, 2013
    144
    43
    Home Country
    United Kingdom United Kingdom
    Hi, thanks for all the help.

    I can finally report success with:
    MediaPortal.sln build.
    TvLibrary.sln
    TvPlugin.sln.

    Only needed a single line change to TvPlugin after all that.

    Its yielded the tvplugin.dll @ v 1.24.0.

    Perfect in summary.
     

    vapourEyes

    Portal Pro
    July 31, 2013
    144
    43
    Home Country
    United Kingdom United Kingdom
    The solution.
    Satisfy the PrePreqs: Compile and Build PrePreq's

    Install Visual Studio 2017.
    Ensure you only have the team mediaportal assembly library, microsoft offline and nuget.
    Install NuGet tools into VS2017.

    Last but not least...
    Dont bother with 2013, 2015, 2019 in my instance.
     

    Users who are viewing this thread

    Top Bottom