75 Replies
im trying to code on godot with vs
but
this error appears
remove the #
thats the thing i dont have#
this is the code
What is the path of the project?
uh how do i
check
oh
well my godot project is
that is where my project is
Here's the
#
OH the name of the file is the issue?!
As a general rule, avoid using special characters for code, paths, everything
Ideally, avoid even using whitespace
thank you
ok i remade the project and renamed it to CS project but it still comes up with same error
ok well not the same
but
this is the new
Well, you created a classlib project
place
you did a library not an executable
a library?
Yes
Something that other projects can use
this?
Not a project in itself
Ah, okay
Did Godot generate an
.sln
file anywhere?
If so, open that
Not the individual .cs
filesye thers an sln
im not sure what that is
Close Visual Studio, and double-click that sln
Yeah
Just agree, that's whatever
Just line endings
i got the same error again
You can't run the library from visual studio
Godot should take care of that
how godot is supposed to use c#
Does Godot have any documentation on using C#?
If so, follow that
It does
Godot Engine documentation
C#
C# basics, C# features, C# API differences to GDScript, C# collections, C# Variant, C# signals, C# exports, C# global classes, C# style guide.
https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_features.html# yeah but i got incredibly confused on it
Godot Engine documentation
C# features
This page provides an overview of the commonly used features of both C# and Godot and how they are used together. Type conversion and casting: C# is a statically typed language. Therefore, you can'...
You don't run your Godot C# script from visual studio
Godot itself should take care of that
so i code it in vs
then run it in godot
Yes
im trying that rn but it doesnt come up with the console messge
nothing here
Maybe Console.WriteLine doesn't works for Godot
as I see in the doc it's
GD.Print("Hello from C# to Godot :)");
https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_basics.html^
is it saved ?
oh i have to save the vs first then run?
Yes
ok i saved it but its not coming up
by save you mean pressing save all right
Did you make sure you've attached the script and ran the game?
its been 4 hours since ive realised that ive been coding in the wrong language and i still cant get the ide to work lmao( 😭 )
Wrong langauge?
woah
that worked
hello is helloing
<:MadoThumbsUp_MM:406514447973351444>
yeah i was coding in gdscript
Oh
and my teacher told me we were supposed to code in c#
look at this 😭
on teams
left me in the dust
🤔
mb more context
search a tutorial or something to learn how to use c# with godot
Have you used C# before?
some
im very inexperienced using it outside of basic things
by basic things i mean like making some mathematical function
using the mathematical operations or writing in the console
i mainly use it for math
Is your assignment specifically to work with C# in Godot?
kinda yes
its the ocr A level syllabus
im in the uk
odd assignment but sure
our teacher wants us to do c# anyway and ergo we are all under his knuckle
its also my first time making a game
gd script was a hella alot easier i understood more lol
Yeah, a lot easier than C# if it's your first language
Especially since it's literally designed for the engine
😭
learning in c# will maybe help me in the furture though
im going to get a job in programming anyway after uni
or something to do with nvidea lol
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.