小编lea*_*ion的帖子

获取单个字形指标(.net)

如何从选择的字体中获取有关单个字形的完整信息(例如Arial - >符号"A")

这张照片描述了我需要找到的变量:

字形指标

.net fonts glyph fontmetrics

8
推荐指数
1
解决办法
3411
查看次数

如何为元运行器提示TeamCity配置参数?

我想创建元运行器,它将要求用户选中复选框('prompt'配置参数)以确认部署到生产.它包含powershell脚本,用于验证是否选中了复选框.这是meta-runner的代码:

<?xml version="1.0" encoding="UTF-8"?>
<meta-runner name="Confirm deploy to production">
  <description>Force user to check checkbox to confirm deploy to production</description>
  <settings>
    <parameters>
      <param name="deploy.to.production.confirmation.checkbox" value="false" spec="checkbox description='Are you sure?' label='This is deployment to PRODUCTION environment.' uncheckedValue='false' display='prompt' checkedValue='true'" />
    </parameters>
    <build-runners>
      <runner name="Confirm deploy to production" type="jetbrains_powershell">
        <parameters>
          <param name="jetbrains_powershell_bitness" value="x86" />
          <param name="jetbrains_powershell_errorToError" value="false" />
          <param name="jetbrains_powershell_execution" value="PS1" />
          <param name="jetbrains_powershell_script_code"><![CDATA[trap
{
    write-output $_
    ##teamcity[buildStatus status='FAILURE' ]
    exit 1
}
write-host "##teamcity[message text='Starting confirmation validation...']"
if("%deploy.to.production.confirmation.checkbox%" -eq "false"){
    write-host "##teamcity[message …
Run Code Online (Sandbox Code Playgroud)

teamcity teamcity-9.0

5
推荐指数
1
解决办法
1270
查看次数

标签 统计

.net ×1

fontmetrics ×1

fonts ×1

glyph ×1

teamcity ×1

teamcity-9.0 ×1