在Github中,工作流持续集成如何在代码推送时在Github中构建asp.net 4.5?

问题描述 投票:0回答:1

我已经在github的Actions选项卡上创建了一个构建工作流,它将通过代码推送来构建项目。我已经创建了build.yml文件,像这样

name: CI
on: [push]
jobs:
  build:
    runs-on: windows-latest
    name: Build

    steps:
    - uses: actions/checkout@v1
    - name: Run a one-line script
      run: Run dotnet MyProjectName
    - name: Run a multi-line script
      run: |
        echo Add other actions to build,
        echo test, and deploy your project.```


But its .net framework 4.5 project so this command is for .net core. 
Is there any other command for building the application on Github server.
asp.net github build workflow github-actions
1个回答
0
投票

Windows最新版本已经安装了所有构建工具。您可以直接使用msbuild代替dotnet core。这是对Windows最新版本和其他受支持的操作系统上安装的所有工具的引用

https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners#windows-server-2019

© www.soinside.com 2019 - 2024. All rights reserved.