[CSHARP-2500] Cannot run build script with target of "Package" Created: 04/Feb/19  Updated: 28/Oct/23  Resolved: 08/Feb/19

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.8.0

Type: Improvement Priority: Major - P3
Reporter: Vincent Kam (Inactive) Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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> 



 Comments   
Comment by Githook User [ 08/Feb/19 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-2500: Fix PackageReleaseZipFile task to work on a branch as well as on master.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/7c9596b35631f5c7b269b242a9e4ae723a3be687

Comment by Githook User [ 08/Feb/19 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-2500: Fix build script Package task.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/9d1c930e4b9b10a24bafe452e00c67bb65be406c

Generated at Wed Feb 07 21:42:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.