❔ Visual Studio build solution problem
Hi, i just finished writing my c# console app with .Net Core but i cant run it in other folder thats not the bin/debug/net7.0/
38 Replies
crashing too fast
lemme see
same
tries to start and then it crashes
add the dll to the location where u want to run it as well.. might just want to add a shortcut to the application executable.
nope, same thing
nothing
I have no idea what that video is supposed to convey
What should the application be doing
What is the code
We have so little useful information here
Open the tab
and
work
That tells me literally nothing
I showed you the app working
in the same video
You can see how the windows logo on the taskbar moving
so you can think that something tried to open and then closed instantly
Ohhhhh i see now that was fast
Ya that's not how an exe works with dotnet lol
The exe isn't standalone
i also tried moving it with the other files
The exe is literally just a small wrapper around running
dotnet yourdll.dll
in other folder
Move the entire folder
i tried
same result
Then we'd need to see the code
Why are you trying to move the debug folder anyway
That's a weird ass thing to try and do
I wanna upload to github
Wut
No
Yes
Like as a release?
yee
Your build output should not be in a repo
And the debug folder is not a release build lol
what do u refer?
Like it's just for you to debug
If you want to publish and application you have to... publish it
some tutorial u wanna show me?
dotnet publish command - .NET CLI
The dotnet publish command publishes a .NET project or solution to a directory.
i thought that with that .exe everything would work
But if you have hardcoded paths in your code you won't be able to do anything
No lol, the exe doesn't do anything
All it does it's just execute the command to run the dll
lol
So if you move the exe file it can't find the dll anymore and there's nothing to run
damn
thanks bro
didnt know that
What should i use?
No clue I've never used a vs publish window
Maybe with the command, can u help me?
I mean it depends on what you want
A single.exe
that will run my code
as it does in the build
It doesn't do that in the build right now it calls the exe
So you want a single file publish, but do you want an AOT compilation or a bundled runtime
Okay, gonna find out
Thank you so much!
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.