Skip to content

Multiple errors. #28

Closed
Closed

Description

@MrJamieMcC

I honestly have no idea what the issue is and how to fix this

E:\Game Dev\Projects\Police>docfx Documentation/docfx.json --serve Using .NET Core SDK 7.0.403 Compiling C# files using .NET SDK 7.0.13 for net7.0 error: E:/Game Dev/Projects/Police/Assets/_Scripts/Building/AllBuildings.cs(3,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?)error: E:/Game Dev/Projects/Police/Assets/_Scripts/Building/BuildingInfo.cs(4,7): error CS0246: The type or namespace name 'Unity' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Building/BuildingInfo.cs(5,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?)error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeGenerator.cs(7,16): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?)error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeGenerator.cs(4,7): error CS0246: The type or namespace name 'UnityEditor' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeGenerator.cs(5,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeGenerator.cs(6,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeSceneItem.cs(3,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeSceneItem.cs(4,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeSceneItemPool.cs(3,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeSceneItemPoolClass.cs(3,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeSceneItemSpawner.cs(3,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeSceneItemSpawner.cs(4,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeSceneNPCTrigger.cs(3,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/CrimeScenePlayerTrigger.cs(3,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/ItemInformation.cs(3,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?)error: E:/Game Dev/Projects/Police/Assets/_Scripts/Crime/NpcCrimeSceneFlee_temp.cs(3,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Managment/Developer.cs(3,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Managment/Developer.cs(4,7): error CS0246: The type or namespace name 'UnityEditor' could not be found (are you missing a using directive or an assembly reference?) error: E:/Game Dev/Projects/Police/Assets/_Scripts/Managment/Developer.cs(5,7): error CS0246: The type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?) Creating output... warning: No .NET API detected for . Searching custom plugins in directory C:\Users\jamie\.dotnet\tools\.store\docfx\2.73.2\docfx\2.73.2\tools\net7.0\any\... Post processor ExtractSearchIndex loaded. Post processor SitemapGenerator loaded. No files are found with glob pattern *.yml, excluding <none>, under directory "E:\Game Dev\Projects\Police\Documentation\api" 7 plug-in(s) loaded. Building 2 file(s) in ResourceDocumentProcessor(ValidateResourceMetadata)... Building 2 file(s) in TocDocumentProcessor(BuildTocDocument)... Building 3 file(s) in ConceptualDocumentProcessor(BuildConceptualDocument=>CountWord=>ValidateConceptualDocumentMetadata)... E:\Game Dev\Projects\Police\Documentation\toc.yml: warning: Unable to find either toc.yml or toc.md inside api/. Make sure the file is included in config file docfx.json! Applying templates to 7 model(s)... XRef map exported. Extracting index data from 3 html files Sitemap file is successfully exported to E:\Game Dev\Projects\Police\_site\sitemap.xml Manifest file saved to manifest.json. Serving "E:\Game Dev\Projects\Police\_site" on http://localhost:8080. Press Ctrl+C to shut down.

Activity

  1. kurone-kito commented on Feb 5, 2024

    @kurone-kito

    Perhaps you'll find the comments in the following issue helpful: #9 (comment)

  2. NormandErwan commented on Oct 18, 2026

    @NormandErwan
    Owner

    Since DocFX 2.62 (dotnet/docfx#8397), a C# compilation error stops metadata extraction, so scripts using UnityEngine without the Unity DLLs referenced produce CS0246 and no API pages.

    Documentation/DocFxForUnity.csproj on main (#32, #33) references the Unity managed DLLs, through Unity Hub auto-detection or UNITY_MANAGED_PATH. #44 adds CI coverage of DocFX 2.60–2.81 and documents this error in the README troubleshooting section.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions