自从我设置构建服务器以来已经有一段时间了,所以也许我忘记了一些东西,或者 .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 FilesMSBuildMicrosoftVisualStudiov11.0WebApplicationsMicrosoft.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 FilesMSBuildMicrosoftVisualStudiov11.0WebApplicationsMicrosoft.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.
那么,我需要在构建服务器上放置什么才能构建项目.我宁愿不必安装完整的 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 2008 Box 上适用于 Windows 8 的 Windows 软件开发工具包 (SDK).如果您在该页面上进一步阅读,您将看到标有Windows Vista 和 Windows Server 2008 上的 .NET Framework 4.5 SDK 工具"的标题.这告诉你:
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:
这篇关于在构建服务器上构建没有 Visual Studio 的 ASP.NET 4.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!