Good morning, just a couple of questions for morning (i'm at work so i've impossible to test answers now):
1. I tried creating an entry in onlinevideosites.xml (the one in .../programdata/...) with my new util but it does't appear. What i do: create the new entry in onlinevideosites.xml, launch the project, then Mediaportal starts, then i close Mediaportal. Then i enter in Mediaportal configuration by dektop direct access. I can see the site but the dropdownlist value is empty because the site doesn't exist. In the logs there are logs saying that the site doesn't exist. Maibe i have to do something to "deploy" my new site? I will try to see if i could decompile the source code of the dll to see if really the new site deploys there but i don't know really if i need more things to do to appear the new util. For now i've started modifiying another one that exists to start developing.
2. I want to improve the site Antena3 originaly developed by bleh. If i see in onlinevideosites.xml i see that this uses an utility named Antena3 but i can't found that in the source code of the project. ¿Maibe i'm confused and made a mistake searching that or there is something that i really don't understand correctly?
Thank you!
Casing of the utilname correct? The util-name in the onlinevideos.xml should be withouth the "Util" part, and the class you create in C# should have "Util" in it.
Also, is the class you created public? Are you sure your newly compiled dll is in the correct directory?
The utilname is correct (with Util part in C# name and without it in onlinevideosites.xml). The date/time of the dlls is updated everytime i start a new debug and i can see the changes that i make in other sites, so it is correct. But... maibe the class is not public?? I have to check it.
And what about the second question i've made? Can you explain me it? Thank you
Second question: It is possible to create a dll and publish it, without committing the sourcecode to the project, so that's probably what happened here.
mmm, and that dll, where does have to be placed once imported from global sites? Cause i searched it where the project dlls are and there is no dll with that name (but i suspect that it will be there with another name...). It's just to try to decompile it because i tried searching the developer (bleh) in the forum users to contact him but there is no user with that name... Is there any posibility to contact him?
Thank you
mmm, i've been doing some test with different results. I "never" developed in C# so the following question may be very noob:
I've done some changes to the source code but no changes apeared when i debug the app. I've viewed the source code of the dll with the sites and the new site doesn't appear (like changes doesn't take effect). Then i've changed from AssemblyInfo AssemblyVersion and AssemblyFileVersion and the developed site appeared now in the dll. So, do i have to do this every time i do a change or what is the way to develop a new site seeing the changes i'm makeing everytime i launch the project?
I remenber firt time i made a change in a developed site and changes where visible in Mediaportal and i didn't changed anything from AssemblyInfo so this is not the reason, but i don't know why now happened the explained avobe
Make sure the output folder for the dll project where you edit the c# is set to the correct subfolder where MediaPortal installed / you are debugging it from. Teh dll should be overwritten after compile and the changes visible on next debug start.