构建ASP.NET 4.5没有Visual Studio的生成服务器上 [英] Build ASP.NET 4.5 without Visual Studio on Build Server

查看:162
本文介绍了构建ASP.NET 4.5没有Visual Studio的生成服务器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它已经有一段时间,因为我设置一个生成服务器,所以也许我忘了的东西或者.NET 4.5是我这样做是与上一次的任何版本不同,但这里是我的问题。

Its been a while since I setup a Build Server so maybe I've forgotten something or maybe .NET 4.5 is different from whatever version I did this with last time, but here is my problem.

我试图安装一个构建服务器监视源代码控制库。每当有新的变化,我希望服务器拉变化和建设该项目。如果没有错误,我要部署站点到构建服务器上运行一个网站。

I'm trying to setup a build server to monitor a source control repository. Whenever something changes, I want the server to pull the changes and build the project. If there are no errors, I want to deploy the site to a web site running on the build server.

在过去,当我这样做,我认为我能做到这一点已经只有.NET安装,但是当我尝试建立这个项目,我得到一个错误,C:\\ Program Files文件\\的MSBuild \\微软\\的VisualStudio \\ 11.0 \\ web应用\\ Microsoft.WebApplication.targets缺少的,如果我去看看我可以看到它缺少。其实有没有的Visual Studio 11的目标文件。

In the past when I did this, I thought that I was able to do this having only .NET installed, but when I try to build this project I get an error that "C:\Program Files\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" is missing, and if I go and look I can see that it is missing. In fact there are no Visual Studio 11 targets files.

很多心思和挠头之后,我走了出去,并得到了的Windows 8 / .NET 4.5 SDK的思想在.NET 4.5 SDK可能会安装自己需要的目标文件,但除非我安装时,没有错弄好了。

After a lot of thought and head scratching, I went out and got the "Windows 8/.NET 4.5 SDK" thinking that the .NET 4.5 SDK might install the targets files that I needed, but it did not unless I installed it wrong somehow.

那么,什么才是我需要把生成服务器上,以获得该项目的建设。我想preFER不具有安装完整的Visual Studio 2012

So, what do I need to put on the Build Server in order to get the project to build. I would prefer not to have to install the full Visual Studio 2012.

推荐答案

我的问题是有关安装的 Windows软件开发工具包(SDK)的Windows 8 的在Windows 2008盒。如果您在页面上继续读下去,你会得到标有.NET框架4.5 SDK工具在Windows Vista和Windows Server 2008标题这告诉你:

My problem was related to installing the Windows Software Development Kit (SDK) for Windows 8 on a Windows 2008 Box. If you read further on the page, you will get to a heading labeled ".NET Framework 4.5 SDK Tools on Windows Vista and Windows Server 2008." This tells you to:


  1. 支持的操作系统上运行的Windows SDK的Windows 8安装程序(例如,Windows 7或Windows 8)。

  2. 选择指定位置屏幕上的选项如下:下载Windows SDK的安装在单独的计算机上

  3. preSS下一步按钮。

  4. 回答加入客户体验改善计划(CEIP)屏幕上的问题。

  5. 在下一屏幕上,选择.NET框架4.5软件开发工具包功能。取消选择所有其他功能,可以不选。

  6. 选择下载按钮。

  7. 转至下载位置(在步骤2中指定),并找到以下.NET框架4.5 SDK工具安装程序文件:
    sdk_tools4.msi,
    sdk_tools4.cab

  8. 您可以将这些文件复制到Windows Vista或Windows 2008 Server计算机您的组织中。这些文件需要拷贝到同一个目录在Windows Vista或Windows 2008 Server的计算机。
    注意:不要重新分配你的组织,或者任何其他安装程序的一部分这些文件

  9. 在Windows Vista或Windows 2008 Server计算机上,在这里查看许可条款。

  10. 检查.NET框架4.5是否已安装在计算机上。否则,下载并从www.microsoft.com安装.NET Framework 4.5。

  11. 打开一个命令提示符具有管理员权限。

  12. 转到那里的.NET Framework 4.5 SDK工具安装程序文件被复制的目录。

  13. 使用命令行安装的.NET Framework 4.5 SDK工具:
    MSIEXEC / I sdk_tools4.msi VSEXTUI = 1

这篇关于构建ASP.NET 4.5没有Visual Studio的生成服务器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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