English 中文(简体)
具体建设步骤后如何运行团队城市集会Info补丁器
原标题:How to run Team City AssemblyInfo patcher after specific build step

构建一个项目的通常程序是,一旦所有文件都从源控制中拖下来,即运行 AssemblyInfo 补丁器。

在使用 CodeSmith时,我们对此有问题,问题在于我们有两个步骤。

<强 > 步骤 1 - 运行代码Smith 模板构建

生成视觉工作室解决方案Name

<强 > 步骤2 - 建设视觉工作室项目

这造就了我们的建筑。

我们希望在步骤1完成后运行 AssemblyInfo补丁器, 因为在代码Smith 模板生成之前不会成为 AssemblyInfo.cs 文件 。

有没有办法这样做?

我们在Windows 7上使用TeetCity 7.0.3和2010视觉工作室(SP1)。

谢谢

问题回答

我会把你们的建筑配置分成两部分 包括艺术品 以及他们之间的直线依附关系

<强度 > 建筑配置 1 :

  1. 运行 CodeSmitth 模板构建

  2. 将解决方案文件作为文物发布

<强度 > 建筑配置 2 :

  1. Resolves artifacts of Build Configuration
  2. Applies AssemblyInfo patcher

是的,你可以从以下三种方法之一实现这一点:

  1. 右键点击您在视觉工作室工程内部的 csp 文件( vs) 。 然后确保检查“ 构建” 上的生成。 最后, 您只需要在团队使用的用户下安装并激活您的构建服务器上的生成器 。

  2. 跟踪 < a href=> http://docs. codemithtools.com/display/ Generator/ Using+a+Generator+Project+from+MSBuild" rel=“nofollow” > 这些步骤可以手动在构建 上生成。 最后, 您只需要在您的构建服务器上安装并激活生成器, 在团队使用的用户下安装并激活 。

  3. 使用 < a href=" "https://github.com/loresoft/msbuildingtask" rel=“nofollow” >MsBuildCommonity Tasks , 由CodeSmith雇员共同撰写, 将生成一个 AssemblyInfo文件, 更多。

Thanks -Blake Niemyjski

I had the same problem, I ve found the solution here (using build dependencies) https://stackoverflow.com/a/30423872/4888142





相关问题
PLINQO Primary key AND index problem

I ve two tables, Profile and ProfileCategory ProfileId INT IX UserId UNIQUEIDENTIFIER PK (For one-to-one mapping with aspnet_membership) CompanyName Description ProfileCategory CategoryId ProfileId ...

C# CodeSmith LINQ to SQL question DELETE Operation

In a project I am working on I need to delete a "user" from my database. This "user" has two tables that reference it s foreign key. When hard deleting I am trying to delete all records from Table A ...

特殊产品使用手工艺或手工制作的通用代码?

我有《刑法》和《教义》工具。 我的服务器中有SPS。 我想产生VB。 特殊产品净代码(不包括表格)。 哪些模板将对此提供支持? 请分享您是否知道任何模板......

维护法典

我如何建立一个像这样具有活力的区域:

Visual Studio T4 vs CodeSmith

I ve been using CodeSmith for the past 2 years and love what it does for me. However, I also know about T4 which is built in to Visual Studio and can do some pretty cool stuff too. Based on ...

Generate Info (wrapper) Class from stored procedure

I am in a crucial project and I am trying to speed up the development phase by using codesmith for generating the business class DAL and info class for the tables of my project. There are about 50 ...

热门标签