Giter VIP home page Giter VIP logo

Comments (3)

vicancy avatar vicancy commented on July 19, 2024

Thanks for reporting the issue. Will add a DNX one...

from docfx-seed.

roji avatar roji commented on July 19, 2024

Seems to have just run into this with .NET Core 1.1.0 on Ubuntu yakkety, trying to generate API documentation from a csproj:

Warning: Error opening project /home/roji/projects/doc/Npgsql/src/Npgsql/Npgsql.csproj: The classes in the module cannot be loaded.. Ignored.
Warning: Cache for /home/roji/projects/doc/Npgsql/src/Npgsql/Npgsql.csproj in /home/roji/projects/doc/Npgsql/src/Npgsql/obj/xdoc/cache/final/-2009267585 is corrupted
Warning: No metadata is generated for .
Error: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Reflection.Assembly+<>c__Iterator0.MoveNext () [0x00021] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00078] in <63992662b765477a898ef49cdcc99ee2>:0 
  at System.Linq.Enumerable+<SelectManyIterator>c__Iterator2`2[TSource,TResult].MoveNext () [0x000bc] in <63992662b765477a898ef49cdcc99ee2>:0 
  at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor (System.Collections.Generic.IEnumerable`1[T] types, System.Composition.Convention.AttributedModelProvider attributeContext) [0x00049] in <c091afde214c4b8e8efbbeb9d44062d4>:0 
  at System.Composition.Hosting.ContainerConfiguration.CreateContainer () [0x00042] in <c091afde214c4b8e8efbbeb9d44062d4>:0 
  at Microsoft.DocAsCode.Dfm.DfmEngineBuilder.GetContainer () [0x0005c] in <432999781422437b9586e927afbcea01>:0 
  at Microsoft.DocAsCode.Dfm.DfmEngineBuilder..ctor (Microsoft.DocAsCode.MarkdownLite.Options options, System.String baseDir, System.String templateDir, System.Collections.Generic.IReadOnlyList`1[T] fallbackFolders) [0x001fa] in <432999781422437b9586e927afbcea01>:0 
  at Microsoft.DocAsCode.Dfm.DocfxFlavoredMarked.CreateBuilder (System.String baseDir, System.String templateDir, Microsoft.DocAsCode.MarkdownLite.Options options, System.Collections.Generic.IReadOnlyList`1[T] fallbackFolders) [0x0000a] in <432999781422437b9586e927afbcea01>:0 
  at Microsoft.DocAsCode.Build.Engine.DfmServiceProvider+DfmService..ctor (System.String baseDir, System.String templateDir, System.Collections.Immutable.ImmutableDictionary`2[TKey,TValue] tokens, Microsoft.DocAsCode.MarkdownLite.IMarkdownTokenTreeValidator tokenTreeValidator, System.Collections.Generic.IReadOnlyList`1[T] fallbackFolders) [0x00013] in <df39d17f74914acca8adf19af1426be3>:0 
  at Microsoft.DocAsCode.Build.Engine.DfmServiceProvider.CreateMarkdownService (Microsoft.DocAsCode.Plugins.MarkdownServiceParameters parameters) [0x00051] in <df39d17f74914acca8adf19af1426be3>:0 
  at Microsoft.DocAsCode.Build.Engine.SingleDocumentBuilder.CreateMarkdownService (Microsoft.DocAsCode.Build.Engine.DocumentBuildParameters parameters, System.Collections.Immutable.ImmutableDictionary`2[TKey,TValue] tokens) [0x0009e] in <df39d17f74914acca8adf19af1426be3>:0 
  at Microsoft.DocAsCode.Build.Engine.SingleDocumentBuilder.BuildCore (Microsoft.DocAsCode.Build.Engine.DocumentBuildParameters parameters) [0x001a1] in <df39d17f74914acca8adf19af1426be3>:0 
  at Microsoft.DocAsCode.Build.Engine.SingleDocumentBuilder.Build (Microsoft.DocAsCode.Build.Engine.DocumentBuildParameters parameters) [0x00065] in <df39d17f74914acca8adf19af1426be3>:0 
  at Microsoft.DocAsCode.Build.Engine.DocumentBuilder.BuildCore (Microsoft.DocAsCode.Build.Engine.DocumentBuildParameters parameter) [0x0005f] in <df39d17f74914acca8adf19af1426be3>:0 
  at Microsoft.DocAsCode.Build.Engine.DocumentBuilder.Build (System.Collections.Generic.IEnumerable`1[T] parameters, System.String outputDirectory) [0x0008b] in <df39d17f74914acca8adf19af1426be3>:0 
  at Microsoft.DocAsCode.SubCommands.DocumentBuilderWrapper.BuildDocument (Microsoft.DocAsCode.BuildJsonConfig config, Microsoft.DocAsCode.Build.Engine.TemplateManager templateManager, System.String baseDirectory, System.String outputDirectory, System.String pluginDirectory, System.String templateDirectory) [0x000ff] in <48838e8ef2d14e4c851eaef79963d089>:0 
  at Microsoft.DocAsCode.SubCommands.BuildCommand.BuildDocument (System.String baseDirectory, System.String outputDirectory) [0x000a0] in <48838e8ef2d14e4c851eaef79963d089>:0 
  at Microsoft.DocAsCode.SubCommands.BuildCommand.Exec (Microsoft.DocAsCode.Plugins.SubCommandRunningContext context) [0x00051] in <48838e8ef2d14e4c851eaef79963d089>:0 
  at Microsoft.DocAsCode.SubCommands.CompositeCommand.Exec (Microsoft.DocAsCode.Plugins.SubCommandRunningContext context) [0x00014] in <48838e8ef2d14e4c851eaef79963d089>:0 
  at Microsoft.DocAsCode.Program.ExecSubCommand (System.String[] args) [0x000e0] in <48838e8ef2d14e4c851eaef79963d089>:0 
        3 Warning(s)
        1 Error(s)

from docfx-seed.

vicancy avatar vicancy commented on July 19, 2024

Hi @roji, which version of docfx are you using? Did it work before?
csproj has a dependency on Microsoft Build Tools 2015, as docfx uses Roslyn while Roslyn depends on Build Tools. project.json can work around such issue.

from docfx-seed.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.