Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

The sample does not work on Mono/OS X #2

@lextm

Description

@lextm

If the goal of docfx is to be cross platform, then its sample should also be made the same way.

This sample can now only be compiled under Mono/OS X by switching DNVM to 1.0.0-rc1-update1,

dnvm list

Active Version              Runtime Architecture OperatingSystem Alias
------ -------              ------- ------------ --------------- -----
       1.0.0-rc1-final      coreclr x64          darwin          default
       1.0.0-rc1-final      mono                 linux/osx       
  *    1.0.0-rc1-update1    mono                 linux/osx       

But it gives the following error message,

docfx
Info: Loading plug-in... in phase Build Document
Info: Plug-in loaded (ConceptualDocumentProcessor, ManagedReferenceDocumentProcessor, ResourceDocumentProcessor, TocDocumentProcessor) in phase Build Document
Warning: Error opening solution /Users/lextm/docfx-seed/src/SampleClass1/SampleClass1.sln: The classes in the module cannot be loaded.. Ignored.
Warning: No metadata is generated for .
Info: No files are found with glob pattern **/*.yml, excluding <none>, under working directory 
Info: Start building document ... in phase Build Document
Info: Plug-in ConceptualDocumentProcessor: Loading document... in phase Build Document
Info: Plug-in ConceptualDocumentProcessor: Document loaded (count = 5). in phase Build Document
Info: Plug-in ConceptualDocumentProcessor: Preprocessing... in phase Build Document
Info: Plug-in ConceptualDocumentProcessor: Building... in phase Build Document
Info: Plug-in ConceptualDocumentProcessor: Postprocessing... in phase Build Document
Info: Plug-in ConceptualDocumentProcessor: Saving... in phase Build Document
Info: Plug-in TocDocumentProcessor: Loading document... in phase Build Document
Info: Plug-in TocDocumentProcessor: Document loaded (count = 2). in phase Build Document
Info: Plug-in TocDocumentProcessor: Preprocessing... in phase Build Document
Info: Plug-in TocDocumentProcessor: Building... in phase Build Document
Info: TOC file articles/toc.md inside articles/ is used in phase Build Document in file toc.yml
Info: Homepage articles/docfx_getting_started.md is used. in phase Build Document in file toc.yml
Error: Unable to find either toc.yml or toc.md inside api/. Make sure the file is included in config file docfx.json! in phase Build Document in file toc.yml
Warning: Warning in build phase : following document error:
Unable to find either toc.yml or toc.md inside api/. Make sure the file is included in config file docfx.json!
Warning: 

Build succeeded with warning.
Warning: Error opening solution /Users/lextm/docfx-seed/src/SampleClass1/SampleClass1.sln: The classes in the module cannot be loaded.. Ignored.
Warning: No metadata is generated for .
Warning: Warning in build phase : following document error:
Unable to find either toc.yml or toc.md inside api/. Make sure the file is included in config file docfx.json!
Error: Unable to find either toc.yml or toc.md inside api/. Make sure the file is included in config file docfx.json! in phase Build Document in file toc.yml
Warning: 

There are totally 3 Warning(s), 1 Error(s) in phase Build Completed.

Note that the Documentation folder in https://github.com/dotnet/docfx also gives this error message. So currently it seems no sample can work on OS X.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions