#Code mode setup tutorial : problem with dotnet (.net) version

73 messages · Page 1 of 1 (latest)

knotty flax
#

when I try to install CelesteMod.Template as said in this guide : https://github.com/EverestAPI/Resources/wiki/Code-Mod-Setup, I get this message : "You must install or update .NET to run this application." But like, I installed dotnet 7.0.410 already. Here is the full error message :

"
You must install or update .NET to run this application.

App: C:\Program Files\dotnet\sdk\7.0.410\dotnet.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '7.0.20' (x64)
.NET location: C:\Program Files\dotnet\

No frameworks were found.
"

Could someone tell me what to do?

GitHub

Celeste modding resources collected and maintained by the community. Feel free to submit a PR or edit the wiki. - Create new page · EverestAPI/Resources Wiki

marble ore
#

Did you install the SDK it links to or do you just have a Runtime?

knotty flax
#

I'm not sure... here is a screenshot of the download page where I got it :

desert hedge
#

show the output of dotnet --list-sdks

knotty flax
#

7.0.410 [C:\Program Files\dotnet\sdk]

desert hedge
#

did you just close and reopen the command prompt?

marble ore
desert hedge
#

did you have a window open before running the install command

unreal grotto
#

install the 8th one imo

knotty flax
#

I will reopen the command prompt

desert hedge
#

do that

#

close and reopen it

knotty flax
#

it doesn't work still

unreal grotto
#

get .net 8 sdk instead

desert hedge
#

7 will work

unreal grotto
#

why

#

its simpler

desert hedge
#

and they'll have two sdks installed

#

what if it still doesnt work

unreal grotto
#

how are you even going to diangose why is that version too low now

#

just overkill it and be happy

desert hedge
#

screenshot the command you're running if you could

#

and the output

knotty flax
desert hedge
#

mmh this seems fine

#

what if you restart your pc

knotty flax
#

Ok I will come back in a sec after the restart

desert hedge
#

so true

marble ore
#

Is it normal for it to say 7.0.20 even tho 7.0.410 is installed, where does the 20 version come in

desert hedge
#

i dont know what the thought pattern behind them is but

#

yea

#

wait the .20 might be just the desktop/app runtimes

knotty flax
#

the good old restart!

desert hedge
#

@unreal grotto told you

knotty flax
#

wait that's french my bad

desert hedge
#

that's fine

knotty flax
#

but it says it works

desert hedge
#

it's just the regular "welcome to .net" stuff

#

i can already tell it worked

#

what is your ide?

knotty flax
#

vs code

desert hedge
#

do you have the c# dev kit extension installed

knotty flax
#

yes I think

desert hedge
#

check

#

most people you'll see use visual studio

knotty flax
desert hedge
#

including the guide if you see screenshots of it

desert hedge
knotty flax
#

I did some unity game dev before so

desert hedge
#

i should probably note visual studio and visual studio code are two completely different things

knotty flax
#

but that .net thing has always been a mystery : you just need it

knotty flax
desert hedge
#

yes

knotty flax
#

is it better to use visual studio for celeste?

desert hedge
knotty flax
#

I want to make a game in celeste. More specifically a subnautica-like game.

#

I thought the idea of making a game in a game is fun

desert hedge
#

.net is a common language runtime (clr)
c# is not the only language that runs on .net; it also supports visual basic .net and F#
it's pretty complicated, but put simply: when compiled, all of the source code gets converted to common intermediate language (cil or il for short)
decompilers, like ilspy let you view that il - it looks and feels similar to assembly
when executing your compiled .net program, that il bytecode is interpreted by the just-in-time compiler (aka jit), which is what actually runs your code

desert hedge
#

il is also language agnostic - which means that it doesn't matter whether you wrote a hello world in c#, f# or visual basic .net, the il be (roughly) the same
conversely, you can compile a c# program, open it up in a decompiler and tell it to decompile that same program into visual basic .net code - and it will do it

knotty flax
#

ok so there are multiple levels of programming and compilers/decompilers can transform the instructions

desert hedge
#

this is a pretty technical explanation, so don't worry

knotty flax
#

And you can go through a multitude of steps to reach an endgoal

desert hedge
#

the most important thing to you right now is ".net is what lets you write and run c#"

#

all the rest of the steps are completely transparent to you

#

and you don't need to worry about them, because .net handles it all

#

all you need to do is just write c#, compile it and run it

knotty flax
#

Okay. Thanks for the explanation!

desert hedge