© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
23 replies
Caeden

Github actions failing to run project (dotnet run)

> dotnet run
Failed to create CoreCLR, HRESULT: 0x80070057
> dotnet run
Failed to create CoreCLR, HRESULT: 0x80070057

In the github workflow

> dotnet version
8.0.101
> dotnet version
8.0.101

This is the csproj which may be the problem
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

</Project>

Current on windows os and when running
dotnet run
dotnet run
in the dir it works perfectly fine - github action ran from ubuntu/

This is the github action
name: Test dotnet package

on:
    push:

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        dotnet-version: [ '8.0.x' ]

    steps:
      - uses: actions/checkout@v4
      - name: Setup dotnet ${{ matrix.dotnet-version }}
        uses: actions/setup-dotnet@v3
        with:
          dotnet-version: ${{ matrix.dotnet-version }}
      - name: Display dotnet version
        run: dotnet --version
      - name: Run project
        working-directory: ./simulation
        run: dotnet run
name: Test dotnet package

on:
    push:

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        dotnet-version: [ '8.0.x' ]

    steps:
      - uses: actions/checkout@v4
      - name: Setup dotnet ${{ matrix.dotnet-version }}
        uses: actions/setup-dotnet@v3
        with:
          dotnet-version: ${{ matrix.dotnet-version }}
      - name: Display dotnet version
        run: dotnet --version
      - name: Run project
        working-directory: ./simulation
        run: dotnet run
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Unable to run dotnet project
C#CC# / help
3y ago
Dotnet webapi test failing on GitHub Workflow
C#CC# / help
12mo ago
Best way to run dotnet c# application in background Github actions while running postman tests
C#CC# / help
2y ago
Issue with Github Actions when using Node & Dotnet together
C#CC# / help
12mo ago