devenv "MySolution.sln" /build Release /project MyProject /projectconfig Release
上述用法主要用於編譯C++專案,若要編譯C#或VB.NET專案,可以使用msbuild
devenv "MySolution.sln" /build Release /project MyProject /projectconfig Release
上述用法主要用於編譯C++專案,若要編譯C#或VB.NET專案,可以使用msbuild
SELECT p.value AS __color__,
id AS ticket, summary, version, milestone, t.type AS type,
(CASE status WHEN 'assigned' THEN owner||' *' ELSE owner END) AS owner,
Datetime(Datetime(changetime,'unixepoch'), 'localtime') as changed,
time AS created,
changetime AS _changetime, description AS _description,
reporter AS _reporter
FROM ticket t, enum p
WHERE status IN ('new', 'assigned', 'reopened')
AND p.name = t.priority AND p.type = 'priority'
ORDER BY changetime desc
changetime原先的內容為Julianday,轉成可閱讀的unix時間格格式後,再轉換成localtime。
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:variable name="report.list" select="//我的測試報告"/>
<xsl:template match="/">
<!-- 有內容才顯示報告 -->
<xsl:if test="count($report.list)>0">
<table class="section-table" cellpadding="2" cellspacing="0" border="0" width="98%">
<tr>
<!-- 根據實際欄位個數調整colspan -->
<td class="sectionheader" colspan="5">
我的測試報告: 共有<xsl:value-of select="count($report.list)"/>份報告
</td>
</tr>
<tr>
<xsl:if test="position() mod 2=0">
<xsl:attribute name="class">section-oddrow</xsl:attribute>
</xsl:if>
<xsl:if test="position() mod 2!=0">
<xsl:attribute name="class">section-evenrow</xsl:attribute>
</xsl:if>
<td>欄位1標題</td>
<td>欄位2標題</td>
<td>欄位3標題</td>
<td>欄位4標題</td>
<td>欄位5標題</td>
</tr>
<xsl:apply-templates select="$report.list"/>
</table>
</xsl:if>
</xsl:template>
<!-- 開始格式化報告內容 -->
<xsl:template match="報告">
<tr>
<!-- 美化 -->
<xsl:if test="position() mod 2=0">
<xsl:attribute name="class">section-oddrow</xsl:attribute>
</xsl:if>
<xsl:if test="position() mod 2!=0">
<xsl:attribute name="class">section-evenrow</xsl:attribute>
</xsl:if>
<!-- 資料 -->
<td class="section-data" valign="top">
<xsl:value-of select="欄位1資料"/>
</td>
<td class="section-data" valign="top">
<xsl:value-of select="欄位2資料"/>
</td>
<td class="section-data" valign="top">
<xsl:value-of select="欄位3資料"/>
</td>
<td class="section-data" valign="top">
<xsl:value-of select="欄位4資料"/>
</td>
<td class="section-data" valign="top">
<xsl:value-of select="欄位5資料"/>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates select="//unittest-results"/>
</xsl:template>
<xsl:template match="unittest-results">
<html>
<body>
<h3>
UnitTest++測試了<xsl:value-of select="@tests"/>筆資料,<xsl:value-of select="@failedtests"/>筆失敗,費時<xsl:value-of select="@time"/>秒
</h3>
<table>
<tr>
<th>Suite</th>
<th>測試</th>
<th>費時</th>
<th>訊息</th>
</tr>
<xsl:for-each select="test">
<xsl:if test="count(failure)>0">
<tr bgcolor="#ffaaaa">
<td>
<xsl:value-of select="@suite"/>
</td>
<td>
<font color="green">
<xsl:value-of select="@name"/>
</font>
</td>
<td>
<xsl:value-of select="@time"/>
</td>
<td>
<xsl:value-of select="failure/@message"/>
</td>
</tr>
</xsl:if>
<xsl:if test="count(failure)=0">
<tr>
<td>
<xsl:value-of select="@suite"/>
</td>
<td>
<font color="green">
<xsl:value-of select="@name"/>
</font>
</td>
<td>
<xsl:value-of select="@time"/>
</td>
<td></td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>