VS 2010 Express Q (1 Viewer)

komita

Portal Member
August 19, 2011
32
2
Home Country
Hey guys, I am in the process of getting familiar with MP code so that hopefully in the future I can contribute something to this great thing we've got.

I was wondering, how much of a restriction is using VS 2010 Express instead of a older professional version of VS for Media Portal development?
I have done it in the past to start something only to find half-way in that I am limited to what I can do by the tools I;m using so I would like to start this right.
 

Smeulf

Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Hey guys, I am in the process of getting familiar with MP code so that hopefully in the future I can contribute something to this great thing we've got.

    I was wondering, how much of a restriction is using VS 2010 Express instead of a older professional version of VS for Media Portal development?
    I have done it in the past to start something only to find half-way in that I am limited to what I can do by the tools I;m using so I would like to start this right.

    Hi Komita, and thanks for your interest into MP2 !

    MP2 is a VS2010 C# project. It was converted some time ago, and the subprojects will move to .Net 4 in the next month hopefully.

    So you won't be able to open MP2 solutions with and older version of Visual Studio like 2008 or older.

    About Express Edition : it permit mostly to work, but there's 2 main problems in my opinion (and ther's a lot more missing features) :

    - It doesn't support "Solution Folders", and makes the dev a little more difficult, to find the right projetc.

    - It doesn't provide "per thread" debug, and as MP2 is a multithreading software, it's harder to solve mltithreading issues

    I would recomand you to take a look on the MP2 structure into VS Pro (even a demo version) before using Express Edition, to be more familiar with the projects structure.

    I hope it's up to date and I answer to your question.

    Cheers.

    Smeulf.
     

    komita

    Portal Member
    August 19, 2011
    32
    2
    Home Country
    Wonderful, that explains it clear as day!
    I did think that a newer .Net might have crossed somebody's mind but it is good to know that it will definitely be used in MP2

    thanks Smeulf!!
     

    Albert

    MP2 Developer
  • Premium Supporter
  • February 18, 2008
    1,297
    1,130
    46
    Freiburg im Breisgau, Germany
    Home Country
    Germany Germany
    AW: VS 2010 Express Q

    I wouldn't say we'll move to .net 4 in one month as Smeulf said, but we'll move in the next time. I already tried a move some time ago but there are still several problems in some of the projects which first need to be solved before we can move. We have a branch with my first try; there you see that it doesn't compile.
    If anyone wants to help with that, please do the move and tell me what you had to do/what you have done to get it working with .net 4.
     

    Smeulf

    Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Re: AW: VS 2010 Express Q

    I wouldn't say we'll move to .net 4 in one month as Smeulf said, but we'll move in the next time. I already tried a move some time ago but there are still several problems in some of the projects which first need to be solved before we can move. We have a branch with my first try; there you see that it doesn't compile.
    If anyone wants to help with that, please do the move and tell me what you had to do/what you have done to get it working with .net 4.

    Sorry, my fault, I ment to write "in the next monthS" ;)
     

    Smeulf

    Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Re: AW: VS 2010 Express Q

    If anyone wants to help with that, please do the move and tell me what you had to do/what you have done to get it working with .net 4.

    Hi Albert,

    It seems I've been able to switch all projects to .net 4 :

    For the client, the steps are :

    - Change all projects to .Net 4 target
    - In Mediaportal.UI project, change "PresentationCore" and "WindowsBase" references to use the version 4.0.0.0
    - In Mediaportal.Client, change app.config from
    Code:
    <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>

    to

    Code:
    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>

    This last step is needed because VideoPlayers uses old 2.x assemblies as reference, like DirectShowLib-2005 and SlimDX, and we have to tell the application it's allowed to load an another version of the CLR (V2 in this case). More informations : <startup> Element

    For the Serveur part :

    - Change all projects to .Net 4 target
    - In Mediaportal.Backend project, change "WindowsBase" reference to use the version 4.0.0.0

    There's just a warning when building about
    Code:
    protected AsynchronousMessageQueue _messageQueue;
    in Mediaportal.Server project, MainForm.cs, witch is not CLS consistent. Seems the field should be private insted of protected... :confused:

    I think it requiries more tests, but at least, now it builds, and starts properly. I did not checked the all application, but I can play a video from the server (attached on the same machine) and I don't have any error in the log.

    Btw, I think we may consider using SlimDX for .Net4 instead of the .Net2 version.

    Cheers.

    Smeulf.
     

    komita

    Portal Member
    August 19, 2011
    32
    2
    Home Country
    Good job on the .net 4 compile Smeulf!

    About the MP 2.0 release ... how accurate is the 2016 timeline? I mean with the end of the world coming in 2012 :D
    Just curious
     

    Users who are viewing this thread

    Top Bottom