Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a .NET solution that have several projects, built in .NET Core and in the .NET 4.7.2. All those projects are built and run fine on my local environment.

However, when I push this solution to a GitHub, the build in the GitHub fails

error MSB3644: The reference assemblies for .NETFramework,Version=v4.7.2 were not found.

I examined the build_check.yml uploaded to GitHub, and noticed that this file is missing a reference to a .NET Framework 4.7.2.

I am posting the contents of the build_check.yml below. What is the right syntax to add .NET Framework 4.7.2 to it?

name: Build check

on:
  pull_request:

jobs:
  test:
    name: Build check
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v3
      with:
        dotnet-version: |
          6.0.x
          7.0.x
    - name: Restore packages for solution
      run: dotnet restore
    - name: Build solution
      run: dotnet build --no-restore -c debug
#    - name: Run tests
#      run: dotnet test --no-build -c debug


What I have tried:

I examined the build_check.yml uploaded to GitHub, and noticed that this file is missing a reference to a .NET Framework 4.7.2.
Posted
Updated 7-Jul-23 17:50pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900