Msbuild无法创建智能设备CAB项目

时间:2012-05-26 09:12:18

标签: msbuild teamcity vdproj smart-device teamcity-7.0

我正在尝试为智能设备应用程序设置TeamCity 7.0。我的visual studio解决方案包含两个项目:

  1. SmartRead - >移动应用程序
  2. SmartReadInstaller - >用于创建CAB文件的智能设备CAB项目
  3. 我的TeamCity配置似乎成功构建了SmartRead应用程序并创建了必要的工件。但是,似乎MSBuild无法处理SmartReadInstaller项目。 TeamCity构建日志说:

      

    MSBuild不支持vddproj,无法构建。

    以下是完整的构建日志供参考:

    [11:46:10]Checking for changes
    [11:46:10]Publishing internal artifacts
    [11:46:10]Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
    [11:46:10]Clean build enabled: removing old files from C:\TeamCity\buildAgent\work\e252314f72f0d569
    [11:46:10]Checkout directory: C:\TeamCity\buildAgent\work\e252314f72f0d569
    [11:46:10]Updating sources: server side checkout
    [11:46:11]Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:C:\TeamCity\buildAgent\work\e252314f72f0d569 /msbuildPath:C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe
    [11:46:11]in directory: C:\TeamCity\buildAgent\work\e252314f72f0d569
    [11:46:13]SmartRead.sln.teamcity: Build target: TeamCity_Generated_Build (3s)
    [11:46:13][SmartRead.sln.teamcity] TeamCity_Generated_Build (3s)
    [11:46:13][TeamCity_Generated_Build] MSBuild (3s)
    [11:46:13][MSBuild] SmartRead.sln: Build target: Rebuild (2s)
    [11:46:13][SmartRead.sln] ValidateSolutionConfiguration
    [11:46:13][ValidateSolutionConfiguration] Building solution configuration "Release|Any CPU".
    [11:46:13]SmartRead\SmartRead.csproj: Build target: Rebuild (2s)
    [11:46:13][SmartRead.sln] Rebuild (2s)
    [11:46:16][Rebuild] CallTarget
    [11:46:16][CallTarget] SmartReadInstaller:Rebuild
    [11:46:16][SmartReadInstaller:Rebuild] Warning
    [11:46:16][Warning] C:\TeamCity\buildAgent\work\e252314f72f0d569\SmartRead.sln warning MSB4078: The project file "SmartReadInstaller\SmartReadInstaller.vddproj" is not supported by MSBuild and cannot be built.
    [11:46:16]Process exited with code 0
    [11:46:16]Publishing internal artifacts
    [11:46:16][Publishing internal artifacts] Sending build.finish.properties.gz file
    [11:46:16]Publishing artifacts
    [11:46:16]Build finished
    

    请注意我使用Visual Studio(sln)运行器来构建我的应用程序。我该如何解决?如何为我的项目构建CAB文件?

1 个答案:

答案 0 :(得分:2)

MSBuild不支持VS部署项目。您可能需要考虑将安装程序移至WiX,因为下一版本的Visual Studio部署项目将变为obsolete

使用Devenv构建当前项目。