Skip to content

Is Github Workflow Action support C# DotNet Now? (Not .NET Core, I'm asking .NET) #26932

Discussion options

You must be logged in to vote

Hi @yang09701194 ,

Github actions supports any languages including C# DotNet. The file (dotnet-core.yaml) refered is a dotnet core workflow yaml file sample.

If you’d like to build .Net project, you can directly call ‘msbuild.exe’ which is installed on github hosted runner already, code sample as below:

jobs:
  build:
    runs-on: windows-2019
    steps:
      - name: checkout
        uses: actions/checkout@v1
      - name: Build DotNET35
        run: |
           cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
           .\MSBuild.exe $Env:GITHUB_WORKSPACE\pathtoyoursolutionorproject

Or use below actions 'warrenbuckley/Setup-MSBuild’:

jobs:
  bui…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants