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