Hi, we have this sample repository
and want to make this PR pass
Currently this is the workflow we are using
The pull request doesn’t pass because the “Build” step fails with the error message
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
So it seems the workflow can’t find the project files. Although I tried to cd into the project with this
What is the workflow starting point? How can I fix the workflow?
The sample tests pass locally. Thanks in advance!
You can use the
working-directory keyword to specify the working directory for a
I’m not familiar with .NET, but I assume you’ll have to do that for each of the steps that call
Thank you very much!
A working solution for me is
name: Test PR
- uses: actions/checkout@v2
- name: Setup
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal