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