通过TFS 2015部署ASP.NET 5(vNext) [英] ASP.NET 5 (vNext) Deployment via TFS 2015

查看:107
本文介绍了通过TFS 2015部署ASP.NET 5(vNext)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试通过新的工具链来构建ASP.NET 5(vNext)CoreCLR网站并将其部署到服务器群集.在新的编译更改和对TFS的更改之间,我不确定现在如何构建和部署所有内容.情况如下:

We're trying to work through the new tool chain for building and deploying an ASP.NET 5 (vNext) CoreCLR web site to a server cluster. Between the new compilation changes and the changes to TFS, I'm not sure how everything now gets built and deployed. The scenario is as follows:

  1. 用于源代码控制和构建代理的本地TFS
  2. 通过IIS托管在CoreCLR下定位ASP.NET 5

问题是:

使用TFS进行持续集成构建(并希望部署到本地IIS服务器),如何构建和部署这种新的应用程序类型?

Using TFS for continuous integration builds (and hopefully deployment to an on-premise IIS server), how does one build and deploy this new application type?

似乎MSBuild可能仍然可以指向.sln文件,以便间接调用dnu.exe,对吗?那是现在这样做的合适方法吗?

It seems like MSBuild might still be usable to point at a .sln file so as to indirectly invoke dnu.exe, is that correct? Is that the appropriate way to do that now?

我们应该运行脚本生成任务而不是运行dnu.exe吗?

Should we be running a scripted build task instead to run dnu.exe instead?

如何部署这些新的CoreCLR?只是直接复制到远程计算机上的目录吗?

How are these new CoreCLR builds deployed? Just a straight copy to a directory on a remote machine?

这是一个新应用程序,我们使用了多层应用程序体系结构,其中DAL和业务逻辑位于各自的CoreCLR项目中(如果有区别的话).

This is a new application and we're using a multi-layered application architecture, where the DAL and Business logic are in their own CoreCLR projects, if that makes a difference.

预先感谢您对情况的了解.

Thanks in advance for shedding some light on the situation.

推荐答案

我们最终要做的是:

  1. Powershell脚本"prebuild.ps1",根据先前的答案和Microsoft部署指南: Vanilla MSBuild版本.没有开关或特殊设置.

    Vanilla MSBuild build. no switches or special settings.

    Powershell脚本执行xUnit测试运行程序.我们使用了 http://fluentbytes上的这篇文章中的指南. com/running-xunit-test-with-asp-net-dnx-and-tfs-2015-build/

    Powershell script to execute xUnit test runner. We used guidance from this post at http://fluentbytes.com/running-xunit-test-with-asp-net-dnx-and-tfs-2015-build/

    运行"dnu publish"的Powershell脚本.这将创建整个Web应用程序结构的目录.

    Powershell script to run "dnu publish". This creates a directory of the entire web application's structure.

    "Windows文件复制"任务,用于将在#4中创建的目录结构部署到测试环境中的所有目标计算机.

    "Windows File Copy" task to deploy the directory structure created in #4 to all of the target machines in the test environment.

    这篇关于通过TFS 2015部署ASP.NET 5(vNext)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