TV Server .dll change for 01/07/09 SVN (1 Viewer)

huha

Extension Developer
January 3, 2008
890
556
Home Country
Germany Germany
With the release of the latest SVN my BackupSettings plugin broke due to the changed .dll files. When i recompiled my plugin with the latest .dll files everything worked, but this version does no more support MP1.0 final. I expect this will be now an issue for all Tv server plugins. So my questions are:

1) Is there a way to set up the compiler in Microsoft Visual C# 2008 Express Edition to do a quick change between 2 different sets of .dll files? Is there a source code example?

2) The new .dll file required some code changes like
old dll: IList channels = Channel.ListAll();
new dll: IList<Channel> channels = Channel.ListAll();

Can I set up my source code with a global switch to change between the settings?

I do not want to maintain two separate code versions for MP1.0 final and the latest SVNs. Please help!
 

huha

Extension Developer
January 3, 2008
890
556
Home Country
Germany Germany
  • Thread starter
  • Moderator
  • #2
I found a solution by creating two projects, one with the old .dll files and one with the new ones. In the c# source files I am using variables by
#if(MP10)
IList hybridcardgroups = CardGroup.ListAll();
#elif(SVN)
IList<CardGroup> hybridcardgroups = CardGroup.ListAll();
#endif
I am doing code development in the SVN propject folder and copy the .cs source files to the MP10 folder, which is then compiled with the variable MP10 activated.
 

Users who are viewing this thread

Top Bottom