Stride Forums Archive

Use .NET 4.5 on the game project

7 posts, 2810 views, 2015-05-11 to 2015-05-12

Micle_Brick (Micle Brick) 2015-05-11 #1

Is there a way to change the .NET version of the game project to .NET 4.5?

Toaster 2015-05-11 #2

As far as I know it is .net 4.5 but the portable subset version of it. Your windows project should use the full .net 4.5 version. Using portable subset is to maintain cross platform support.

Micle_Brick (Micle Brick) 2015-05-12 #3 in reply to #2

But I need to use Lidgren for networking, and that doesn’t work. All the stuff from System.Net is missing.

xen2 (Virgile) 2015-05-12 #4

If your game is Windows only, that’s definitely something you could do. However, this is a manual process (Visual Studio doesn’t provide this tool, and neither does Paradox Studio).

Note that medium term, we will likely move from PCL to .NET Core, which features a much substantial subset of the .NET Framework.

Micle_Brick (Micle Brick) 2015-05-12 #5 in reply to #4

Yes my game is Windows only. What is the process for doing this?

Micle_Brick (Micle Brick) 2015-05-12 #6 in reply to #5

I got it working! I just created a new C# class library, and edited the game project until it was a normal class library too by comparing them.

xen2 (Virgile) 2015-05-12 #7 in reply to #6

That was the way I was going to recommend you, great you could do it by yourself!