Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSBuild tasks fail with FileNotFoundException #75

Closed
ap0llo opened this issue Sep 2, 2020 · 1 comment · Fixed by #76
Closed

MSBuild tasks fail with FileNotFoundException #75

ap0llo opened this issue Sep 2, 2020 · 1 comment · Fixed by #76
Labels
bug Something isn't working

Comments

@ap0llo
Copy link
Owner

ap0llo commented Sep 2, 2020

Summary

The MSBuild task to generate documentation fails because Microsoft.Extensions.Configuration.Abstractions cannot be found.

Affected versions:

  • 0.4.163

Stack Trace:

Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 39,79 ms for ~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj.
  Restore completed in 40,78 ms for ~\source\repos\markdown-generator\src\MarkdownGenerator.Test\Grynwald.MarkdownGenerator.Test.csproj.
  Restore completed in 40,81 ms for ~\source\repos\markdown-generator\src\MarkdownGenerator.Test.DocsVerification\Grynwald.MarkdownGenerator.Test.DocsVerification.csproj.
  Restore completed in 42,09 ms for ~\source\repos\markdown-generator\src\MarkdownGenerator.Test.ApiApproval\Grynwald.MarkdownGenerator.Test.ApiApproval.csproj.
  InheritDocTask replaced 0 of 0 inheritdoc tags and removed 0 non-public member docs in ~\source\repos\markdown-generator\Build\Debug\Grynwald.MarkdownGenerator\netstandard2.0\Grynwald.MarkdownGenerator.xml
  Grynwald.MarkdownGenerator -> ~\source\repos\markdown-generator\Build\Debug\Grynwald.MarkdownGenerator\netstandard2.0\Grynwald.MarkdownGenerator.dll
    error MSB4018: The "GenerateApiReferenceDocumentation" task failed unexpectedly. [~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj]
    error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. [~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj]
    error MSB4018: File name: 'Microsoft.Extensions.Configuration.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' [~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj]
    error MSB4018:    at Grynwald.MdDocs.Common.Configuration.ConfigurationProvider.GetConfiguration[T](String sectionName) [~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj]
    error MSB4018:    at Grynwald.MdDocs.ApiReference.Configuration.ConfigurationProviderExtensions.GetApiReferenceConfiguration(ConfigurationProvider configurationLoader) [~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj]
    error MSB4018:    at Grynwald.MdDocs.MSBuild.GenerateApiReferenceDocumentation.Execute() in /_/src/MdDocs.MSBuild/src/GenerateApiReferenceDocumentation.cs:line 21 [~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj]
    error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj]
    error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj]
    error MSB4018:  [~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj]
    error MSB4018:  [~\source\repos\markdown-generator\src\MarkdownGenerator\Grynwald.MarkdownGenerator.csproj]

Build FAILED.
@ap0llo ap0llo added the bug Something isn't working label Sep 2, 2020
@ap0llo ap0llo changed the title MSBuild task fails with FileNotFoundException MSBuild tasks fail with FileNotFoundException Sep 2, 2020
@ap0llo ap0llo closed this as completed in 41b712b Sep 4, 2020
@ap0llo
Copy link
Owner Author

ap0llo commented Sep 4, 2020

Fixed in version v0.4.178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant