in code and my editor said the project is using 4.0. I said to go ahead and upgrade to the latest version that uses that operator, but then realized DFU might not be using C#6. What can I do??.
What version of C# is DFU using?
- MeteoricDragon
- Posts: 141
- Joined: Mon Feb 12, 2018 8:23 pm
What version of C# is DFU using?
I tried using the Null-propogation operator
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: What version of C# is DFU using?
We're on .NET 3.5, might upgrade to .NET 4 one day.
You can't use it right now, sorry.
You can't use it right now, sorry.
- MeteoricDragon
- Posts: 141
- Joined: Mon Feb 12, 2018 8:23 pm
-
- Posts: 201
- Joined: Sat Sep 15, 2018 9:49 am
Re: What version of C# is DFU using?
True, but they're ways that let you type a lot less and lead to clearer code. I was quite a bit bummed when I realised I couldn't use the null propagator a few weeks back. When you code all day every day, you really start to appreciate these conveniences...I am finding that many versions past 3.5 just introduce new ways to do the same thing you could do with other code before.
-
- Posts: 17
- Joined: Mon Dec 10, 2018 12:00 am
Re: What version of C# is DFU using?
Any particular issues with .NET 4.x that prevent its usage?
It's worth mentioning that in 2018.3 4.x is the new default and 3.5 is being deprecated (and will be removed entirely sometime in the 2019 cycle).
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: What version of C# is DFU using?
No issue that i'm aware of. Upgrading it now might be counterproductive since the game is almost out of prealpha, but i would like to eventually move to new version, too.hurleybird wrote: ↑Mon Dec 10, 2018 7:04 pmAny particular issues with .NET 4.x that prevent its usage?
It's worth mentioning that in 2018.3 4.x is the new default and 3.5 is being deprecated (and will be removed entirely sometime in the 2019 cycle).
It's up to Interkarma to decide if and when.
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: What version of C# is DFU using?
It's very likely we'll shift to .NET 4.x next year when taking on Unity 2019. We've made a lot of changes this year going from Unity 5.5 up to 2018.2, and there has been a lot of disruption to mod creators in particular. Every change, no matter how small it seems, always has unexpected ramifications for a project this size. And there are no substantial benefits to adopting .NET 4.x at this time either.
Right now my priorities are fixing bugs and locking down remaining features to get us out of pre-alpha.
Right now my priorities are fixing bugs and locking down remaining features to get us out of pre-alpha.
-
- Posts: 17
- Joined: Mon Dec 10, 2018 12:00 am
Re: What version of C# is DFU using?
I know what you mean about version upgrades, having a project of comparable size to this going from 4.6 all the way up to 2018.2, and each new version seems to break at least a couple things. I didn't run into any issues moving from 3.5 to 4.x though, and the language features have been very useful.
- Nystul
- Posts: 1501
- Joined: Mon Mar 23, 2015 8:31 am
Re: What version of C# is DFU using?
I am looking forward to terrain improvements and Parallel.For instructions
but no hurry regarding upgrading for now
but no hurry regarding upgrading for now