question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not generating metdata on VSTS

See original GitHub issue

I’m using DocFX 2.17.1. I don’t use the docfx.console package. I have checked in the dlls into GIT in a tools directory. On VSTS I made a build task (just a commandline task) which calls the docfx.exe with the arguments metadata $(Build.SourcesDirectory)\docs\docfx.json --loglevel verbose. When running the build it’s not generating any metadata.

This is the log file. I highlighted the lines which seems weird to me. Did I make a mistake in the docfx.json ?

2017-05-11T12:00:34.2545800Z ==============================================================================
2017-05-11T12:00:34.2555813Z Task         : Command Line
2017-05-11T12:00:34.2555813Z Description  : Run a command line with arguments
2017-05-11T12:00:34.2555813Z Version      : 1.1.3
2017-05-11T12:00:34.2555813Z Author       : Microsoft Corporation
2017-05-11T12:00:34.2555813Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
2017-05-11T12:00:34.2555813Z ==============================================================================
2017-05-11T12:00:34.2565803Z ##[command]d:\a\1\s\tools\docfx\docfx.exe metadata d:\a\1\s\docs\docfx.json --loglevel verbose
2017-05-11T12:00:34.5185880Z [17-05-11 12:00:34.518]Verbose:Config file "d:\a\1\s\docs\docfx.json" is used.
**2017-05-11T12:00:37.2472017Z [17-05-11 12:00:37.247]Verbose:Successfully generated metadata d:/a/1/s/src/ICTGroup.IotSuitePlus.DeviceStatusEmailer/obj/xdoc/cache/obj for ICTGroup.IotSuitePlus.DeviceStatusEmailer
2017-05-11T12:00:37.3332026Z [17-05-11 12:00:37.332]Verbose:Successfully generated metadata d:/a/1/s/src/ICTGroup.IotSuitePlus.DeviceModule/obj/xdoc/cache/obj for ICTGroup.IotSuitePlus.DeviceModule
2017-05-11T12:00:37.3352027Z [17-05-11 12:00:37.335]Verbose:Successfully generated metadata d:/a/1/s/src/ICTGroup.IotSuitePlus.Data/obj/xdoc/cache/obj for ICTGroup.IotSuitePlus.Data
2017-05-11T12:00:37.3372027Z [17-05-11 12:00:37.337]Verbose:Successfully generated metadata d:/a/1/s/src/ICTGroup.IotSuitePlus.DeviceConfigurationAssigner/obj/xdoc/cache/obj for ICTGroup.IoTSuitePlus.DeviceConfigurationAssigner
2017-05-11T12:00:37.3402026Z [17-05-11 12:00:37.340]Verbose:Successfully generated metadata d:/a/1/s/src/ICTGroup.IotSuitePlus.MessageProcessor/obj/xdoc/cache/obj for ICTGroup.IotSuitePlus.MessageProcessor
2017-05-11T12:00:37.3422028Z [17-05-11 12:00:37.342]Verbose:Successfully generated metadata d:/a/1/s/src/ICTGroup.IotSuitePlus.Common/obj/xdoc/cache/obj for ICTGroup.IotSuitePlus.Common
2017-05-11T12:00:37.3492031Z [17-05-11 12:00:37.349]Verbose:Successfully generated metadata d:/a/1/s/src/ICTGroup.IotSuitePlus.HierarchyModule/obj/xdoc/cache/obj for ICTGroup.IotSuitePlus.HierarchyModule
2017-05-11T12:00:37.3522053Z [17-05-11 12:00:37.352]Verbose:Successfully generated metadata d:/a/1/s/src/ICTGroup.IotSuitePlus.DeviceConnectionStateUpdater/obj/xdoc/cache/obj for ICTGroup.IotSuitePlus.DeviceConnectionStateUpdater
2017-05-11T12:00:37.3572031Z [17-05-11 12:00:37.357]Warning:No metadata is generated for ICTGroup.IotSuitePlus.DeviceStatusEmailer,ICTGroup.IotSuitePlus.DeviceModule,ICTGroup.IotSuitePlus.Data,ICTGroup.IoTSuitePlus.DeviceConfigurationAssigner,ICTGroup.IotSuitePlus.MessageProcessor,ICTGroup.IotSuitePlus.Common,ICTGroup.IotSuitePlus.HierarchyModule,ICTGroup.IotSuitePlus.DeviceConnectionStateUpdater.**
2017-05-11T12:00:37.3622039Z [17-05-11 12:00:37.362]Info:Completed executing in 2562.6864 milliseconds.
2017-05-11T12:00:37.3692040Z 
2017-05-11T12:00:37.3692040Z 
2017-05-11T12:00:37.3692040Z Build succeeded with warning.
2017-05-11T12:00:37.3692040Z [17-05-11 12:00:37.369]Warning:No metadata is generated for ICTGroup.IotSuitePlus.DeviceStatusEmailer,ICTGroup.IotSuitePlus.DeviceModule,ICTGroup.IotSuitePlus.Data,ICTGroup.IoTSuitePlus.DeviceConfigurationAssigner,ICTGroup.IotSuitePlus.MessageProcessor,ICTGroup.IotSuitePlus.Common,ICTGroup.IotSuitePlus.HierarchyModule,ICTGroup.IotSuitePlus.DeviceConnectionStateUpdater.
2017-05-11T12:00:37.3742041Z 	1 Warning(s)
2017-05-11T12:00:37.3742041Z 	0 Error(s)
2017-05-11T12:00:37.3932040Z ##[section]Finishing: DocFX Metadata

