1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ServUO is upgrading to .net 4.6.1

Discussion in 'Announcements' started by dmurphy, Dec 5, 2016.

  1. dmurphy
    Offline

    Admin ServUO Developer

    Joined:
    Feb 10, 2014
    Messages:
    1,009
    Likes Received:
    191
    Hello everyone.

    In the coming weeks, with your feedback we will be upgrading ServUO to .net 4.6.1

    What does this mean? Well it means we will have access to a plethora of newer framework features that are not available to us right now such as c#6, roslyn, async etc. This will make it easier for us to develop cleaner code and faster too.

    We have been using .net 4.0 for far too long, it is almost a decade old now. It is time we join others in the future!

    For now this release will be in its own branch while we test it and make sure it works as intended. This process will last a few weeks so long as we do not come up against any major issues. The more you guys chip in with reports, including reports that you have come across no issues the faster we can merge it into master.

    Does this mean older scripts will stop working? Nope, all older code is fully supported, visual studio might tell you that the code has issues but that is just because there are better ways for it to be done, it will still work as before.

    You can find the new branch here or in your favorite git client.
     
    • Like Like x 3
    • Two Thumbs Up Two Thumbs Up x 1
  2. Tasanar
    Offline

    Platinum Donator

    Joined:
    Oct 16, 2014
    Messages:
    2,471
    Likes Received:
    74
    And eventually this new one will be merged with the main repo?

    Can't wait!
     
  3. dmurphy
    Offline

    Admin ServUO Developer

    Joined:
    Feb 10, 2014
    Messages:
    1,009
    Likes Received:
    191
    That is the plan! Testing should last a few weeks so long as we get some reports. If we do not get any reports and do not come across any issues in our own tests we will assume all is right in the world and merge it into master.
     
  4. Tasanar
    Offline

    Platinum Donator

    Joined:
    Oct 16, 2014
    Messages:
    2,471
    Likes Received:
    74
    What are some potential things you would like to see tested? Could it open new exploits in some code?
     
  5. PyrO
    Offline

    PyrO Active Member

    Joined:
    Jan 27, 2015
    Messages:
    708
    Likes Received:
    30
    While I want it, I want to point out that mono is not supporting async completely.
    So that could bring issues for the linux developer on here.

    Unless the missing parts aren't that important (as in other ways to solve it inside mono or simply not often used parts in general). But that I have no idea about.
     
  6. dmurphy
    Offline

    Admin ServUO Developer

    Joined:
    Feb 10, 2014
    Messages:
    1,009
    Likes Received:
    191
    There are no specific things that need to be tested. Personally I do not think there will be any issues at all with this upgrade and everything should work as expected. It is the unknown things that I am interested in, especially for mono users.
     
  7. dmurphy
    Offline

    Admin ServUO Developer

    Joined:
    Feb 10, 2014
    Messages:
    1,009
    Likes Received:
    191
    They say the async stack is only partially supported but I have not come across any issues myself when using async in a mono environment.
     
  8. PyrO
    Offline

    PyrO Active Member

    Joined:
    Jan 27, 2015
    Messages:
    708
    Likes Received:
    30
    Great, didnt use mono a lot so I was not sure about that. Cant wait for offical C#6 support :)
     
  9. Fraz
    Offline

    Fraz Active Member

    Joined:
    Apr 2, 2015
    Messages:
    224
    Likes Received:
    28
    Not sure if its changed since several months back.. the only issue I encountered upgrading was having it display the proper version numbers, but I searched around and found a work around..
     
  10. zerodowned
    Online

    Moderator ServUO Developer

    Joined:
    Jun 28, 2014
    Messages:
    1,549
    Likes Received:
    182
    tested on Win 8 and runs normally
     
  11. Fraz
    Offline

    Fraz Active Member

    Joined:
    Apr 2, 2015
    Messages:
    224
    Likes Received:
    28
    • Like Like x 1
  12. Tasanar
    Offline

    Platinum Donator

    Joined:
    Oct 16, 2014
    Messages:
    2,471
    Likes Received:
    74
    Now since it is newer will it be more resource intensive? I am just wondering.
     
  13. dmurphy
    Offline

    Admin ServUO Developer

    Joined:
    Feb 10, 2014
    Messages:
    1,009
    Likes Received:
    191
    Nope, theoretically it should run lighter and faster. I already see gains when the server is compiling the scripts assembly, it is assembled about 50% faster.
     
    • Winner Winner x 2
    • Agree Agree x 1
  14. Talow
    Online

    Talow Active Member

    Joined:
    Aug 30, 2014
    Messages:
    293
    Likes Received:
    28
    *waits for the official before starting migration*
     
  15. zerodowned
    Online

    Moderator ServUO Developer

    Joined:
    Jun 28, 2014
    Messages:
    1,549
    Likes Received:
    182
    ai.imgflip.com_21gr1.gif
     
    • Funny Funny x 1
  16. Cody
    Offline

    Cody Member

    Joined:
    May 28, 2016
    Messages:
    36
    Likes Received:
    1
    Wondering if anyone else had ran into an issue with windows 7 home? I have installed 4.6.2 .Net yet when i compile both my main and roslyn file load up 4.0.3. I had tried repairing .net and reinstalling nothing seems to work.
     
    • Bravery Award Bravery Award x 1
  17. dmurphy
    Offline

    Admin ServUO Developer

    Joined:
    Feb 10, 2014
    Messages:
    1,009
    Likes Received:
    191
    Even when compiling with 4.5 or 4.6 the environment being reported back will always show 4.0.xxxxxx.xxxxxx

    Please read the remarks on this page to see why. https://msdn.microsoft.com/en-us/library/system.environment.version(v=vs.110).aspx
     
  18. darklotus
    Offline

    darklotus Member

    Joined:
    Feb 18, 2016
    Messages:
    56
    Likes Received:
    9
    Just thought id mention there is no problem porting this change over to runuo if you still run an old core and want to take advantage of new .net features.
    Its pretty much just replace your ScriptCompiler.cs and drop the rosyln stuff in the bin folder.
     
  19. Kevin
    Offline

    Kevin New Member

    Joined:
    May 26, 2016
    Messages:
    8
    Likes Received:
    0
    Will we be able to use .net core (instead of Mono) on Linux systems?
     
  20. dmurphy
    Offline

    Admin ServUO Developer

    Joined:
    Feb 10, 2014
    Messages:
    1,009
    Likes Received:
    191
    I doubt it.
     
Similar Threads: ServUO upgrading
Forum Title Date
Windows Support Upgrading ServUO May 27, 2017
ServUO Discussion ServUO needs Refactoring and categorizing Aug 25, 2017
ServUO Discussion ServUo Aug 4, 2017
Windows Support Please need help Error SerVUO Aug 3, 2017
Looking For Help Looking for help (bridge servuo<->xenforo) Jul 22, 2017
Windows Support ServUO behind proxy server. Jul 21, 2017
ServUO Discussion Runic reforging updated needed on ServUO Jul 18, 2017