51 Replies
And how are you publishing the project?
I need to make my visual studio code into an exe
file
but when I go to debug I can’t see it
@Angius
Publish a .NET console application using Visual Studio - .NET
Learn how to use Visual Studio to create the set of files that are needed to run a .NET application.
When I press publish I see something different
@Angius
in visual studio
press the green arrow button
Yes
so you're able to start the program in visual studio right?
Yes
go to your app in windows explorer
yes
show me
Okay
(Pressing the green arrow produces a debug build, not a final optimized exe. You want to publish your app to get that)
ye but he said before he didnt even see debug
so let's make sure we see that .exe
then we can publish
what to take picture of
the windows explorer window
its in another language
what do u want me to show u in ther
e
the debug?
i want to see you navigate to bin, debug, then .net
and see whats in that folder

its not the right project tho
well that should be a brand new .exe
if you just ran the program in Visual Studio
when i press it its just blank code tho
that .exe is a month old
if you build your project in visual studio it should make a new one
can we be on call and ill sharescreen while u type what to do
go to dev-vc-0
ok
press start
your program closes immediately?
yes
is that intentional?
o ok
i see
ok
no idk
is it because you're hitting escape or something?
i only press on start
ok well thats code that you probably have to fix then lol
but anyway
go to the right window in visual studio
right click BonusProject
then open in windows explorer
open folder in file explorer
at the bottom
no its an option
right click BonusProject
open in file explorer
"open folder in file explorer"
go to bin
that is your project
if someone doesnt have visual studio can they open it
they should be able to
if not they just need something called ".net 6 runtime"
its the middle one?
its the top one
double click
open
ok in your code
at the end of what you're doing
do "Console.ReadLine()"
at the very end of Main
good
press start
now open the .exe
in the folder
not the .exe.config, the .exe
top
there
now if you want to "publish" your build
which honestly for this isn't necessary
i want them to also see the code
follow the docs that the guy above linked you
if you want them to see the code then you can link them your .cs file
that's not in bin/debug
when i press publish it shows me something else
press finish
it shows me a different thing from him
press finish
yes
go to publsih again
ok good
go to the directory in windows explorer
directory?
directory = folder
which
right click on the project
go to visual studio
its hebrew
go to visual studio
how do i send the teacher
make a google drive file
attach your .exe
then the .cs file
like this?
it doesnt show the right page
thank you very much
np