Appveyor,GitHub,repo 中的多个项目
Appveyor, GitHub, multiple projects in repo
我正在尝试只构建一个文件夹(见上文)。我在该文件夹中有以下 YML 文件:
version: '0.0.{build}'
image: Visual Studio 2017
configuration: Release
build: off
notifications:
- provider: Email
to:
- keith@sol3.net
subject: CI build 0.0.{build} failed!
on_build_success: false
on_build_failure: true
on_build_status_changed: false
init:
# Best practice (Windows line endings different to Unix/Linux)
- cmd: git config --global core.autocrlf true
install:
appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/v4.0.0/nuget.exe
before_build:
# Display .NET Core version
- cmd: dotnet --version
# Change to specific project folder
- cmd: cd Sol3.Infrastructure
# Display minimal restore text
- cmd: dotnet restore Sol3.Infrastructure.csproj --verbosity m
build_script:
- cmd: dotnet build Sol3.Infrastructure.csproj
- cmd: dotnet pack -c Release /p:PackageVersion=0.0.{build}
after_build:
# For once the build has completed
on_finish :
# any cleanup in here
deploy: off
不断收到太多 SLN/PRJ 文件的错误。还注意到它没有使用这个文件,因为版本与 Appveyor 本身的默认设置相匹配。
应用程序的 appveyor.yml 文件:
version: 1.0.{build}
build:
verbosity: minimal
appveyor 可以做到吗? Appveyor 是最好的选择吗?任何指导?
这是我的沙箱(现在很小),我有几个项目,希望每个项目都有自己的 appveyor.yml 文件。我也有 SLN 文件,这些是我切换到 VSCode 之前来自 VS2017 的工件。我想我现在应该删除那些,直到我需要将 SLN 放在一起...
默认情况下,AppVeyor 在您的仓库根目录中检查 appveyor.yml
或 .appveyor.yml
。如果您需要指定自定义文件名或自定义路径(相对于 repo 根目录),则需要在常规项目设置中的 Custom configuration .yml file name
字段中执行此操作。更多信息是 here。现在可能发生的情况是,AppVeyor 不知道 Sol3.Infrastructure
中的 YML 文件,而是使用默认配置搜索 VS 解决方案或要构建的项目。
旁注:
- nuget 是 pre-installed
- 我建议使用相对于构建文件夹的路径,而不是
做
CD
- 无需在
on_finish
进行清理,每个构建都在瞬态 VM 上运行,
构建完成后立即删除
我正在尝试只构建一个文件夹(见上文)。我在该文件夹中有以下 YML 文件:
version: '0.0.{build}'
image: Visual Studio 2017
configuration: Release
build: off
notifications:
- provider: Email
to:
- keith@sol3.net
subject: CI build 0.0.{build} failed!
on_build_success: false
on_build_failure: true
on_build_status_changed: false
init:
# Best practice (Windows line endings different to Unix/Linux)
- cmd: git config --global core.autocrlf true
install:
appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/v4.0.0/nuget.exe
before_build:
# Display .NET Core version
- cmd: dotnet --version
# Change to specific project folder
- cmd: cd Sol3.Infrastructure
# Display minimal restore text
- cmd: dotnet restore Sol3.Infrastructure.csproj --verbosity m
build_script:
- cmd: dotnet build Sol3.Infrastructure.csproj
- cmd: dotnet pack -c Release /p:PackageVersion=0.0.{build}
after_build:
# For once the build has completed
on_finish :
# any cleanup in here
deploy: off
不断收到太多 SLN/PRJ 文件的错误。还注意到它没有使用这个文件,因为版本与 Appveyor 本身的默认设置相匹配。 应用程序的 appveyor.yml 文件:
version: 1.0.{build}
build:
verbosity: minimal
appveyor 可以做到吗? Appveyor 是最好的选择吗?任何指导?
这是我的沙箱(现在很小),我有几个项目,希望每个项目都有自己的 appveyor.yml 文件。我也有 SLN 文件,这些是我切换到 VSCode 之前来自 VS2017 的工件。我想我现在应该删除那些,直到我需要将 SLN 放在一起...
默认情况下,AppVeyor 在您的仓库根目录中检查 appveyor.yml
或 .appveyor.yml
。如果您需要指定自定义文件名或自定义路径(相对于 repo 根目录),则需要在常规项目设置中的 Custom configuration .yml file name
字段中执行此操作。更多信息是 here。现在可能发生的情况是,AppVeyor 不知道 Sol3.Infrastructure
中的 YML 文件,而是使用默认配置搜索 VS 解决方案或要构建的项目。
旁注:
- nuget 是 pre-installed
- 我建议使用相对于构建文件夹的路径,而不是
做
CD
- 无需在
on_finish
进行清理,每个构建都在瞬态 VM 上运行, 构建完成后立即删除