docfx.json

{
  "metadata": [
    {
      "src": [
        {
          "files": [
            "src/**.csproj"
          ],
          "exclude": [
            "src/ICTGroup.IotSuitePlus.MessageRouter.TestApplication/**.csproj",
            "src/ICTGroup.IotSuitePlus.DeviceConfigurationAssigner.TestApplication/**.csproj",
            "src/ICTGroup.IotSuitePlus.DeviceConnectionStateUpdater.TestApplication/**.csproj",
            "src/ICTGroup.IotSuitePlus.DeviceStatusEmailer.TestApplication/**.csproj",
            "**/obj/**",
            "**/bin/**",
            "_site/**"
          ],
          "src": ".."
        }
      ],
      "dest": "api"
    }
  ],
  "build": {
    "content": [
      {
        "files": [
          "api/**.yml",
          "api/index.md"
        ]
      },
      {
        "files": [
          "articles/**.md",
          "articles/**/toc.yml",
          "toc.yml",
          "*.md"
        ],
        "exclude": [
          "obj/**",
          "_site/**"
        ]
      }
    ],
    "resource": [
      {
        "files": [
          "images/**"
        ],
        "exclude": [
          "obj/**",
          "_site/**"
        ]
      }
    ],
    "overwrite": [
      {
        "files": [
          "apidoc/**.md"
        ],
        "exclude": [
          "obj/**",
          "_site/**"
        ]
      }
    ],
    "dest": "_site",
    "globalMetadata": {
      "_appTitle": "ICT Group IoT SuitePlus Documentation",
      "_appFooter": "<span>Copyright &copy; 2017 <a href='http://www.ict.eu' target='_blank'>ICT Group B.V.</a><br>Generated by <strong>DocFX</strong></span>",
      "_appLogoPath": "images/iotsuitepluslogo_white.png",
      "_appFaviconPath": "images/iotsuiteplus.ico",
      "_enableNewTab": true,
      "_enableSearch": true
    },
    "globalMetadataFiles": [],
    "fileMetadataFiles": [],
    "template": [
      "default",
      "templates/ictgroup"
    ],
    "postProcessors": [],
    "noLangKeyword": false
  }
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vicancycommented, Jun 14, 2017

@DeluxZ the latest version gets rid of the dependency already, please have a try

0reactions
DeluxZcommented, Jun 26, 2017

A little later than planned, but just checked if it works with the latest version (2.19.1) and it does! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Metadata source file set to csproj not generating metadata
json --serve command. Executed in the terminal in the docfx project directory. Expected Behavior: Metadata to be generated. Actual Behavior: No ...
Read more >
Definition" in Visual Studio only brings up the Metadata
When I hit F12 (or right-click and select Go To Definition) Visual Studio is consistently going to the Metadata file instead of going...
Read more >
Metadata file could not be found - Developer Community
I tried an extension “Stop build at first error” which successfully supress these errors from being generated. I don't see why it would...
Read more >
D365 build warning on generate packages from VSTS
I saw this error in the "generate packages" build step when running ... upgrade' model was not found in the specified MetaData store....
Read more >
Metadata reference for Azure Boards Analytics
To generate status and trend reports on test-specific work item types, query the WorkItems and WorkItemSnapshot entity types and filter based on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found