DaMango
DaMango
Explore posts from servers
CC#
Created by DaMango on 7/1/2024 in #help
How to identify the correct .sln or .csproj file to build?
I was looking at building an existing project at work that has multiple .sln and .csproj files. However, I don't know which one i should be using. There is no documentation and the person I would ask is out on vacation for a week. I also want to try building/developing the project in VS Code instead of visual studio. I know its dumb, but i feel more comfortable knowing what cli commands are running instead of letting an IDE manage it. Eventually when I get more comfortable with dotnet and c# I imagine it would be good to use Visual Studio. How can I identify which file(s) to build and run? Is there likely an overarching one? I tried using dotnet build <insert_file> and dotnet run and it keeps saying theres too many .sln and .csproj files to choose from. When I select or build a couple individually then try to run, it still doesn't work... Are those the correct commands I should be running for local development? Where should I be looking to see which project file to build?
18 replies