planetarium / planetarium/lib9c

Build failed after adding LIB9C_DEV_EXTENSIONS to compilation symbols

Open
#1,007 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
30
Forks
56
Avg merge
9h 2m
Merged PRs (30d)
6

Description

Environment: Visual Studio Community 2022, Windows 10

When I add LIB9C_DEV_EXTENSIONS to Lib9c, the build fails saying

Lib9c\Lib9c\Action\CreateAvatar0.cs(19,13,19,26): error CS0234: The type or namespace name 'DevExtensions' does not exist in the namespace 'Lib9c' (are you missing an assembly reference?)

When I try to add Lib9c.DevExtensions as a dependency of Lib9c, the IDE pops up an error saying it would create a circular dependency.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting Lib9c\Lib9c\Action\CreateAvatar0.cs around the reference to Lib9c.DevExtensions and review how LIB9C_DEV_EXTENSIONS changes compilation. Trace the project dependency declarations to identify why adding Lib9c.DevExtensions creates a circular dependency; done means the symbol-enabled build succeeds without that cycle.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.