C
C#2y ago
Pibbles

❔ How do VS solutions work and CLI

Basically I wanna learn more about how a solution in VS actually works, I've made many applications with it but if you ask me about what the hell the .proj file is I'd be lost, and if you asked me to setup the solution with just CLI I'd probably start crying. I just need some links/pointers to where I can learn this stuff, the inner workings of it all
4 Replies
Thinker
Thinker2y ago
dotnet new console -n "MyProject" dotnet new sln dotnet sln add MyProject is how you manage sln files through the CLI A solution file is just a collection of projects. A project is essentially a collection of related classes, either as a class library or an executable program. A csproj file is what defines a single project, it defines things like what libraries and other projects it depends on, the type of project it is, some metadata like target framework and language version, and much much more.
Pibbles
PibblesOP2y ago
well dang thanks
WhiteBlackGoose
And for the rest, you can look up dotnet CLI docs dotnet CLI can't do everything, so often you will need to edit the proj file yourself
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server