C#C
C#3y ago
mamascomp

❔ Github Actions on .NET SDK 8.0.100-preview.5.23303.2

Hello, when I use SDK 6, everything works, but on 8 it does not. Locally it works.

'''
name: .NET

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
  • uses: actions/checkout@v3
  • name: Setup .NET
    uses: actions/setup-dotnet@v3
    with:
    dotnet-version: 8.0.100-preview.5.23303.2
  • name: Restore dependencies
    run: dotnet restore
  • name: Build
    run: dotnet build --no-restore
  • name: Test
    run: dotnet test --no-build --verbosity normal
    '''
Does anyone have any idea what needs to be corrected? Thank you very much.
image.png
Was this page helpful?