I add github action to my repo to test my branch and then merge it to the master but it gives me this error :
MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
there are 4 projects in solution
so how can I solve this problem ?
name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-restore