C
C#7mo ago
Osgboy

Running simple C# program with minimal documentation

Alright so I've been coding with python for several years but know absolutely nothing about C# and am trying to figure out how to run this program https://github.com/scorpdx/ddstronk/tree/master. The documentation is minimal but the program itself also looks extremely simple. Could I get a pointer on how I would go about running this? Something like from CMD with a directory as an argument?
15 Replies
Angius
Angius7mo ago
Just going into the src/DDStronk directory and running dotnet run should work Provided you have .NET 5 SDK installed Should you have a newer SDK installed, try swapping the version in the .csproj file Chances are it will just work
Osgboy
OsgboyOP7mo ago
so just change net5.0 to net7.0.405?
No description
No description
Angius
Angius7mo ago
net7.0 yeah
Osgboy
OsgboyOP7mo ago
hmm still got same error without yellow warnings looks like an issue with the code itself
Angius
Angius7mo ago
Yellow is just a warning, should still work
Osgboy
OsgboyOP7mo ago
yeah i just mean that the yellow warning stuff is fixed now but the red error message is the same
No description
Osgboy
OsgboyOP7mo ago
ok i fixed the issue with a fresh install prob messed things up when i installed pfim package into the folder
Angius
Angius7mo ago
Why were you manually installing any packages in the first place? dotnet run restores all packages
Osgboy
OsgboyOP7mo ago
i thought that the code wouldn't work if i didn't install pfim
Angius
Angius7mo ago
No need to download any dlls or whatever you were doing
Osgboy
OsgboyOP7mo ago
hmm well the mysteries of C# will remain forever inscrutable to me thanks for the help
Angius
Angius7mo ago
Anytime :Ok:
Pobiega
Pobiega7mo ago
dotnet has something called "nuget" which is similar to pip in the python world. the thing is that nuget is much better integrated with the build tools, so it runs automatically as part of dotnet build and dotnet run and will "restore" (sync and download new dependencies) automatically
The Fog from Human Resources
Calling NuGet similar to pip is an insult to NuGet :SCchaos:
Pobiega
Pobiega7mo ago
absolutely :p
Want results from more Discord servers?
Add your server