Assuming that project file location is src/MyProject/MyProject.csproj
, then Install dependencies
step should be:
- name: Install dependencies run: dotnet restore working-directory: src/MyProject
References
https://stackoverflow.com/questions/61188284/github-action-dotnetcore-sln-and-project-in-same-folder