在云服务的TFS构建中没有创建cspkg [英] No cspkg created in TFS build for Cloud Service

查看:101
本文介绍了在云服务的TFS构建中没有创建cspkg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已开始使用TFS Build and Release将云服务推出到Azure。构建似乎工作正常,但它不会创建一个cspkg,所以当我们运行该版本时,它无法找到该文件。构建包含 

We have started using TFS Build and Release to get out Cloud Services out to Azure. The build seems to work ok, but it does not create a cspkg, so when we run the release it can't find the file. The build contains 


  • NuGet Installer
  • Visual Studio构建
  • Visual Studio测试
  • 索引源和发布符号
  • 复制文件
  • 发布构建工件

当我检查文件夹时,我看不到drop文件夹中的所有cspkg文件。构建步骤中是否缺少一步?我们宁愿不将云服务部署为构建的一部分,并将其保留用于发布,但不确定要正确创建
云包的内容。

When I check the folder i don't see any cspkg files in the drop folder. Is there a step missing in the build steps? We would rather not have the cloud service deployed as part of the build and keep it for release, but not sure what is going to create the cloud packages properly.

谢谢

Eamonn

推荐答案

嗨Eamonn,

Hi Eamonn,

您需要构建并发布ccproj项目以生成cspkg文件。

You need to build and publish ccproj project to generate cspkg file.

构建步骤:


  1. NuGet restore ** \ * .sln
  2. 构建解决方案** \ * .sln
  3. 构建解决方案** \ * .ccproj,MSBuild参数: / t:Publish / p:TargetProfile =
  1. NuGet restore **\*.sln
  2. Build solution **\*.sln
  3. Build solution **\*.ccproj, MSBuild Arguments: /t:Publish /p:TargetProfile=


(targetProfile)/ p:DebugType = None / p:SkipInvalidConfigurations = true / p:OutputPath = bin \ / p:PublishDir ="
(targetProfile) /p:DebugType=None /p:SkipInvalidConfigurations=true /p:OutputPath=bin\ /p:PublishDir="


(build.artifactstagingdirectory)\\"
  • 发布构建工件(发布路径:
  • (build.artifactstagingdirectory)\\"
  • Publish Build Artifacts (Path to publish:

  • 这篇关于在云服务的TFS构建中没有创建cspkg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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