sinshu / managed-doom

A Doom port written in C#
408 stars 62 forks source link

Trouble with compilation #10

Closed ghost closed 1 year ago

ghost commented 3 years ago

It says I need .net 3.1 for MeltySynth. I can't get 3.1 to appear in my target framework selection. Help would be greatly appreciated.

sinshu commented 3 years ago

Are you using Visual Studio? If you are using Visual Studio,

ghost commented 3 years ago

Sorry, it took me so long to respond. Yes, I am using Visual Studio 2019.

Here is a list of my target frameworks: 2021-06-30 18_40_16-

KoalaBear84 commented 3 years ago

Looks like you need the SDK for .NET 5 currently.

See: https://github.com/sinshu/managed-doom/blob/master/ManagedDoom/ManagedDoom.csproj there is "net5.0" which is the newer .NET "Core", not the older .NET Framework.

  1. https://dotnet.microsoft.com/download/dotnet
  2. Go to .NET 5
  3. Download the SDK for Windows

For current Windows 64-bit it's this one: https://dotnet.microsoft.com/download/dotnet/thank-you/sdk-5.0.301-windows-x64-installer

ghost commented 3 years ago

I've downloaded both the x86 and x64 versions and the list still hasn't changed. Yes, I have preview features on.

sinshu commented 3 years ago

This seems a problem of Visual Studio, so I cannot be of much help to you...

As far as I searched, some solutions are available in the following link: https://stackoverflow.com/questions/60843091/net-5-not-available-in-visual-studio-2019

ghost commented 3 years ago

I edited the csproj file and manually set the framework to "net50" and success!

DamianSuess commented 1 year ago

The latest version uses .NET 6. Just check the .csproj file. This issue should be closed