dotnet / docfx

Static site generator for .NET API documentation.
https://dotnet.github.io/docfx/
MIT License
4.06k stars 862 forks source link

MSBuild.Sdk.Extras SDK could not be found. #2827

Closed willson556 closed 6 years ago

willson556 commented 6 years ago

DocFX Version Used: 2.36.1 Visual Studio Version Used: 15.7.3 Template used: default

Steps to Reproduce:

See repo at https://github.com/willson556/MSBuildSDKExtrasDocFXRepro for simple repro project.

  1. Include a new-style .csproj with the MSBuild.Sdk.Extras SDK set (I'm guessing any SDK from NuGet?).
  2. Build

Expected Behavior:

Project is included in output documentation.

Actual Behavior:

Project is not included in output documentation. The following output is seen:

[18-06-03 04:49:12.340]Warning:[MetadataCommand.ExtractMetadata](c:/users/willsont/documents/visual studio 2017/Projects/MSBuildSDKExtrasDocFXRepro/MSBuildSDKExtrasDocFXRepro/MSBuildSDKExtrasDocFXRepro.csproj)Workspace failed with: [Failure] Msbuild failed when processing the file 'c:\users\willsont\documents\visual studio 2017\Projects\MSBuildSDKExtrasDocFXRepro\MSBuildSDKExtrasDocFXRepro\MSBuildSDKExtrasDocFXRepro.csproj' with message: The SDK 'MSBuild.Sdk.Extras/1.5.4' specified could not be found.  c:\users\willsont\documents\visual studio 2017\Projects\MSBuildSDKExtrasDocFXRepro\MSBuildSDKExtrasDocFXRepro\MSBuildSDKExtrasDocFXRepro.csproj
[18-06-03 04:49:12.565]Verbose:[MetadataCommand.ExtractMetadata](c:/users/willsont/documents/visual studio 2017/Projects/MSBuildSDKExtrasDocFXRepro/MSBuildSDKExtrasDocFXRepro/MSBuildSDKExtrasDocFXRepro.csproj)Project c:\users\willsont\documents\visual studio 2017\Projects\MSBuildSDKExtrasDocFXRepro\MSBuildSDKExtrasDocFXRepro\MSBuildSDKExtrasDocFXRepro.csproj loaded.
[18-06-03 04:49:12.570]Verbose:[MetadataCommand.ExtractMetadata](c:/users/willsont/documents/visual studio 2017/Projects/MSBuildSDKExtrasDocFXRepro/MSBuildSDKExtrasDocFXRepro/MSBuildSDKExtrasDocFXRepro.csproj)Project c:\users\willsont\documents\visual studio 2017\Projects\MSBuildSDKExtrasDocFXRepro\MSBuildSDKExtrasDocFXRepro\MSBuildSDKExtrasDocFXRepro.csproj loaded.
[18-06-03 04:49:12.573]Warning:[MetadataCommand.ExtractMetadata]Project 'c:\users\willsont\documents\visual studio 2017\Projects\MSBuildSDKExtrasDocFXRepro\MSBuildSDKExtrasDocFXRepro\MSBuildSDKExtrasDocFXRepro.csproj' does not contain any documents.
willson556 commented 6 years ago

Documentation on this new feature is located here.

herohua commented 6 years ago

@willson556 This bug is fixed in v2.36.2. Can you kindly verify? Thanks!

willson556 commented 6 years ago

Sorry for the delayed response; I can confirm that it is now working for me.