加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
appveyor.yml 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
江二十三 提交于 2020-04-13 17:18 . Update appveyor.yml
version: 1.0.{build}
image: Visual Studio 2019
configuration: Release
platform: Any CPU
assembly_info:
patch: true
file: '**\AssemblyInfo.*;**\SolutionInfo.cs;**\source.extension.cs'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
install:
- ps: >-
(new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
nuget restore GiteeVS.sln
Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion
Vsix-TokenReplacement src\common\SolutionInfo.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
$SDKConfigContent='namespace Gitee.Api { public static class SdkConfig { public static string client_id { get; set; } = "'+$env:client_id+'"; public static string client_secret { get; set; } = "'+$env:client_secret+'"; public static string username { get; set; } = ""; public static string password { get; set; } = ""; } }'
Set-Content -Path src\common\SDKConfig.cs -Value $SDKConfigContent
build_script:
- ps: msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
after_test:
- ps: Vsix-PushArtifacts | Vsix-PublishToGallery
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化