从 SVN 存储库在 Teamcity 中创建 ASP.NET 网站工件

发布于 2024-08-09 02:36:01 字数 616 浏览 1 评论 0原文

我在工作中使用 TeamCity Professional 版本 4.5.4(内部版本 9071)来构建我的 asp.net Web 应用程序项目。

我的解决方案文件由多个项目组成(例如 Web 应用程序、单元测试、一些 Web 服务项目等)。

我想创建一个由我的 Web 应用程序组成的工件(其他可以暂时忽略),因此我在 teamcity 上进行了以下配置(偏离默认值):

  • 常规设置
    • 工件路径:trunk\project-src\intranet-webapp***=>WebAppArtifact
  • 版本控制设置 (SVN)
    • 自动向代理结账
  • (sln2008)
    • 目标:清洁发布

它可以很好地构建我的工件,但是有一个大问题:该工件将“.svn”文件夹和 .cs(C# 代码隐藏)文件保留在它。

我预计,通过运行程序中的“发布”目标,我将得到与 VS 2008 中的“发布项目”菜单完全相同的功能:将已编译的项目复制到某个位置,而无需代码隐藏文件和 .svn 文件夹。

谁能告诉我我缺少什么配置?

I'm using TeamCity Professional Version 4.5.4 (build 9071) at work to build my asp.net web application project.

My solution file consists of several projects (e.g. web application, unit tests, some web service project, etc).

I want to create an artifact consisting of my web application (the others can be ignore for now), so I have the following configuration on teamcity (deviating from the default values):

  • General Settings
    • Artifact Paths: trunk\project-src\intranet-webapp***=>WebAppArtifact
  • Version control settings (SVN)
    • Automatically checkout on agent
  • Runner (sln2008)
    • Targets: Clean Publish

It builds my artifacts just fine, but there is a big problem: The artifact keeps the ".svn" folders and the .cs (C# code-behind) files in it.

I expected that with the "Publish" target in my runner, I would have exactly what the "Publish project" menu in VS 2008 does: copies the compiled project to some location without the code-behind files and no .svn folders.

Could anyone tell me what configuration am I missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那一片橙海, 2024-08-16 02:36:01

如果您将在服务器上使用 checkout,则不会有 .svn 目录。

If you will use checkout on server, there will be no .svn directories.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文