我正在尝试配置TeamCity 5.0以在我的一个项目上运行“发布”目标.
当我在VS 2008中加载解决方案,并点击项目的发布时,网站正在很好地构建 – 服务器上的文件自身出现等.但是当我通过TeamCity Sln2008转轮运行sln文件时,TeamCity返回:
[Project“Portal.csproj”(发布目标):]跳过不可发布的项目.
有人有同样的问题吗?
菲利普
解决方法
您可以创建自己的简单构建文件.例如:
<Project DefaultTargets="Build" Toolsversion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$(MSBuildExtensionsPath)\msbuildcommunitytasks\MSBuild.Community.Tasks.Targets"/> <PropertyGroup> <PackageFolder>C:\Builds\AppServer\Actual</PackageFolder> </PropertyGroup> <Target Name="Build" DependsOnTargets="BeforeBuild"> <MSBuild Projects="TeamWork-AppServer.sln" Targets="Rebuild" Properties="Configuration=Debug;OutDir=$(PackageFolder)\;"></MSBuild> </Target> </Project>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。