zoukankan      html  css  js  c++  java
  • Jenkins_A sample for msbuild file

    <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
      <PropertyGroup>
        <AssemblyVersion Condition="'$(AssemblyVersion)'==''">1.0.0</AssemblyVersion>
        <Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
      </PropertyGroup>

      <ItemGroup>
        <ProjectsToBuild Include="..\Jenkins\Data-DMDevelopment.sln" />
      </ItemGroup>
      <ItemGroup>
        <Jolen Include="..\Lib\Jolen\AssemblyInfo.cs" />
      </ItemGroup>
      <Target Name="Build" DependsOnTargets="SetVersionInfo">
        <MSBuild Projects="@(ProjectsToBuild)" Properties="Configuration=$(Configuration)" />
      </Target>
      <Target Name="SetVersionInfo">
        <Attrib Files="@(Jolen)" Normal="true" />
        <FileUpdate Files="@(Jolen)"
                                    Regex="AssemblyFileVersion\(\&quot;.*&quot;\)\]"
                    ReplacementText="AssemblyFileVersion(&quot;$(AssemblyVersion)&quot;)]" />
      </Target>
    </Project>

  • 相关阅读:
    【正则】限定符-总
    【正则】字符类-总
    【正则】元字符-总
    【正则】基本知识点
    Linux 核心系统命令目录
    股票模型
    windows 批量删除用户
    cka 英文考试题
    cka 英文考试题
    李永乐说股票
  • 原文地址:https://www.cnblogs.com/flysun0311/p/2624680.html
Copyright © 2011-2022 走看看