Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2500

Cannot run build script with target of "Package"

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0
    • Affects Version/s: None
    • Component/s: None
    • None

      While investigating a dependency bug, I discovered that we cannot run the build script with a target of "Package." This step is a pre-req for releasing on NuGet. The process appears to break down in the ApiDocs stage, as shown in the enclosed error message.

      ========================================
      ApiDocs
      ========================================
      Executing task: ApiDocs
      Creating directory C:/Users/Vincent/driver2/artifacts/docs/ApiDocs-2.8.0
      Cleaning directory C:/Users/Vincent/driver2/artifacts/docs/ApiDocs-2.8.0
      Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
      Copyright (C) Microsoft Corporation. All rights reserved.Build started 2/4/2019 5:33:02 PM.
      Project "C:\Users\Vincent\driver2\Docs\Api\CSharpDriverDocs.shfbproj" on node 1 (Build target(s)).
      CoreBuildHelp:
        Building C:\Users\Vincent\driver2\Docs\Api\CSharpDriverDocs.shfbproj
        Initializing
        ValidatingDocumentationSources
      SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Bson.dll' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Docs\Api\CSh arpDriverDocs.shfbproj]
      SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Bson.xml' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Docs\Api\CSh arpDriverDocs.shfbproj]
      SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.Core.dll' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Docs\ Api\CSharpDriverDocs.shfbproj]
      SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.Core.XML' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Docs\ Api\CSharpDriverDocs.shfbproj]
      SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.dll' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Docs\Api\C SharpDriverDocs.shfbproj]
      SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.xml' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Docs\Api\C SharpDriverDocs.shfbproj]
      SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.GridFS.dll' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Doc s\Api\CSharpDriverDocs.shfbproj]
      SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.GridFS.xml' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Doc s\Api\CSharpDriverDocs.shfbproj]
      SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.Legacy.dll' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Doc s\Api\CSharpDriverDocs.shfbproj]
      SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.Legacy.xml' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Doc s\Api\CSharpDriverDocs.shfbproj]
      SHFB : error BE0042: You must specify at least one documentation source in the form of an assembly or a Visual Studio solution/project file [C:\Users\Vincent\driver2\Docs\Api\CSharpDriverDocs.shfbproj]
        Failed
        Build details can be found in C:\Users\Vincent\driver2\artifacts\docs\ApiDocs-2.8.0\LastBuild.log
      Done Building Project "C:\Users\Vincent\driver2\Docs\Api\CSharpDriverDocs.shfbproj" (Build target(s)) -- FAILED.
      Build FAILED."C:\Users\Vincent\driver2\Docs\Api\CSharpDriverDocs.shfbproj" (Build target) (1) ->
      (CoreBuildHelp target) ->
        SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Bson.dll' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Docs\Api\C SharpDriverDocs.shfbproj]
        SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Bson.xml' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Docs\Api\C SharpDriverDocs.shfbproj]
        SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.Core.dll' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Doc s\Api\CSharpDriverDocs.shfbproj]
        SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.Core.XML' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Doc s\Api\CSharpDriverDocs.shfbproj]
        SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.dll' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Docs\Api \CSharpDriverDocs.shfbproj]
        SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.xml' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\Docs\Api \CSharpDriverDocs.shfbproj]
        SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.GridFS.dll' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\D ocs\Api\CSharpDriverDocs.shfbproj]
        SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.GridFS.xml' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\D ocs\Api\CSharpDriverDocs.shfbproj]
        SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.Legacy.dll' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\D ocs\Api\CSharpDriverDocs.shfbproj]
        SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Users\Vincent\driver2\artifacts\bin\net45\MongoDB.Driver.Legacy.xml' (Configuration: Release Platform: AnyCPU) [C:\Users\Vincent\driver2\D ocs\Api\CSharpDriverDocs.shfbproj]
      "C:\Users\Vincent\driver2\Docs\Api\CSharpDriverDocs.shfbproj" (Build target) (1) ->
      (CoreBuildHelp target) ->
        SHFB : error BE0042: You must specify at least one documentation source in the form of an assembly or a Visual Studio solution/project file [C:\Users\Vincent\driver2\Docs\Api\CSharpDriverDocs.shfbproj]    10 Warning(s)
          1 Error(s)Time Elapsed 00:00:04.70
      An error occurred when executing task 'ApiDocs'.
      Error: One or more errors occurred.
              MSBuild: Process returned an error (exit code 1).
      PS C:\Users\Vincent\driver2> 

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            vincent.kam@mongodb.com Vincent Kam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: