Skip to content

Try specifying solutionname #3

Try specifying solutionname

Try specifying solutionname #3

Workflow file for this run

name: dotnet-desktop
on: [push, pull_request]
jobs:

Check failure on line 5 in .github/workflows/dotnet-desktop.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dotnet-desktop.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
build:
runs-on: windows-latest
env:
Solution_Name: ValheimServer.sln
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore $env:Solution_Name
- name: Build
run: dotnet build $env:Solution_Name --no-restore --configuration Release
- name: Run StyleCop Analyzers
run: dotnet build $env:Solution_Name --no-restore --configuration Release /p:TreatWarningsAsErrors=true