C
C#2mo 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
Angius2mo 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
Osgboy2mo ago
so just change net5.0 to net7.0.405?
No description
No description
Angius
Angius2mo ago
net7.0 yeah
Osgboy
Osgboy2mo ago
hmm still got same error without yellow warnings looks like an issue with the code itself
Angius
Angius2mo ago
Yellow is just a warning, should still work
Osgboy
Osgboy2mo ago
yeah i just mean that the yellow warning stuff is fixed now but the red error message is the same
No description
Osgboy
Osgboy2mo ago
ok i fixed the issue with a fresh install prob messed things up when i installed pfim package into the folder
Angius
Angius2mo ago
Why were you manually installing any packages in the first place? dotnet run restores all packages
Osgboy
Osgboy2mo ago
i thought that the code wouldn't work if i didn't install pfim
Angius
Angius2mo ago
No need to download any dlls or whatever you were doing
Osgboy
Osgboy2mo ago
hmm well the mysteries of C# will remain forever inscrutable to me thanks for the help
Angius
Angius2mo ago
Anytime :Ok:
Pobiega
Pobiega2mo 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
Somgör from Human Resources
Calling NuGet similar to pip is an insult to NuGet :SCchaos:
Pobiega
Pobiega2mo ago
absolutely :p