【问题标题】:The "CSPack" task was not given a value for the required parameter "ServiceDefinitionFile"没有为“CSPack”任务提供所需参数“ServiceDefinitionFile”的值
【发布时间】:2015-12-13 19:38:46
【问题描述】:

我正在对新的 Visual Studio Online 构建系统进行 PoC,我设法为我的项目设置构建并运行单元测试,但是当我尝试构建 ccproj 以便在 Azure 中部署它时出现此错误:

##[error]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.5\Microsoft.WindowsAzure.targets(2930,5): Error MSB4044: The "CSPack" task was not given a value for the required parameter "ServiceDefinitionFile".

很奇怪,我只是拿了Deployment的模板并更改了ccproj的位置:

我google了一下,好像有几个人有同样的问题,有什么想法吗?

【问题讨论】:

    标签: azure msbuild azure-devops


    【解决方案1】:

    我可以通过在 Visual Studio Build(ccproj) 步骤的“MSBuild Arguments”中添加“/p:OutputPath=bin\”来重现此问题并解决它。

    以下是我的构建定义中的参数:

    /t:Publish /p:TargetProfile=$(targetProfile) /p:DebugType=None /p:SkipInvalidConfigurations=true /p:PublishDir="$(build.artifactstagingdirectory)\\" /p:OutputPath=bin\
    

    【讨论】:

      猜你喜欢
      • 2021-07-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-28
      • 2014-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多